Ah great! And it wouldn’t change the files already there? It would only add the mounted content?
Also, I tried to copy the files (before I thought of the idea) from my USB to the zynthian directory where the wiki says it looks, but none of the programs found any soundfonts. Do I need to set permissions for the files copied?
Note that I only have some knowledge about the Linux system
If you mount over an existing directory then you can’t access the existing files. Zynthian has a system dir and a usr dir to read soundfonts from so you could pick one of them to mount over and place the ones you want to keep in the other.
Currently, automount is installed and configured in zynthian. When you plug-in a pen-drive, it should be mounted automatically on “/media/usb0”.
For getting FluidSynth & LinuxSampler to read the soundfonts from the pendrive, you should create a “soundfont” folder in the pendrive and copy to it the soundfonts you want to use. You have to use a very strict directory structure, that is different for SF2 and SFZ/GIG. Take a look to “/zynthian/zynthian-data/soundfonts” and use it as a reference.
After that, you should create a “soft link” from “/zynthian/zynthian-my-data/”:
Of course, if enough people find useful this trick and start to use it, i would consider to modify the engine code for looking at the pendrive without needing a soft-link …
Also since the rpi 4 have the USB 3 and seems to be superior over the microsd controller in speeds, it should load soundfonts faster than when on sdcards, if the soundfonts are big
I would implement like that:
When a zynthian folder is found in the usb mount, link everything in that folder as symbolic link. @jofemodo, tell me where and and try something…
I just commited an implementation of this. Now you can access presets & soundfonts stored in a USB drive. Simply plug the drive and that’s all. The presets & soundfonts from the external USB-drive will be shown in the zynthian UI with “EX” prefix (external).
You have to use this directory structure:
soundfonts
GIG
bank-1
soundfont-1 (file)
…
soundfont-n (file)
…
bank-n
SF2
+ soundfont-1 (file)
+ …
+ soundfont-n (file)
SFZ
bank-1
soundfont-1 (directory)
…
soundfont-n (directory)
…
bank-n
presets
zynaddsubfx
bank-1
preset-1
…
preset-n
…
bank-n
puredata
bank-1
patch-1 (directory)
…
patch-n (directory)
…
bank-n
etc.
Some volunteer to write a brief explanation on the wiki?
I’m writing the wiki page for external storage right now. Does the presets search path get expanded only to /media/usb0, or to every usb mass storage device connected? (Or does the automounter only mount one in the case of multiples?)
Edit: Here’s the page. Can you check it for correctness, esp. with regards to multiple drives? External storage - ZynthianWiki
Also, i would like to short the section by removing the part where you say that exFAt is not supported.
Let’s include the exfat driver on the SD and that’s all
Could you try to install the driver and test if it works automatically?
I think the issue may be that exfat is a FUSE filesystem, which requires special handling in udev. Possibly we could grab the kernelmode driver for exfat instead? Though that would be outside vanilla raspbian because of licensing concerns, I believe. I’ve not looked at the Samsung code, but I know several linux distros are going FUSE on exfat for licensing reasons/fear of Microsoft.
Same experience here with a new exfat usb disk, after install exfat-uitils the drive didn’t show up, but mounting manually did the trick.
Obviously this is not a sustainable solution, so hopefully this can be improved. If possible, I’d rather not reformat the USB disk. (The same USB disk is automatically mounted perfectly on another linux system)