ChucK is a music programming language (and compiler/synthesizer) written by a professor (Perry Cook) and his students at Princeton University. I'm learning how to use it; I thought that writing about how to use it would help...

Friday, January 21, 2005

Mikael Johansson Answers My MIDI Question

Mikael Johansson answers my question about MIDI numbers (via the ChucK mailing list while I slept last night):


http://www.harmony-central.com/MIDI/Doc/table2.html

Basically, number 60 is middle C, denoted as C4. The number steps one step
for each halftone. So you get which of the tones in the scale by
calculating notenumber%12, and which octave by integer division by 12.


I've copied the table from the MIDI page (and I've added the page link to the links list on the right over there):


Octave #Note Numbers
CC#D D#EFF#GG#AA#B
-1 01 2 34567891011
01213141516171819202122 23
1242526272829303132333435
2363738394041424344454647
3484950515253545556575859
4606162636465666768697071
5727374757677787980818283
6848586878889909192939495
796979899100101102103104105106107
8108109110111112113114115116117118119
9120121122123124125126127