« Zé Osório - Demo Soft Drummer + Galileo Organ | App News | Midiverse - TV: Exploring the Presets in PPG Infinite »

discchord v3.1: Preset Sharing... Now with more downloading!

I thought the preset uploading was going to be the hard part, but actually downloading the presets presented some challenges that I was unprepared for! Safari and Chrome on iOS simply would not download preset files, instead displaying them like text files. This is a somewhat understandable security precaution, Apple don't want you downloading random nonsense on iOS, but it's a bit overzealous and annoying for our purposes!

The Dilemma

If you haven't been following the discussion of this problem in the comments section, there were a couple of workarounds. The easiest (for me) was for people to simply use different browsers. Puffin lets you "Download to Dropbox" where you can then "Open In..." the files with their appropriate app. iCab Mobile doesn't give a fuck and will let you download anything you want. Both of these solutions require the use of paid apps though, and I didn't want to force everyone to do that. Also, if you like your browser I don't want you to have to switch just to use discchord.

These are mobile presets, so you should be able to easily download them on your mobile device! One workaround on my end would be to either require, or force, all uploads to be .zipped. You could then open the zipped file in AudioShare, and then import presets from there. This was a pretty good idea, because I'm sure 90% of you already have AudioShare, and the other 10% of you probably should. But... I still didn't like the idea of forcing you to pay for an app to use the presets here.

This is where I'm really glad I spent most of 2016 writing discchord v3 from the ground up. Not only can I add site-specific features like preset sharing, I can write entirely new code libraries to make them work. So I did!

Dropbox Mirroring

Now whenever someone uploads a preset to the site, my code will immediately mirror it to Dropbox. So the file exists both here on the discchord server cluster as well as inside of Dropbox's cloud. When you press the Download Preset button, one of two things happens. If you're coming to the site on anything other than an iOS device you will download the file as normal. This will also happen if you spoof your OS user-agent, so if you're an iCab Mobile Power User and just want raw downloads you can do that. But if you are on your iOS device; instead of downloading the file you will be redirected to a Shared Download Link on Dropbox.

Now the only app you need to have installed on your iOS device is Dropbox! And Dropbox is free!

You'll notice I've also tweaked the way iTunes links are displayed. Now you can see an app's Discchord Reader Rating, Comments on the AppDB, as well as a number showing how many presets have been uploaded for it. Dropbox is kind of a poor example of that, so here are the ones with presets available now. Clicking on the preset number, or icon, will take you directly to the presets page for that app.

Reader Comments 6

Thank you!!
August 30, 2017  | person Paul
I think this is a good compromise. I was actually downloading them on my laptop then transferring them to my dropbox anyway.
August 31, 2017  | person dreamsyphon
Thanks, it's good to hear some feedback on it!
Yes, a good idea indeed!
September 01, 2017  | person_outline Sarmad
With this solution you don't even need the Dropbox app installed. If it is not installed tapping on the download link on discchord sends you to dropbox. On that page there is a button at the top right of the screen. Tapping that give you the option of "Direct Download" or "Save to my Dropbox" Tapping Direct Download work just like I thought discchord was going to work the first time. So by looking at that link it looks like changing "dl=0" to "dl=1" would result in direct download from dropbox without the app being in the chain. So change

https://www.dropbox.com/s/zpy9m48x1gnjvny/24_STEP_MICROTONAL_TEMPLATE.m15p?dl=0

to

https://www.dropbox.com/s/zpy9m48x1gnjvny/24_STEP_MICROTONAL_TEMPLATE.m15p?dl=1

and most users wouldn't even notice dropbox is involved, or go all the way and reverse engineer their site.
September 04, 2017  | touch_app Lucas
@Lucas: Wow, that is really interesting! I will have to look into that and see if I can figure out how they are forcing the download. Thanks for letting me know!
comment

  Post a New Comment

You are not currently logged in. Would you like to login or register?
Enter your information below to add a new comment anonymously.

I'm not a racist, but...
Usernames need to be at least 2 characters!
I'm not a racist, but...
Please don't use weird characters in usernames!
{[ Ctrl.useravailable[Ctrl.userselector] ]}
{[ Ctrl.useravailabletext[Ctrl.userselector] ]}
Wow, that's a short email address!

Comment:

Do not use HTML in your comments. Tags: [b] Bold Text [/b] [i] Italic Text [/i]
Links will be generated if you include http:// or https:// at the beginning of a URL.
Submit