Raspberry Pi Pico MIDI controller with SamplerBox 2019 image PiZero - Printable Version +- HomSpace Forum (https://homspace.nl/forum) +-- Forum: SamplerBox (https://homspace.nl/forum/forum-1.html) +--- Forum: Community (https://homspace.nl/forum/forum-2.html) +--- Thread: Raspberry Pi Pico MIDI controller with SamplerBox 2019 image PiZero (/thread-21.html) |
Raspberry Pi Pico MIDI controller with SamplerBox 2019 image PiZero - rajivdeo - 06-03-21 I have uploaded circuitpython adafruit sample usb midi controller code on the new Pi Pico microcontroller. The device is detected as midi device on Windows and Mac OSX and sends midi notes to Kontakt player. When connected to Samplerbox 2019 image as midi synth, there is no sound output. How to debug and solve this issue? RE: Raspberry Pi Pico MIDI controller with SamplerBox 2019 image PiZero - hansehv - 06-03-21 Hello rajivdeo, First to verify I understand correctly: you connect the PiPico with its USB to samplerbox. Because of the circuitpython package it should be recognized as a midi device. Does it derive its power from that same usb interface (=from samplerbox) ? If my understanding is correct, then thanks for this interesting tip! Now for your question:
Regards, Hans RE: Raspberry Pi Pico MIDI controller with SamplerBox 2019 image PiZero - rajivdeo - 07-03-21 (06-03-21, 21:56)Hans - You have correctly described my setup. The Pi Pico, when connected to USB host of Pi Zero, is concurrently available as a MIDI controller and a USB mass storage device. I think samplerbox is looking for samples to load in CIRCUITPY drive available as USB mass storage device to RPi Zero. As there are no samples to load on CIRCUITPY drive, there is no sound. Please verify my understanding, if you can at your end and let me know possible workaround(s).For some unknown reason, I am not able to get 20200810 image working on my Pi Zero. The image does not boot. Thanks for debugging tips. Rajivhansehv Wrote: Hello rajivdeo, RE: Raspberry Pi Pico MIDI controller with SamplerBox 2019 image PiZero - hansehv - 07-03-21 Hello rajivdeo, I can't comment on the failing new distribution without more info, except for: take a close look at the files on /boot (or root dir of inserted SD on PC). There may be configs on there (config.txt and samplerbox/configuration.txt) you may have adapted to your local setup which are replaced by the originals now. Anyway, this seems not to be related with your main subject of using the pico. The USB conflict / double usage is indeed a likely cause. I have to think about that... Additional question: where do you store your samples
RE: Raspberry Pi Pico MIDI controller with SamplerBox 2019 image PiZero - Guest - 08-03-21 (07-03-21, 23:19)hansehv Wrote: Hans, RE: Raspberry Pi Pico MIDI controller with SamplerBox 2019 image PiZero - hansehv - 12-03-21 Hi rajivdeo, Upcoming release will support mutually exclusive use of USB storage: if the usb-storage contains a valid samplefolder entry, this device is used. Otherwise the internal sample space is used. This enables your usage; also in my opinion the most straightforward way. But if the existing samplerfolder(s) contain(s) no valid sample sets, this will remain the preferred device:
It's a DIY product, one should read the docs. I understand the full docs are intimidating, therefore I added a quick start with FAQ for newbies to have an easier start. But if a newbie doesn't even want to open a FAQ, he/she should not choose a DIY product. Mind the term "newbie" is not meant in a disqualifying tone, everybody needs to start. I am a hobbyist sharing my code for free so I don't have "users", but only fellow hobbyists (which surely includes motivated newbies - their feedback has proved to be very helpful / inspiring many times). Side note: Those wanting to use a thumb or other usb storage device can build a serial midi out on the midi controller and power feed the controller in an alternative way (could even be PI-pins). This also opens a development direction of having the samplerbox-PI combined with a Pico / Arduino / ESP midi controller to add all controls for samplerbox in the same enclosure. This way the need for a complex=expensive keyboard with lots of (programmable) knobs / buttons / sliders isn't necessary anymore. Very inspiring, so thanks for bringing up this subject! RE: Raspberry Pi Pico MIDI controller with SamplerBox 2019 image PiZero - hansehv - 13-03-21 Hi Rajiv, I managed to ignore the boot issue, sorry for that. When direct attaching screen & keyboard, don't you see any boot activity? Or do you mean that the device boots, but samplerbox process is not started properly - thus seaming "dead"? In my opinion, if starting OK on 2019 then on 2020 it should at least show boot activity on system console on which you also should be able to logon. This is because the difference between these two release on OS level (the level where you boot) is actually very small. An rpi-update has been done, but this should only improve compatibility (instead of reducing it as you observe). And if you can logon, you can also do debugging as mentioned on the build page. I tend to think that one of application level features (a lot were added) or some typical part of your setup, causes samplerbox function to fail on PI-zero. I'm puzzled by your observation, as the 2020 dist is used by many others and except for "normal" installation at particular setups, it works out-of-the-box. I have to add you are the only one I know of using my dist with PI-zero. RE: Raspberry Pi Pico MIDI controller with SamplerBox 2019 image PiZero - rajivdeo - 18-03-21 (12-03-21, 23:38)hansehv Wrote: I am glad that you found the idea of using Pico RP2040 with SamplerBox. There is a lot which can be accomplished with this combination. RE: Raspberry Pi Pico MIDI controller with SamplerBox 2019 image PiZero - hansehv - 18-03-21 Hi Rajiv, Thanks, I like exchanging ideas. Regarding the PiZero, concluding the issue is solved by agreeing that the 2020 image is incompatible is unsatisfying for next reasons:
I am working on a less limited, buster based, image in order to support PI-4 (got the prototype working) and others like PiZero (when I started I wasn't aware of anybody using the zero already). But I expect the distributable version will take several months, realistic before yearend earliest. If you want work with Pico and 2019 release, you can apply the patch yourself: around line 940 in samplerbox.py replace Code: gv.samplesdir = SAMPLES_ONUSB if os.listdir(SAMPLES_ONUSB) else SAMPLES_INBOX # use builtin folder (containing 0 Saw) if no user media containing samples has been found Code: gv.samplesdir = gv.SAMPLES_INBOX Hope this helps, Hans |