[sdiy] midi clock to GATE (or trigger) converter with Arduino???

Martin Klang mars at pingdynasty.com
Thu Mar 1 04:37:49 CET 2012


There are a couple of MIDI libraries for the arduino, but the ones I've tried I've found lacking.

But in this case it's quite simple and you don't need a library.

There are 24 MIDI clocks to a quarter note, 96 per measure.
You could hook up a pot to an analogue input to set the divisor with, or send specific CC messages, or summink.

You might also want to listen to start and stop messages.

If you're comfortable coding, you can ditch wiring and implement the uart receive interrupt yourself.
If you didn't understand that sentence, don't worry -
just loop over Serial.available() [1] and check the values!

The serial speed for MIDI is 31250 baud, which kind of sucks because it's not a standard terminal speed.

Also - check the output from your sequencer to make sure it sends MIDI clock messages and not timecode [2]!

hth,

/m

[1] http://arduino.cc/hu/Serial/Read
[2] http://en.wikipedia.org/wiki/MIDI_timecode


On 1 Mar 2012, at 02:37, Tom Arnold wrote:

> On Wed, Feb 29, 2012 at 09:23:42PM -0500, dan snazelle wrote:
>> so what I am wondering is how hard it would be to find and or write a sketch to take MIDI clock from a sequencer like Logic and convert it into gates that would clock my 
>> MFB sequencer or any other clock able module
> 
> Trivial.
> 
> Just do a serial.read and look for the midi clock status byte.  Keep a
> counter since the clock is on quarter notes, and toggle your chosen output
> pin as needed.  Maybe a little more work to make certain you toggle that pin
> the right length of time but still shouldn't be a huge deal.
> 
> -- 
> -----------------------------------------------------------------
> - Tom Arnold       -  Free Synth DIY webspace http://www.sdiy.org 
> - SynthGeek        -  "...is it a virus, a drug, or a religion?"
> - K6AET            -  Juanita Shrugs. "What's the difference? 
> --------------------         -- Neal Stephenson,  Snow Crash
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at dropmix.xs4all.nl
> http://dropmix.xs4all.nl/mailman/listinfo/synth-diy




More information about the Synth-diy mailing list