[sdiy] MIDI velocity
Tom Wiltshire
tom at electricdruid.net
Sun Apr 10 20:33:15 CEST 2016
On 10 Apr 2016, at 19:09, "Richie Burnett" <rburnett at richieburnett.co.uk> wrote:
>> Did you do the keyscanner as a separate processor then, Paul? Doesn't that
>> re-introduce latency when you have to communicate with the main uP?
>
> The latency won't be much if you use a high baud rate for the communications
> between the keyscanner and the main micro. That's what I'm going to do.
>
> The low data rate of MIDI is a real bottleneck for getting shot of all the
> note events that can potentially be generated in each small time interval of
> a fast key scanning process.
I definitely agree about MIDI being the real bottleneck. You have to wait like literally *milliseconds* for anything to happen! <teenage eyeroll>
I suppose if you're scanning at (say) 4KHz/250uS, then sending multibyte messages at a few MHz isn't going to hold anything up. For example, three bytes: 24 bits x 1usec = 24usecs, so we've time for ten such messages before our next scan. So SPI or even a fast serial connection between the keyscanner and the main uP looks feasible.
(Incidentally, I never really understood why the MMA didn't just up the data rate of the MIDI spec back in the 90s sometime. We could have coped with "two speed" MIDI. Modern synths could have had a baud rate selector so they could talk to whatever. We manage with USB1, USB2, etc. It doesn't need a whole new spec, just the same, but faster.)
Tom
More information about the Synth-diy
mailing list