Page 1 of 1

Fluida.lv2

Posted: Mon Nov 16, 2020 4:48 pm
by tramp
I worked on a new LV2 plugin which wrap fluidsynth as plugin.
It's still work in progress, but works stable already.
Image

It could be wrapped as VST with https://github.com/x42/lv2vst

supported is dnd to load soundfonts, or use the included file picker.
All parameters could be stored in a preset, including the loaded soundfont.

what more to say? You all know fluidsynth I guess.

Here it is:
https://github.com/brummer10/Fluida.lv2

Re: Fluida.lv2

Posted: Mon Nov 16, 2020 5:46 pm
by TAERSH

Code: Select all

root# make
g++ -D_FORTIFY_SOURCE=2 -I. -I./dsp -I./plugin -fPIC -DPIC -O2 -Wall -funroll-loops -fstack-protector -ffast-math -fomit-frame-pointer -fstrength-reduce `pkg-config --cflags --libs fluidsynth` -fdata-sections -Wl,--gc-sections -Wl,-z,relro,-z,now -Wl,--exclude-libs,ALL -msse3 -mfpmath=sse fluida.cpp XSynth.cpp -I. -shared -lm -Wl,-z,noexecstack -fvisibility=hidden `pkg-config --cflags --libs fluidsynth` -o Fluida.so
cc -D_FORTIFY_SOURCE=2 -I. -I./dsp -I./plugin -fPIC -DPIC -O2 -Wall -funroll-loops -fstack-protector -ffast-math -fomit-frame-pointer -fstrength-reduce `pkg-config --cflags --libs fluidsynth` -fdata-sections -Wl,--gc-sections -Wl,-z,relro,-z,now -Wl,--exclude-libs,ALL -msse3 -mfpmath=sse -Wl,-z,nodelete fluida_ui.c -I../libxputty/libxputty/include/ -Wl,-z,noexecstack -fvisibility=hidden -L. ../libxputty/libxputty/libxputty.a -shared `pkg-config --cflags --libs cairo x11` -lm  -o Fluida_ui.so
cc: error: ../libxputty/libxputty/libxputty.a: Datei oder Verzeichnis nicht gefunden
Makefile:100: recipe for target 'Fluida' failed
make: *** [Fluida] Error 1
root#
The directory libxputty in the source package of Fluida is just empty.
Where to find libxputty?

Re: Fluida.lv2

Posted: Mon Nov 16, 2020 5:52 pm
by tramp
This is a issue on github.
For repository's which use submodule, you can't simply download the source, as it will miss the needed submodule.
Only way to get the full source is to clone the repository.

Code: Select all

git clone  https://github.com/brummer10/Fluida.lv2.git

Re: Fluida.lv2

Posted: Mon Nov 16, 2020 5:56 pm
by TAERSH
The directory remains empty even after cloning. :?

Code: Select all

root# git clone  https://github.com/brummer10/Fluida.lv2.git
Klone nach 'Fluida.lv2'...
remote: Enumerating objects: 63, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 63 (delta 32), reused 47 (delta 21), pack-reused 0
Unpacking objects: 100% (63/63), done.
root#

Re: Fluida.lv2

Posted: Mon Nov 16, 2020 6:04 pm
by tramp
Ah, yes my fool.
You need to run

Code: Select all

cd Fluida.lv2/
git submodule init
git submodule update
make
I'll fix that latter, so that just make will be enough.

EDIT: I've update the makefile now so that it checks if submodule been up to date, when not init and update them.
Means, a simple make is enough to build Fluida.lv2
Still, that doesn't work when you 'just download' the code, as those zip's provided by github didn't contain the needed git structure to fetch the submodule.
The repository needs to be cloned to make it work.

Re: Fluida.lv2

Posted: Mon Nov 16, 2020 6:14 pm
by TAERSH
I downloaded libxputty source manually and compiled both, Fluida AND libxputty successfully.
Fluida is available in LV2 plugins in Qtractor. Loaded a .sf2 sound file and I'm getting MIDI signals to the channel and sound from the plugin!

Great and thanks! :D