thank you for finding the root cause so quickly! You where right
cd /zynthian/zynthian-sw/plugins/GenericFluidPlug
gcc -std=c11 -o src/sflist src/sflist.c -lfluidsynth
did the trick. After this step the peal-script worked without error and the soundfont is now available as a plugin in the mod-ui.
It is now working perfectly!
Loading time is still ok - despite the size, thats nice . But looking at the RAM usage I have to ask myselve if so many instruments in one plugin are needed - maybe I can split the soundfont into smaller sections …
When running GenericFluidPlug-generated synths there is a problem with the Zynthian-UI. The sounds are not arranged in presets anymore but in values for a LV2 control port:
This seems not to be recognized by Zynthian-UI so you cannot change the sound by encoder anymore. It seems also that Zynthian-UI hangs until you erase the pedalboard.
the FluidPlug is a plugin written by falkTX from MOD. I reused it to put a wrapper arround for automatic using of special soundfonts and create the matching configuration files for MOD-UI. FluidPlug is a “simple” LV2 wrapper arround the fluidsynth library - so it can only load soundfonts of supported format. AFAIK this is only SF2.
There is another software arround which loads the other formats: LinuxSampler. I think it is not impossible to make such a plugin - LS has an own LV2 plugin. But we had some license discussion with the LS team in the past: selling Zynthian kits is a problem… I don’t know what this means related to software for a project (where I personally don’t sell anything). The software I had written the last 10 years was completely free. I have no fun to write software and discuss later if I broke the license.
Go ahead and look for their “simple” license. It is short and clear. As far as you don’t make any money (even self-costs of parts!), you can use LS… personally I am not making money - but for the complete project this is not true. What to do???
Zynthian is a free software. Of cause one needs hardware - but in order to run Linuxsampler some type of hardware is needed anyway so that should not be the problem.
In order to get the needed hardware I could purchase a Pi on Amazon.
But its up to me: I want the free Zynthian and I am free to buy the needed hardware wherever I want.
And that is no theory: Looking at the success cases posed here a lot of people build their own versions of the Zynthian made from parts purchased from different sources. Even 3D-Printed hardware was used!
I could understand if there was a need to buy certain parts from a certain source and the source would take advantage on that - but this is not the case.
But that is only the one side - If you would provide a tool adding sfz to mod-ui everyone could use it - absolutely independent from Zynthian. So just because it could be theoretically used on the Zynthian it should not be a problem.
Last-but-not-least: We are a community of musicians having fun - we even share that with our families and friends. I hereby ask the Linuxsampler devs: Please don`t take that away from us. We should work together to be stronger and better then we ever could be alone.
You speak right out of my heart! Fernando tried to speak with LS team but AFAIK with no result. Take a look at https://www.linuxsampler.org/faq.html
Commercial use is prohibited - no question. I think this is a really good idea because LS engine is powerful - but FluidSynth and other software also - and they have proven licenses.
So we told them what Zynthian is and asked if we had right understood that Zynthian does not need a license. The result was something like that:
If Zynthian sells kits, LS sees the project as commercial. And Zynthian has self-commited to be commercial, because we had asked (like: if you ask, you have something bad in mind).
This is my personal point of view - Fernando may see this different. My favorite after some emails was: We may get a license for less or no money - but we were asking to use it for non-commercial.
Altogether: It was a complete disaster and the current problems, we now have, may not exist if we haven’t ask.
So, again: I would really have fun to use LS and create plugins - but they should have a license which is reliable and not depending on how to ask for using their software - and perhaps of the rating of the person who reads the email.
Do you think it would help if we all as users of the Zynthian would also ask the linuxsampler devs for giving a non-profit license to the project?
Maybe by starting an online petition? For example like one this website provides: https://www.ipetitions.com/start-petition#
I think a petition is not constructive. They have a license and they are using it word by word - that’s their right, no question.
Perhaps they will give a non-profit license. But in my opinion it would be better if they use an existing and clear license which is not contra-productive for other open projects. And perhaps they should not claim everyone who asks, to be a bad guy who wants to avoid their licencse.
I have currently no fun to talk to them. For me this is wasted time. They say Zynthian needs a license and if we bow before them and say the right words perhaps we get one. This is not the way of working on or with Open-Source-Software I used to know.
If someone else has enough diplomatic know-how and has fun in (perhaps endless) discussions: feel free to ask them .
I would like to play a modified NiceKeys sf2 in the mod-ui as well.
This one doesn’t work anymore:
git clone -b generic https://github.com/dcoredump/GenericFluidPlug
What options do I have now?
the info is a bit burried in the conversation: Have you installed the following package? apt-get install -y libipc-system-simple-perl
(This dependency hass been added later)
I also created the NiceKeys plugin with GenericFluidPlug. Works…
How did you got this debug output?
You have created your own soundfont? I think the problem must be located inside the creation of the soundfont. You can try the following:
cd /zynthian/zynthian-sw/GenerichFluidPlug/src
./sflist [PATH_TO_YOUR_SOUNDFONT.SF2]
This should show you all sounds inside the soundfont. if there is no output it is highly possible that the soundfont is broken. Do you have created it with Polyphonie?
I added more sounds to the soundfont and they weren’t seen by the plugin.
Would be cool, if I don’t have to delete and re-make the plugin in this case.
Is it possible to change the program of the soundfont in the zynthian-ui already?
I could only do it over the web-ui.
Overall, it is very unstable. I could send a log-trace.
But maybe you could add more DEBUG-log messages, because its not very verbose yet.
Besides of this
ERROR:root:Parameter Not Found: /graph/GenericFluidPlug_NiceMarkus/program => unorderable types: str() > int()
This is currently not easy to do. I have to think about how to easy load SF2. The problem is not the loading but how to integrate this in MOD-UI and LV2 controllers. If there is a new SF2 the GenericFluidPlug-builder-script analyzes the SF2 and creates a file where the mapping of sound-name to an id is written down. If MOD-UI would have a filebrowser (or perhaps the new Zynthian release will have a parallel interface for uploading data) this can be done in background after uploading…
Can you explain exactly what means “unstable”?
Unstable for your SF2 or generic unstable?
Unstable because of crashing?
Can you upload your SF2?
What kind of hardware do you use (Raspi/PC)?
What kind of audio hardware do you use?
Without much more information it is difficult for me to debug…
I have absolute no problems with SF2 from external sources and our own (Polyphonie-)SF2 files. But I must say: I am using “normal” Zynthian hardware (Raspi, Hifiberry)…
As I wrote before: I have only created a script and some small changes for the generic part around the oroginal FluidPlug-LV2-plugin - the debug code is mainly from MOD-UI and not from the plugin itself.