|
Author |
Topic: MIDI fun (Read 511 times) |
|
Vair
|
MIDI fun
« on: Nov 24th, 2004, 8:32am » |
|
I've just been playing around with the MIDI library and thought I'd share my results in case anyone else wants to play around with something similar or has any advice on how the code might be improved. This is the processing code for an onscreen piano keyboard that sends MIDI notes to the synthesizer when you click on a key. Click on the + or - signs to move forwards or backwards through the default instruments or click on the instrument name to jump to a random one. This will only work in processing for now, as far as I am aware, because the Java Runtime Environment doesn't come with a soundbank installed. It's also limited to the first soundbank (127), because of, what I understand to be, a Java bug that prevents higher soundbanks from playing. I've commented the code, but you may find that I've missed something important that bears further explanation. Feel free to let me know. http://unscientific.info/p5/MIDI.txt
|
|
|
|
|