News for hackers. Stuff that matters.
Re:Show HN: Turn a Raspberry Pi into a Bluetooth MIDI Device by nbulka on Sunday December 19, 2021 @08:08PM (#29620473)
How would/could this work with, say, an analog synthesizer that accepts MIDI?
Re:Show HN: Turn a Raspberry Pi into a Bluetooth MIDI Device by jzellis on Sunday December 19, 2021 @09:05PM (#29620802)
MIDI DIN to USB adapters are really cheap and I've never had a problem with even the most generic Amazon one.

You don't mention your level of MIDI expertise, but what you should probably know, if you don't, is that analog synths with MIDI outputs are almost always MIDI-out only, unless they're mad expensive and have motorized controls (or use digital pots to control analog hardware, which is vanishingly rare).

Of course, you might be able to send notes to the synth via MIDI if it's got onboard MIDI to CV conversion, but you probably won't be able to control your synthesis parameters with MIDI. Your mileage may vary and I could be wrong, and if it's a newer analog synth you might be able to do it. But mostly you'll be able to sequence notes from another device with it. No matter what, you'll probably have to spend some time with the synth's manual just to get it running. It's good nerdy fun though.

Re:Show HN: Turn a Raspberry Pi into a Bluetooth MIDI Device by BeatQuestGames on Sunday December 19, 2021 @08:36PM (#29620646)
You have a few options.

First, skip this project entirely and buy a direct midi to Bluetooth adapter. https://www.sweetwater.com/store/detail/MDBT01--yamaha-md-bt...

Second, use a MIDI to USB cable, https://www.sweetwater.com/store/detail/Uno--m-audio-uno , and then plug into your Raspberry PI. You can also buy USB MIDI to Bluetooth adapter for about 50$.

Finally, you could buy a MIDI hat for your Raspberry PI. I don't think this will work out of the box, but I can't imagine it would be too hard.

Re:Show HN: Turn a Raspberry Pi into a Bluetooth MIDI Device by alin23 on Wednesday December 22, 2021 @01:21PM (#29653102)
An ESP32 would be a much better choice for analog MIDI: https://github.com/max22-/ESP32-BLE-MIDI

You could hook the wires from a MIDI cable to some ESP32 pins, read the MIDI messages and send them instantly through BLE to an iPad/MacBook.

An ESP32 board has the advantage of booting instantly, can be powered from a battery for a lot more time, can't cause SD card corruption, and is less susceptible to delays caused by the kernel scheduler.

I usually choose the Lolin32 Lite because it's very compact and has a built-in Lithium battery connector which can also charge the battery: https://diyprojects.io/wemos-lolin32-lite-compact-revision-l...

Re:Show HN: Turn a Raspberry Pi into a Bluetooth MIDI Device by noughtme on Sunday December 19, 2021 @08:16PM (#29620533)
Unless the synth has usb, you would need a usb audio interface with midi, or a usb midi interface. This only adds wireless capability.