Midi and Timer Interupts


i have trying create own midi synth scratch, don't want turn library want understand going on under hood. had quite comprehensive synth coming on, i've gone right basics can work desire to.

the first question midi bytes. using arturia minibrute send midi messages arduino , i'm using serial.print read them. collect 3 bytes every time , print them, understanding every action sends 2 or 3 bytes. reason, every time press key or let go of key, 6 bytes.

if press , let go of say, middle c, these bytes (i've added anotation of bytes understand):

144         // note on
255         // ?
255         // ?
60           // note number
62           // velocity
255         // ?


128         // note off
255         // ?
255         // ?
60           // note number
0             // velocity
255         // ?

why on earth getting "255"'s in midi data? wondered if collection of serial data being slow or glitchy, have been playing while, , bytes consistently arranged in order.

cheers in advance, pete

ok, realise second question more programming question audio one, i'm going repost part there, know why i'm getting midi data i'm getting?

pete


Arduino Forum > Using Arduino > Audio > Midi and Timer Interupts


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code