I'm trying to figure out which midi-commands have been implemented...
Although I understand explaining MIDI is beyond the scope of the tutorial, I hope you could give me some more information on the commands that can be used in SB to generate MIDI-messages.
Thank you.
Midi commands
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Midi commands
All MIDI commands are valid because your iOS device is a General MIDI 1.0 compatible gadget.
You can use NOTES MIDI t, cmd,a,b command to send MIDI messages.
t - music track to receive MIDI command
cmd - MIDI command
a,b - parameters of MIDI command
You can ask more specific question about any MIDI command you are interested in.
Also you can check "MIDI synthesizer.txt" sample to see how MIDI commands are implemented.
You can use NOTES MIDI t, cmd,a,b command to send MIDI messages.
t - music track to receive MIDI command
cmd - MIDI command
a,b - parameters of MIDI command
You can ask more specific question about any MIDI command you are interested in.
Also you can check "MIDI synthesizer.txt" sample to see how MIDI commands are implemented.
Re: Midi commands
Thank you for your reply. But I still need your help.
I refer to "NOTES MIDI t, cmd,a,b"
From the sample program, I recognize cmd = 9 for Note "a" On with volume "b", and cmd =12 for choosing "a" as instrument.
Am I right that cmd=11 sets the overal volume to "b" ? And cmd=8 for Note-off for key "a" ?
There may be other useful commands, but where can I find them ?
How do I write a midicommand to sound a percussioninstrument e.g. Bassdrum (35) on track 10 ?
Thank you for your patience with this user, who is by the way very enthousiastic about SB.
I refer to "NOTES MIDI t, cmd,a,b"
From the sample program, I recognize cmd = 9 for Note "a" On with volume "b", and cmd =12 for choosing "a" as instrument.
Am I right that cmd=11 sets the overal volume to "b" ? And cmd=8 for Note-off for key "a" ?
There may be other useful commands, but where can I find them ?
How do I write a midicommand to sound a percussioninstrument e.g. Bassdrum (35) on track 10 ?
Thank you for your patience with this user, who is by the way very enthousiastic about SB.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Midi commands
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.
cmd = 8 is to stop playing note "a" with key release velocity "b"
cmd = 12 is for choosing "a" as instrument
Yes, cmd = 8 is key release command for key "a".
More complete list of MIDI commands you can find here. For example there is a list of controller commands for cmd = 11.
cmd = 9 is to start playing note "a" with key press velocity "b"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 = 8 is to stop playing note "a" with key release velocity "b"
cmd = 12 is for choosing "a" as instrument
No, cmd = 11 is for controller commands. There are many of them depending on "a" value.smbstarv wrote:Am I right that cmd=11 sets the overal volume to "b" ? And cmd=8 for Note-off for key "a" ?
Yes, cmd = 8 is key release command for key "a".
At first you can refer to Dutchman manual, section 9.2.smbstarv wrote:There may be other useful commands, but where can I find them ?
More complete list of MIDI commands you can find here. For example there is a list of controller commands for cmd = 11.
Please note that tracks numerically start with 0, so Track #1 has number 0 and Track #10 has number 9 in MIDI commands.smbstarv wrote:How do I write a midicommand to sound a percussioninstrument e.g. Bassdrum (35) on track 10 ?
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