There really shound be plug-and-play Bluetooth MIDI

It seems the use DIN plug MIDI is diminishing, USB being the new standard?
With DIN plug and Bluetooth being mutually exclusive on the Pi, one has to wonder which should be active by default. I imagine the less tech. savy users are more likely to use BT MIDI keyboards.

As far as a clean future implementation:
The Compute Module 4 has a regulator certified, SMA connector external antenna (discussed mainly in the context of WiFi)
Compute Module specs. include:
Bluetooth 5.0, and BLE with onboard and external antenna options
Adafruit is offering what appears to be the official external antenna for $5. Pi CM4 antenna specs sheet ZynthianOrg Folks: the regional compliance data might be of use.

The current model calls for some sort of compromises, cut antenna window in the metal case, experiment with audio board shielding to minimize interaction with the radio, use either an external USB Bluetooth adapter or external DIN MIDI adapter to to allow both to coexist.

The last breakthrough report I ran across:
sidor Feb 3
Just wanted to add that I’ve successfully paried a Bluetooth MIDI device on my custom Zynth with the onboard Bluetooth device using this guide (in case anyone else find it useful):

. - - - - - - - - - - - - - - - -
Regarding latency in Bluetooth MIDI, this 2019, 30 page study should be informative.
Practical Considerations for MIDI over Bluetooth LowEnergy as a Wireless Interface
(They discuss other wireless methods as well)

End-to-End Latency Measurements
Connection. . . . . . . . . . . . . . . . . Latency. . . . . Std Dev
USB MIDI (Teensy). . . . . . . . . 4.1 ms. . . . . . . . 0.4 ms
USB MIDI (Teensy). . . . . . . . . 5.1 ms
USB-Serial (custom). . . . . . . . . 6.2 ms. . . . . . . 0.35 ms
BLE MIDI (custom). . . . . . . . . . 19.1 ms. . . . . . . 2.7 ms
BLE MIDI (minimal). . . . . . . . . 7.5 ms. . . . . . . 1.8 ms
WiFi RTP-MIDI (minimal). . . .8.5 ms
WiFi OSC (minimal). . . . . . . . . 7.6 ms
WiFi OSC
. . . . . . . . . . . . . . . . . . . . 6.7 ms
BT 2.0-Serial. . . . . . . . . . . . . . . . 30 ms
BLE*. . . . . . . . . . . . . . . . . . . . . . . . . 139 ms

Round-trip Delay of wired and BLE interface
Connection. . . . . . . . . . . . . . . Round-trip. . . Std Dev
Wired Computer 1 to 2. . . . . . 4.3ms. . . . . . 2.2ms
BLE Computer 1 to 2. . . . . . . . 29.9ms. . . . . 16.0ms

Select Available BLE Devices (in 2019)
Manufacturer. . Model. . . . . . Device Type

ACPAD. . . ACPAD. . . . . . . . . . . Guitar Controller
CME. . . . . . X-Key Air. . . . . . . . . Keyboard Controller
CME. . . . . . WIDI Bud. . . . . . . . . . USB-BLE MIDI Adapter
Isla. . . . . . . KordBot. . . . . . . . . . . . Chord Controller
Livid. . . . . . Minim. . . . . . . . . . . . . . Control Interface
Korg. . . . . . nanoKey. . . . . . . . . . . Keyboard Controller
Quicco. . . . . mi.1. . . . . . . . . . . . . . . MIDI to BLE MIDI
Roland. . . . Aerophone. AE-05. . Wind Controller
ROLI. . . . . . . Blocks. . . . . . . . . . . . . interfaces
ROLI. . . . . . Seaboard. . . . . . . . . . . Keyboard Controller
Sensel. . . . . Morph. . . . . . . . . . . . . Reconfigurable Interface.
Yamaha. . . MD-BT01. . . . . . . . . . MIDI to BLE MIDI.
Yamaha. . . UD-BT01. . . . . . . . . . . USB-Host to BLE
Zivix. . . . . . jamstik. . . . . . . . . . . . . . MIDI Guitar Controller

. - - - - - - - - - - - - - - - -

One forum thread seemed to agree that BT MIDI is usable, except for MPE. (MIDI Polyphonic Expression)
That 220 pound CS-80 “Blade Runner Keyboard” had polyphonic aftertouch (but predated MIDI)
There are other latencies you learn to adapt to.

Aside from commercial Bluetooth controllers, their are also a number of potential cell phone based gadgets that would link through MIDI

