Doug_
Posts: 65
Joined: Tue Oct 08, 2019 6:40 pm

Linux Sampler on a RPI4B?

Wed Jul 15, 2020 4:23 am

Has anyone managed to get Linux Sampler up and running on RPI4B with RPIoS?

Several packages from the LinuxSampler project are available in apt (qsampler amongst others) but the core backend component of the system linuxsampler is not available. I have not been able to compile the linuxsampler-2.1.1.tar.bz2 source from the project's website due missing alsa davelopment header so I thought I'd check if anyone has recently pursued this.

https://www.linuxsampler.org/

fruitoftheloom
Posts: 26531
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Linux Sampler on a RPI4B?

Wed Jul 15, 2020 8:34 am

Doug_ wrote:
Wed Jul 15, 2020 4:23 am
Has anyone managed to get Linux Sampler up and running on RPI4B with RPIoS?

Several packages from the LinuxSampler project are available in apt (qsampler amongst others) but the core backend component of the system linuxsampler is not available. I have not been able to compile the linuxsampler-2.1.1.tar.bz2 source from the project's website due missing alsa davelopment header so I thought I'd check if anyone has recently pursued this.

https://www.linuxsampler.org/

According to the download page the software is for Linux running on x86 CPU Architecture:

https://www.linuxsampler.org/downloads.html
The information is out there....you just have to let it in.

My other Linux machines: ChromeBox
https://www.aliexpress.com/item/32966393971.html
& Stone Desktop Intel CoreDuo circa 2010

Doug_
Posts: 65
Joined: Tue Oct 08, 2019 6:40 pm

Re: Linux Sampler on a RPI4B?

Wed Jul 15, 2020 9:41 am

PPC is supported and I have seen old references to patches to support ARM.
qsample and gigedit both install (with apt) and run on PI4 but without the backend they are useless.

Eirikur
Posts: 110
Joined: Sun Sep 09, 2018 9:43 pm

Re: Linux Sampler on a RPI4B?

Thu Jan 28, 2021 1:41 am

Getting ready to move my music keyboard project back on the the Pi, on the Pi 4B.
If you didn't know about the patches, here's a handy pointer.
I've built Linuxsampler for ARM and run it on Pi 2B and 3B (and built the rt-preempt kernel!) using the patches.
It's just nonsense that the patches aren't conditionals in the build.
Gad, if I can find the energy, I should submit the patched sources wrapped in conditionals.
Anyway, I can tell you from previous experience that Linuxsampler works great on Pi4B. On an overclocked 8GB version?
Well, at that point, it's going to be just plain amazing.
I don't remember the status of Pianoteq for Pi, but I think you could run the Ivy Audio Piano AKA Piano In 162 on a 4B with decently fast storage.
Personally, I love the Skerrat London Piano for character and stereo imaging.

Github:
https://github.com/hexdump0815/linuxsampler-arm-build

Doug_
Posts: 65
Joined: Tue Oct 08, 2019 6:40 pm

Re: Linux Sampler on a RPI4B?

Thu Feb 18, 2021 12:55 am

Wow - big thanks for this! I only just read your post - yes I will certainly follow through with this. Standby by for questions.
Doug

Doug_
Posts: 65
Joined: Tue Oct 08, 2019 6:40 pm

Re: Linux Sampler on a RPI4B?

Tue Feb 23, 2021 11:58 am

Thanks for the details, I have managed to compile linuxsampler and qsampler following the outline in the readme file and am pleased to report it seems to be running however I have only tried some sf2 files and one sfz file.
You may be interested in trying one or two of the sf2 files from:
https://sites.google.com/site/soundfonts4u/
Doug

tobiasharnack
Posts: 1
Joined: Sun Apr 11, 2021 3:00 pm

Re: Linux Sampler on a RPI4B?

Mon Apr 12, 2021 3:33 pm

Doug_, I wondered if you could tell in some detail how exactly you managed to compile linuxsampler and qsampler, following the instructions on https://github.com/hexdump0815/linuxsampler-arm-build ?

From github two files are to be downloaded which are obviously supposed to modify the ˋbuildpackageˋ-process : linuxsampler-aarch64.patch and linuxsampler-armv7l.patch. 

What exactly am I to do with these files ?

Being an absolute dummy in this field, I simply extracted these files into my lssvn/linuxsampler-folder, then tried "dpkg-buildpackage -rfakeroot -b", but that did not work out.

Thank you in advance for any help !

Doug_
Posts: 65
Joined: Tue Oct 08, 2019 6:40 pm

Re: Linux Sampler on a RPI4B?

Sat Apr 24, 2021 5:55 am

Yes Tobias it is frustration to start but it is worth the effort to solve. This was the first package I have patched and compiled but it is a matter of working through the issues and getting the code to run. I found all the helpfiles in the code tree or on the linuxsampler website but needed to keep in mind version numbers have moved on from the time the helpfiles were written.

It was some time ago now so I am in no position to hold your hand since I simply cannot remember the detail.

The first step however is to apply the ARM patch file to the requisite file, you do that with a commandline tool named unsurprisinggly 'patch'. Use the man pages to understand what is required. The file you are patching is in the first few lines of the patch file .../linuxsampler/src/common/atomic.h if I recall correctly. The patch tool is good at sorting out where the changes are to be made so it worked for me even though the versions have moved on.

So on the command line it is something like 'patch linuxsampler-arm71.patch src/common/atomic.h'

Check the resulting file to make sure the changes were applied and the arm processor code is included.

From there I compiled the deb package as indicated.

Good luck and all the best for your journey.

Return to “Raspberry Pi OS”