spent hours troubleshooting with no luck, looking for a solution to default patch loaded

E
Eric posted Oct 11, 02:51:

Hey yall, I've tried at least a hundred times to get the samplerbox to load something other than the default saw on startup, to no avail. I've tried loading samples on 3 different USBs but it ignores them and just loads the saw wave. I've tried putting sample on the root folder, but it doesn't care. I've tried deleting the saw from the root folder, putting in another sample pack, naming it "0 saw", and I just dont get any sound after that. Does anyone know how to make this thing load anything other than the saw? Thanks!

A
AlexM posted Oct 11, 08:55:

Can you check to see what format your USB sticks have? Should be FAT32.

E
Eric posted Oct 11, 20:05:

Just reformatted them both to make sure, yup they're both FAT32. No matter what I do now, I get no sound (I assume this is because I deleted the saw from the root folder, hoping it would force itself to recognize the samples on my USB, but that didn't happen)

A
AlexM posted Oct 12, 03:13:

In your console can you see if you can access the USB stick:

cd /media

ls # let's see if any directories are listed

You can also check to see if the stick is actually recognised by your RPi:

lsblk # list block devices

You should see something like this:

NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda           8:0    1 14.4G  0 disk
`-sda1        8:1    1 14.4G  0 part /media
E
Eric posted Oct 12, 19:39:

Yup, ls displays the 2 directories I have in the USB ("0 Box" and "1 Organ" for testing purposes), it just doesn't play any sound, so I'm assuming it isn't loading the samples

A
AlexM posted Oct 13, 01:49:

Have you checked the SAMPLES_DIR variable in samplerbox.py points to your USB stick? ie SAMPLES_DIR = "/media" (default is "." which is problematic)

E
Eric posted Oct 13, 06:14:

How do I check that? I'm using the .iso quick start image, is it possible to edit the .py file from within the pi?

A
AlexM posted Oct 13, 07:28:

Yes it is :)

First remount the SD card as read-write:

mount -o remount,rw /

Now edit the samplerbox.py file:

nano SamplerBox/samplerbox.py

Find the SAMPLES_DIR line and change it to '/media'. When you're done, ctrl-X and y to save.

reboot to reboot the system

E
Eric posted Oct 16, 22:03:

No dice on that one-- it was already set to /media/

H
HansEhv posted Oct 16, 22:29:

So what's in the two directories:

Do they contain the sample files named as indicated in the definition.txt (if no such file is present, default name is midinote.wav, midinotes being a number 0-127). Playable notes are around middle-c, which means "48.wav" or "60.wav", depending on middle-c being C3 or C4.

Are the sound files wav files with a sample rate of 44,1kHz and bitrate 24 or less.

E
Eric posted Oct 16, 22:49:

on the mellotron sample (downloaded from the main page), I have numbers from 343-377, all the definition.txt says is *_%notename.wav

I've tried going up and down several octaves to make sure that is the issue and it didn't seem to change anything, though it's possible I didn't go up far enough?

Yup, samples are all 44,1 khz

H
HansEhv posted Oct 16, 23:04:

OK, then go back to unanswered question from Alex: perform command: ....
lsblk
.....and check the output (see his examples october 12 03:13)

...

  (not published)
  I want to post as guest
 

Post