MIDI input from a keyboard?

Blitz3D Forums/Blitz3D Programming/MIDI input from a keyboard?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm going to guess that you have a sample of middle C (midi value 60) recorded at 22000hz.

C one octave up should be double the pitch (22000 x 2).

Therefore C# (one note above middle C) should be 22000 + (22000/12).
Therefore:
D = 22000 + 2x(22000/12)
E = 22000 + 3x(22000/12)
F = 22000 + 4x(22000/12)
etc

Any use? Worth trying anyway.