Using pisound to do a SamplerBox

#1

Hi,
Sorry in advance for my dummy question.
I would like to transform my new pisound into a SamplerBox http://www.samplerbox.org/
Basically: something connected to a MIDI keyboard that play sample sounds stored on the disk or on a USB key.
I’m very new on music software and I would appreciate any pointer or help on doing this.
Thanks.

0 Likes

#2

I haven’t tried this yet, but perhaps you could be able to download the samplerbox image, run the pisound command and off you go. Can’t test this right now because I don’t have a spare SD card here.
You could also make a simple Pd patch to do the same, but samplerbox is def. more plug&play.

0 Likes

#3

Thanks for your answer.
So I’ve tried to install pisound on the top of samplerbox.
pisound check works like expected but samplerbox don’t work with pisound :frowning:
I’ve got an error message “Invalid audio device #2” (#2 is the device number of pisound card).
The message comes from the Python script here. It probably means that Python sounddevice.OutputStream function can’t open pisound.
Because samplerbox is just a tool to play WAV samples, I’ve related the issue to the one described in this forum here.
But the work around proposed (update .asoundrc) don’t work.

Any idea to allow pisound to play WAV samples ?

0 Likes

#4

It probably can’t open Pisound device because it’s attempting to use the unsupported 44.1kHz rate. Maybe it could be reworked to use 48kHz instead, or maybe there’s some way to use get the ALSA’s resampling plugin to work with sampler box, but I’m not sure how to go about it.

0 Likes

#5

Thanks for answer.
I’ve tried to replace samplerate=44100 by samplerate=48000 in the samplerbox Python script.
No error message now but no sound output from pisound :cry:

If somebody have an idea to do the same thing even without samplebox scripts, let me know.

0 Likes

#6

Hi @llaske, are you using the latest, more advanced SamplerBox image (zip file here: http://www.samplerbox.org/makeitsoftware)? Or the original script (https://github.com/josephernest/SamplerBox)?

0 Likes

#7

Hi Alex,
I’ve used the SamplerBox image - so presumably the latest image.

0 Likes

#8

I actually don’t own a pisound (I want one!) so I can’t test this for you unfortunately. Would you be able to post the console output?

Just FYI the latest image is built from this repository, not Joseph Ernest’s one (website is a little misleading!) just in case this helps debug at your end – https://github.com/alexmacrae/SamplerBox

0 Likes

#9

I like this project but you can make a sample with pure data very easily

0 Likes

#10

I’m not familiar with pure data, if you’ve got links or tips to explain how to do that, do not hesitate

0 Likes

#11

hi llaske
for fun i built SamplerBox from the README and it works perfectly with pisound
i had to choose in the Samplebox.py audio device 3 and it sounds wonderful

Let me know if i can help you get it running it was pretty easy – everything is done via

sudo apt-get install xxxxxxx —for the python packes and pip install

3 Likes

#12

@llaske thanks for your great initiative!
@Patrick_Pagano could you please specify a bit more how you did the integration of Samplerbox on the Pisound? Thanks a lot!

1 Like

#13

We are going to be rolling it out pre-installed via blokas.io very soon
PM me and i’ll help you

Patrick

2 Likes

#14

Hi, the file to modify is: samplerbox.py
If anyone wants to do that you can do it through: nano samplerbox.py in the directory: cd SamplerBox

1 Like

#15

Hi Patrick. Did this ever get pre-installed? If not is it still going to be? Just got my pisound and thinking to try this soon.

0 Likes

#16

No, not yet the focus has been on pure data

0 Likes

#17

OK, thanks for the reply! Will have a go at installing it myself so…

0 Likes

#18

It’s super easy if you follow the directions for manual install you can get it running without having to reformat your whole pi so let me know if you need help

0 Likes

#19

Hello,
maybe someone could lend me a hand… I just followed the manual install instructions, but I cant get sound… my midi-keyboard is connected to the midi-in from the pisound and I have tried every combination in the samplerbox-settings with AUDIO_DEVICE_ID set to 1 or 3, and USE_SERIALPORT_MIDI set to True or False, but no sound all the time.

When I start samplerbox.py, it looks like this:

    pi@raspberrypi:~/SamplerBox $ python samplerbox.py
    Opened audio device #3
    Opened MIDI: pisound 20:0
    Preset loading: 0 (0 Saw)
    Preset loaded: 0

When I start Pianoteq, I have sound. Anyone knows what I’m missing?

0 Likes

#20

hello @phil, there are several versions of SamplerBox, all of them based on John’s first one.
I recommend you to use this one: http://homspace.xs4all.nl/homspace/samplerbox/ as Hans is continuously working on it and doing improvements.
I am running it on a Rpi3B with Pisound. You will have to disable ALSA mixer / GPIO / serialport midi. Another important thing already said in this thread is that you will have to adjust SamplerBox to work at 48kHz. Change the samplerate in the code.
Give it a try and ask me if you have any question.

0 Likes

Possible to use PiSound as sample bank?