How can I run a basic MIDI sampler on Raspberry Pi?
Moderators: MattKingUSA, khz
How can I run a basic MIDI sampler on Raspberry Pi?
Greetings everybody! I am very new to the Pi (and Linux) and am in need of a very basic setup for live performances. There's a lot of information on the Internet for complex audio production software (and it's a bit confusing to me) but I want something extremely basic, I just don't have the "know how" and figure I would give this a shot.
I am currently using a Raspberry Pi 3 B+ running the latest version of Raspbian and have a USB M-Audio KeyRig 49 MIDI controller. I do have a Windows laptop capable of running Ableton Live but it's too bulky for me to carry around from gig to gig when I could just throw the Pi in my guitar case and love life.
Now, to the point: During our live set we play intros and a few samples in some of our songs. I want to be able to play them with my MIDI controller. What I need is simply to trigger, let's say, intro_1.wav when I press the C note on the keyboard, play intro_2.wav when I press the D note and so on. Hopefully running within Raspbian. Is there a simple program that would do that? Can I run some basic code for the same purpose?
I will be eternally grateful if you have any suggestions or can point me in the right direction.
Cheers!
I am currently using a Raspberry Pi 3 B+ running the latest version of Raspbian and have a USB M-Audio KeyRig 49 MIDI controller. I do have a Windows laptop capable of running Ableton Live but it's too bulky for me to carry around from gig to gig when I could just throw the Pi in my guitar case and love life.
Now, to the point: During our live set we play intros and a few samples in some of our songs. I want to be able to play them with my MIDI controller. What I need is simply to trigger, let's say, intro_1.wav when I press the C note on the keyboard, play intro_2.wav when I press the D note and so on. Hopefully running within Raspbian. Is there a simple program that would do that? Can I run some basic code for the same purpose?
I will be eternally grateful if you have any suggestions or can point me in the right direction.
Cheers!
-
- Established Member
- Posts: 363
- Joined: Sat Nov 17, 2012 3:36 pm
Re: How can I run a basic MIDI sampler on Raspberry Pi?
One possibility is to prepare the samples as a soundfont, with the different samples assigned to individual keys, then start whatever version of Carla is available on the Pi and open the soundfont (which will load an instance of fluidsynth - a sample playback program). In Carla you can also route MIDI in to Fluidsyth.
The Pi is very DIY and you have to get the software. You can try Autostatics repository, if it is still available, otherwise you may have to compile some Things to get it running. And you need a sound Card with MIDI.
The Pi is very DIY and you have to get the software. You can try Autostatics repository, if it is still available, otherwise you may have to compile some Things to get it running. And you need a sound Card with MIDI.
Vox, Selmer, Yamaha and Leslie amplifiers. Rickenbacker, Epiphone, Ibanez, Washburn, Segovia, Yamaha and Fender guitars. Hammond, Moog, Roland, Korg, Yamaha, Crumar, Ensoniq and Mellotron keyboards. Xubuntu+KXStudio recording setup.
Re: How can I run a basic MIDI sampler on Raspberry Pi?
Thanks for the recommendation so far. I'm not familiar with any of the terms used, but I will explore. Lol
I will post here my results. Thanks again.
I will post here my results. Thanks again.
- bluebell
- Established Member
- Posts: 1926
- Joined: Sat Sep 15, 2012 11:44 am
- Location: Saarland, Germany
- Has thanked: 112 times
- Been thanked: 121 times
Re: How can I run a basic MIDI sampler on Raspberry Pi?
Since most MIDI-Keyboards have USB-MIDI you don't need a MIDI port in your interface.Frank Carvalho wrote:And you need a sound Card with MIDI.
Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/
Re: How can I run a basic MIDI sampler on Raspberry Pi?
I've been trying to install Jack and Carla unsuccessfully. I've follow some instructions and unfortunately didn't work out. As I mentioned before, I'm new to Linux and that makes it a bit harder than usual for me. When looking for info all I find is some people literally talking code to each other and that only makes it more confusing to me.
If anyone has working steps to run these in the Pi, please share them here. Might seem very obvious to some, but it would be greatly appreciated.
Thanks!
If anyone has working steps to run these in the Pi, please share them here. Might seem very obvious to some, but it would be greatly appreciated.
Thanks!
Re: How can I run a basic MIDI sampler on Raspberry Pi?
maybe it would make sense to start from the zynthian OS build and remove parts you don't need? See http://zynthian.org/
I think you'll definitely want jack, but maybe for this 1 purpose you'd be ok going direct to the ALSA driver level. Depending on the number of samples, petri-foo (https://github.com/petri-foo/Petri-Foo) or sampleV1 (https://samplv1.sourceforge.io/samplv1-index.html) may be better apps than carla if really all you want is to trigger samples.
Or if you'd like to proceed with trying JACK + Carla, please paste the commands you ran and the output you got and we can work through it slowly.
Edit: actually fabla may be even better http://openavproductions.com/fabla/
I think you'll definitely want jack, but maybe for this 1 purpose you'd be ok going direct to the ALSA driver level. Depending on the number of samples, petri-foo (https://github.com/petri-foo/Petri-Foo) or sampleV1 (https://samplv1.sourceforge.io/samplv1-index.html) may be better apps than carla if really all you want is to trigger samples.
Or if you'd like to proceed with trying JACK + Carla, please paste the commands you ran and the output you got and we can work through it slowly.
Edit: actually fabla may be even better http://openavproductions.com/fabla/
_ssj71
music: https://soundcloud.com/ssj71
My plugins are Infamous! http://ssj71.github.io/infamousPlugins
I just want to get back to making music!
music: https://soundcloud.com/ssj71
My plugins are Infamous! http://ssj71.github.io/infamousPlugins
I just want to get back to making music!
- sadko4u
- Established Member
- Posts: 989
- Joined: Mon Sep 28, 2015 9:03 pm
- Has thanked: 2 times
- Been thanked: 361 times
Re: How can I run a basic MIDI sampler on Raspberry Pi?
You may also try LSP Klangerzeuger and LSP Schlagzeug since LSP Plugins have experimental support of Raspberry Pi after 1.1.4 release.
http://lsp-plug.in/?page=manuals§ion=sampler_stereo
http://lsp-plug.in/?page=manuals§io ... ampler_x12
http://lsp-plug.in/?page=manuals§ion=sampler_stereo
http://lsp-plug.in/?page=manuals§io ... ampler_x12
LSP (Linux Studio Plugins) Developer and Maintainer.
- khz
- Established Member
- Posts: 1648
- Joined: Thu Apr 17, 2008 6:29 am
- Location: German
- Has thanked: 42 times
- Been thanked: 92 times
Re: How can I run a basic MIDI sampler on Raspberry Pi?
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
- I don't care about the freedom of speech because I have nothing to say.