|
Post by klay2000 on Apr 27, 2021 17:15:07 GMT
Hi guys
The 9C 16 40 and 9C 17 40 messages in this script should be described as note on messages right?
The behaviour of the output is turning lights on. Which is what is intended
Thanks in advance
# handle ticks IF M0 == F8 # 24 ticks == 1 beat, so determine # bar modulo into variable I0 which # will have a range of 0 to 95 MAT I0 = G0 % 60 # first beat of bar, I0 is 0 IF I0 == 0 # turn light on (note on) SND 9C 14 40 END # second beat of bar, I0 is 24 IF I0 == 18 # turn light on (note on) SND 9C 15 40 END # third beat of bar, I0 is 48 IF I0 == 30 # turn light off (note off) SND 9C 16 40 END # 4th beat of bar, I0 is 72 IF I0 == 48 # turn light off (note off) SND 9C 17 40 END # increase tick counter MAT G0 = G0 + 1 END
# reset tick count on start, continue or stop IF M0 >= FA IF M0 <= FC ASS G0 = 0 END END #
XX = XX +B
|
|
|
Post by uncledave on Apr 28, 2021 10:00:05 GMT
Yes, on MIDI channel 13; remember the message channel number is one less than the "MIDI Channel". Also, the note numbers in these messages are in hex, so 9C 14 40 sends note $20 with velocity $64 (50% of max).
|
|