migrating from original SamplerBox hardware
Started by hayesey




7 posts in this topic
hayesey

5 posts 1 threads Joined: Jun 2021
07-06-21, 10:18 -
#3
Thanks for the reply, I have made some progress with this.

I have the sound working now, I think there were two issues:

- changed the AUDIO_DEVICE_ID setting from -1 to 2 (from the original samplerbox code, I suspect it was actually using the built-in audio otherwise)
- noticed UART settings commented out in the "config.txt" file in the root of the BOOT partition. There are comments in there saying that this needs uncommenting for midi din to work. I suspect this was my main issue, the device not receiving my midi data

The push buttons seem to work, I changed the button config to match your suggestion Noek and they seem to work. I have 3 sets of samples on a USB stick and I can move between them.

Most excitingly, this has resolved the performance issues I had with the original samplerbox code, I can now play notes quickly and chords etc... all work. It's great!

I still don't have the 7-segment display working. I realised the I2C address is hard-coded and my screen uses 0x70 rather than 0x71. I have changed the code in the ROOT partition but suspect the python bytecode hasn't re-compiled so will try that next.

I have the Pi connected to ethernet now so I can ssh to it and fix that.

I will put in a pull request to add a comment to the samplerbox configuration.txt about enabling the UART for midi din and I will also include code to put the I2C address into the settings file as I think that is useful. My 7-segment display is a cheap ebay alternative that doesn't use the same address as the Adafruit one the original samplerbox used.


Messages In This Thread
RE: migrating from original SamplerBox hardware - by hayesey - 07-06-21, 10:18