For the rare need of an expression pedal, one guy demonstrates a web page script that converts phone rotation into a control signal, 2 axis MIDI signals could be sent from the tilt sensors that all our phones have.

iphonewah
The Demo Page - - - - - The Github Source

The last time I saw Neova modulation ring in NAMM videos it still had a wire, I see it’s now a polished finished product.
(Judging by the size it probably used BLE with a proprietary data format link to their receiver/charger) 1:15 demo
https://www.youtube.com/watch?v=kgpN8uCEUR4
(You can see 5 minutes of pros trying it at NAMM)
At 399€ it’s probably not an effective add-on aftertouch for cheap keyboards. (Wave Ring prototype analyses, no intermediate box?)
. - - - - - - - - - - - - - - - - - - -
You could make an Elton John sized facimile using a bluetooth Badge, Beacon or Fitness monitor with an accelerometer.
Bluetooth 3 axis accelerometer sensor module ble $9.14 accelerometer proximity beacon sensor nRF51822 bluetooth radio, STmicro lis2dh12 accelerometer ±2g/±4g/±8g/±16g data rates from 1 Hz to 5.3 kH, 26mm dia (no programming pads?)

I have one of these surplus 30mm badges loaded with sensors:


(Had in mind to use in for a Guitarists ring, pick holder)
NRF52832 SENSOR R40: accelerometer, gyroscope, altimeter, ambient light, 2 push buttons 4.0BLE, coin battery (no case) China
I scrounged some documentation I hope I have not lost
$16.02 . . $18.61 . . $20.28
. - - - - - - - - - - - - - - - - - - -
I bought but have yet to play with the * Nordic Semiconductor ASA NRF52840-DONGLE for a bargain $10 (meant as an engineering toolthe supply does’t appear to be limited.

It uses their new BT5 chip with a fairly potent processor, BT5 get something like 4X the range and double the speed of BT4. Could perhaps be used in pairs for a select-able, enhanced propitiatory performance Bluetooth link (The dongle doesn’t have the debugging facilities of a larger eval board)
. - - - - - - - - - - - - - - - - - - -
More WiFi connect options would be useful as well, perhaps an alternative to VNC that sends compact display state specifications instead of a screen shot, could make a mobile device front panel interface to a headless version perform more like the real deal.
I suppose a WiFi MOD-UI edit page connection to a tablet would be miserably slow, but a useful kluge in a pinch if there’s no desktop/lap computer with eithernet handy.

It’s just lucky the Zynthian Corporate engineering staff is ready to fulfill our unrealistic re-engineering dreams.
Basement Lab sm

I think the figures speak for themselves. Fairly large latency and gitter will make playing through BLE quite uncomfortable for some and destory other’s ability to play properly.

I still see hardware 5-pin MIDI sockets as a boon. There is a lot of exiting and even new equipment with it. Many of us rely heavily on the ability to plug in our (1980’s) controllers into our Zynthians.

Zynthians extensive USB MIDI support is very useful allowing modern devices and expansion ports to be added quite simply. Its ability to act as a USB OTG device is also useful (although not fully realised yet due to challenges with power supply).

An option to enable BLE may be advantageous for remote connection of devices, especially if improvements are made in the latency and jitter. I wouldn’t mind if that were a toggle between hardware and BLE, i.e. only one can be active . It may also be advantageous to support BLE over USB.

FYI hardware MIDI 1.0 has approximately 1ms latency and lower jitter. This was deemed acceptable in the 1980’s and remains so today with latency generaly being higher in audio side of an instrument. Latency from cascading devices was (and continues to be) a complaint from musicians but this is resolved by avoiding cascading.

Just a quick update from here: It still works without any issues here. Everything connects automatically and works as soon as it’s booted. For my use case latency is not an issue.

2 Likes

Information on breaking the radio signal out of the metal case.

with an added external antenna on a Raspberry Pi 3 or 4.
(It will also beacon a message to the FCC enforcement assault team,
that is don’t expect a Zynthian.org endorsement of such an action)

This video takes a first look at the provided connection pads.

This is a step-by step guide for an external Pi 4 antenna.


(The schematic is part of the built in antenna circuit)

Speaking of cascaded latency, did you see “The World’s Largest Pedal Board

The speed of sound is 2.92 meters/ms, a monitor on the other end of a stadium gig stage might add around 10 ms delay, no point, just for reference.

I assume USB can provide a programmable wiring configurations of virtual cables.

One guide recommends a limit of 30 meters for USB 2.0, and 18 meters USB 3.0/3.1 (just pondering what hubs and repeaters? might be necessary in a large studio)