Post by gary on Oct 12, 2017 14:58:51 GMT
Hey Nic,
I am trying to build something and part of this isn't working. Possibly, and most likely, I am not interrupting the coding correctly but here is the simple logic.
[This is saved in one Stream Byter Block/module]
ASS L0 = 0 # setting first prepping local L0 to val 0 to start
# only note on <==== note ch#1 pressed, i.e. note on
IF M0 == 90
IF L0 == 0
# then do some stuff
MAT L0 = L0 + 1 # simple counter, inc L0 by 1
SET LB0 L0 +D # displays in first 'byte' window value for testing
SET LB1 SON +D # 2nd byte
END
END
# only note off <==== note ch#1 released, i.e. note off
IF M0 == 80
ASS L0 = 12
SET LB0 M0 #we are in this loop now
SET LB1 L0
END
I go through the Stream Byter block twice, once for a note on / once for a note off. However, when I release, I'm not seeing the 2nd test happen. Shouldn't I be able to test for a note off and/or am I missing how this should work? I even isolated the latter, with a fresh block and only tested for IF M0 == 80 and it just ignores it. Ostensibly, I'm only interested in a [note on message] so I can then a construct logic based on what key was pressed, but I was trying to test my test and noticed this wasn't working for me.
When I place an event monitor on the data stream...
CH:01 Note On F2 Vel:54 [MidiFire]
90 36 36
CH:01 Note Off F2 Rel:000 [MidiFire]
90 35 00
etc...
As always all Stream Byter great Nic, I appreciate your input.
Gary
[oops failed to add, this is on my ipad air2 still running ios 10.3.3, not brave enough to move my ipad over to 11.x ... yet.
]
I am trying to build something and part of this isn't working. Possibly, and most likely, I am not interrupting the coding correctly but here is the simple logic.
[This is saved in one Stream Byter Block/module]
ASS L0 = 0 # setting first prepping local L0 to val 0 to start
# only note on <==== note ch#1 pressed, i.e. note on
IF M0 == 90
IF L0 == 0
# then do some stuff
MAT L0 = L0 + 1 # simple counter, inc L0 by 1
SET LB0 L0 +D # displays in first 'byte' window value for testing
SET LB1 SON +D # 2nd byte
END
END
# only note off <==== note ch#1 released, i.e. note off
IF M0 == 80
ASS L0 = 12
SET LB0 M0 #we are in this loop now
SET LB1 L0
END
I go through the Stream Byter block twice, once for a note on / once for a note off. However, when I release, I'm not seeing the 2nd test happen. Shouldn't I be able to test for a note off and/or am I missing how this should work? I even isolated the latter, with a fresh block and only tested for IF M0 == 80 and it just ignores it. Ostensibly, I'm only interested in a [note on message] so I can then a construct logic based on what key was pressed, but I was trying to test my test and noticed this wasn't working for me.
When I place an event monitor on the data stream...
CH:01 Note On F2 Vel:54 [MidiFire]
90 36 36
CH:01 Note Off F2 Rel:000 [MidiFire]
90 35 00
etc...
As always all Stream Byter great Nic, I appreciate your input.
Gary
[oops failed to add, this is on my ipad air2 still running ios 10.3.3, not brave enough to move my ipad over to 11.x ... yet.
