[sdiy] midi clock to GATE (or trigger) converter with Arduino???
Tom Wiltshire
tom at electricdruid.net
Thu Mar 1 15:34:01 CET 2012
On 1 Mar 2012, at 14:00, Sam Harmon wrote:
>
> On Mar 1, 2012, at 4:43 AM, Tom Wiltshire wrote:
>
>>
>> On 1 Mar 2012, at 04:24, dan snazelle wrote:
>>
>>>>
>>>> The serial speed for MIDI is 31250 baud, which kind of sucks because it's not a standard terminal speed.
>>>>
>>>>
>>>
>>>
>>> if its not a standard terminal speed then how do i get the terminal to lock to it?
>>>
>>> thanks!
>>
>>
>> I don't think 31250 baud is such a pain - it's 1MHz divided by 32, which is a convenient number. Just use a crystal which is a whole number of MHz for your system clock.
>
> The problem on Arduino is that the Serial Console in the IDE doesn't support 31250- makes debugging a real pain. It's apparently an issue with the Java serial library that the IDE uses.
>
> I usually end up doing #ifdef DEBUG blocks around the serial stuff and set it to 38400 if I'm debugging and need to see what's happening. Of course, if you're debugging input, you'll need an output that sends to it at 38400 as well...
I see. Sounds like they made that harder than they needed to. MIDI is a pretty obvious application for Arduino, I'd have thought.
Still, it seems like it can be done:
http://arduino.cc/playground/Main/MIDILibrary
http://www.vidiotsquad.com/arduino-and-midi-input/
T.
More information about the Synth-diy
mailing list