Last week I managed to get Carla running on my RPi. Carla is a really nice plugin host that supports the most important plugin frameworks available for Linux (LV2, DSSI, LADSPA and VST) with some awesome extra features like a built-in ZynAddSubFX synth and support for SF2, SFZ and GIG files. The latter didn’t work until yesterday but I managed to compile LinuxSampler (which is needed by Carla in order to be able to load SFZ and GIG files) for the RPi with the help of Paul Brossier aka piem from the Aubio project.
I just wrote him a mail:
Hello Paul,
I’m trying to package LinuxSampler for Raspberry Pi but I’m running into an issue when compiling which fails with a message related to RTMath.h. After some googling I ended up here:
http://bb.linuxsampler.org/viewtopic.php?f=2&t=514#p3156
So I started scouring the interwebs and found this:
http://packages.qa.debian.org/l/linuxsampler/news/20050806T210205Z.html
Where there is a reference to a possible fix. But the diff.gz that contains the patch is untraceable. I know this announcement is almost 8 years old but do you think you still have the diff or maybe an idea what changes you made to the code?Thanks in advance and keep up the good work with Aubio!
Best regards,
Jeremy Jongepier
And guess what, he replied almost instantly! He gave me some pointers where to add some extra code and even though I’m not a coder I started trying things out. But then I stumbled upon actual patches to resolve this issue. I needed both the ARM and atomic patch and after applying those LinuxSampler compiled flawlessly in my Raspbian ARM chroot. The few lines of code I cooked up myself were almost identical so I got quite far actually. I should really pick up learning how to code, I think I’d learn fast.
So after compiling LinuxSampler I could rebuild Carla against the freshly created LinuxSampler libs. Installed the deb on my RPi and loaded some SFZ’s. It all worked like a charm. Carla is like a Swiss Army Knife, I’m really starting to appreciate this piece of software. Kudos to falkTX! And thanks to Paul Brossier for responding so quickly and helping me to get on the right track.
Carla running on the Raspberry Pi
hi Jeremy, what nice work. i am still looking to get linuxsampler running on RPi. can you share the needed modifications?? btw i am also dutch, living in Praha right now π
I am looking to design a synth and sampler with RPi but i think i don’t want X to be running since its using resources. instead i would like to build a headless system controlled with midi. SFZ are the bomb and zynaddsubfx is a great synth. Kindest regards Tim
http://synthforum.nl/forums/showthread.php?t=161901
Hello Tim, thanks! If you’re using Raspbian you can add my “RPi repository”:http://rpi.autostatic.com/ and then install LinuxSampler with @sudo apt-get install linuxsampler@. There are also other options you could use like “samplv1”:http://samplv1.sourceforge.net/samplv1-index.html.
Jeremy
Hello folks, I just stumbled across this site after being aroused by some Carla posting. I am looking for an easy-to-use stable sequencer that would allow me to play midi input as a kind of direct instrument in an “unplugged” manner: Wind controller => midi sequencer/external usb sound module (if needed) => amplifier. Everything in this chain battery-powered, please. π
Based on my experiences with latency issues on a notepad computer (Lenovo IdeaPad) I strongly doubt that the RasPi has enough processing power to support FluidSynth with SF2 (my current setup) or anything similar to produce live music. But I’d love to be proven wrong! Hope you can convince me! π
Cheers,
Petra
Hello Petra, the Raspberry Pi should have no problems with FluidSynth and Soundfonts. And you can produce live music with it, just check my “Raspberry Pi Youtube channel”:https://www.youtube.com/playlist?list=PLSAzA_2ClmwC8xVdkQiMIPqtlJPVNPr5Z. You will need to properly set up your Raspberry Pi, how to do that is explained in the “Raspberry Pi Wiki article”:http://wiki.linuxaudio.org/wiki/raspberrypi @ linuxaudio.org.
Hi Jeremy,
I want to build Carla on Odoid-U3 (http://archlinuxarm.org/platforms/armv7/samsung/odroid-u3).
It’s armv7 processor lile RPi, the different is armv7.
I dun know where to start. I try to build directly on that board but it lack of some libraries (QT, Py …)
Can you help to show how you build it on your RPi?
Thanks,
Quang
Hello Quang, I rarely build software directly on embedded devices but I use chroots for this. Same goes for building software from source, I package it immediately if possible.
What’s chroots? Any link?
Do you need to build QT, Py, … for arm?
What’s your RPi OS?
How do package the bin file?
Please help. I am newbie on this field π
Hate to say it but if you’re a newbie then I fear setting up an ARM chroot and packaging software is a bit too ambituous π I’d suggest to do some googling on chroot, qemu-debootstrap and Debian packaging. And no, you don’t need to build Qt, Python, etc. for ARM, they should be in your distro’s repository. I’m using Raspbian myself and on other embedded devices I use Debian.
I manage to build Carla successfully, directly on the board π
It’s Debian too.
The output directory contains files. However I want to package it into an executable file.
How can you package these bin files?
Could you be a bit more clearer? What would you like to package and for what purpose?
I want to package the binary file after the build, to easier to deploy other targets.
I have one more question. My built carla can not load the two files: gig and sf2. I guest I missed some plugin when building the application. Do you meet this problem before – how to fix?
I try to install fluidsynth and compile linuxsampler. It works perfect now.
Thanks so much for your help
Can you please share your patches regarding RTMath? I would like to digg into some code…
Hello Chris, I’ve used patches from a “Gentoo overlay”:https://gitorious.org/gentoo-misc-overlay/gentoo-misc-overlay/source/4a254036ca2e0e520e15b45bd9ea9f7e641034c6:media-sound/linuxsampler/files.
You need to apply the arm-timestamp and the atomic patches.
Hello Jeremy, i would like to build a simple RPI VST that can manage DLL vst, i think that i must use carla, please have a simple build with Carla compile ? in addition witch the best way to install or comèpile carla on RPI ?
many thanks in advance
Mirco
Hello! This is a very interesting project!
I have one question… When I’m able to run Carla on a raspberry pi, does that mean I can run any VST plugin (even when compiled for windows) on a raspberry pi?
Carla should support all sorts of plugins, but does it “emulate” a windows runtime for the plugins even on the raspberry pi?
Hi Jeremy,
i am interested in the carla work on the Pi. I want to try it on my pi4 but unfortunatly the repo is not available anymore. Did you have the repo somewhere else or ist the project done?
Greetings,
N3uRo
there is no linuxsampler nor carla package for raspbian
how can I install these ?
Required libgig version not found!
You need to have libgig version 4.2.0 installed!
how do you compile it on raspbian ?