You should understand that MIDI interface was designed to transmit musician activity on his keyboard to sound production device, in real time. So
every musician movement is encoded as MIDI command and is sent to sound sampler.
smbstarv wrote:From the sample program, I recognize cmd = 9 for Note "a" On with volume "b", and cmd =12 for choosing "a" as instrument.
cmd = 9 is to start playing note "a" with key press velocity "b"
cmd = 8 is to stop playing note "a" with key release velocity "b"
cmd = 12 is for choosing "a" as instrument
smbstarv wrote:Am I right that cmd=11 sets the overal volume to "b" ? And cmd=8 for Note-off for key "a" ?
No, cmd = 11 is for controller commands. There are many of them depending on "a" value.
Yes, cmd = 8 is key release command for key "a".
smbstarv wrote:There may be other useful commands, but where can I find them ?
At first you can refer to
Dutchman manual, section 9.2.
More complete list of MIDI commands you can find
here. For example there is a list of controller commands for cmd = 11.
smbstarv wrote:How do I write a midicommand to sound a percussioninstrument e.g. Bassdrum (35) on track 10 ?
Please note that
tracks numerically start with 0, so Track #1 has number 0 and Track #10 has number 9 in MIDI commands.
Code: Select all
1 notes midi 9,9,35,127 'start playing Bass Drum
pause 0.3
notes midi 9,8,35,127 'stop playing Bass Drum
pause 0.5
notes midi 9,9,38,127 'start playing Snare Drum
pause 0.3
notes midi 9,8,38,127 'stop playing Snare Drum
pause 0.5
goto 1