gary
Oracle
SuperPower
Posts: 130
|
Post by gary on Oct 14, 2017 12:36:37 GMT
Hi Nic,
I am working on some logic using Stream Byter code and I seem to have a couple bugs. It's rather long, but here is a chunk with my first question
# sending CC out midi ch J0 increment in note off loop, there must be an easier way # SND BJ0 didn't work using j0 to index b0 - b3 ?? IF J0 == 0 SND B0 I0 M1 # CC CC# key pressed value to midi chs 1-4 1 END IF J0 == 1 SND B1 I0 M1 # CC CC# key pressed value to midi chs 1-4 2 END IF J0 == 2 SND B2 I0 M1 # CC CC# key pressed value to midi chs 1-4 3 END IF J0 == 3 SND B3 I0 M1 # CC CC# key pressed value to midi chs 1-4 4 END
## J0 is being incremented in another loop ## I0 is being incremented in another loop I was thinking I could use the J0 as an index to bump up B0 - B3 but received an syntax error. The above IF/END works great, but isn't there a better way? Reducing this to just one line of code with the counter increment the B(J0) ??
I also have a bug that I cannot run down and wonder if you would mind looking at the entire Stream Byter Code? I also have questions commented in the code too. I would need to send you the .mfr file, formatting gets lost posting here. Can I send it to you?
Thanks Nic!
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Oct 14, 2017 12:56:46 GMT
Hi @gary,
How about:
# store/send CC + channel in J0 to L0 MAT L0 = B0 + J0 SND L0 I0 M1
Sure, send me the full .mfr with other issue.
Regards, Nic.
|
|
gary
Oracle
SuperPower
Posts: 130
|
Post by gary on Oct 14, 2017 13:20:20 GMT
Goodness, that seems easy enough. I didn't realize you could do it that way. B0 + 1 is B1, B1 + 1 is B2..and so on. B is the controller events, # is the midi channel
Great. I'll send the file
|
|
gary
Oracle
SuperPower
Posts: 130
|
Post by gary on Oct 14, 2017 16:13:12 GMT
Hi @gary , How about: # store/send CC + channel in J0 to L0 MAT L0 = B0 + J0 SND L0 I0 M1Sure, send me the full .mfr with other issue. Regards, Nic. Hi Nic, Your streamed line code suggestion worked perfectly; thank you. Awesome! Gary
|
|