lid55
MidiFire Beta
Posts: 75
|
Post by lid55 on Dec 2, 2017 9:31:25 GMT
Hi Nic, I’m wondering about the cases where either option works, would you recommend to use one over the other?
For example, you can have an equivalent input/output with:
(Streambyter1 rules:) B2 32 7F = C1 21 75
(Streambyter2 rules:) IF M0 == B2 32 7F SND C1 21 75 END
Would either be better for speed of processing, etc?
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Dec 2, 2017 9:42:43 GMT
Hi lid55, Actually those two rules are slightly different. One just remaps the incoming event while the second sends an additional event. However, in the scheme of things the difference between the two is negligible in terms of processing. My advice is to use whichever you feel comfortable with. Personally I would always use the most concise form where I can. Regards, Nic.
|
|
lid55
MidiFire Beta
Posts: 75
|
Post by lid55 on Dec 2, 2017 23:35:55 GMT
Thanks for the quick response nic.
I guess it would be equivalent input/output if I added the clone +C to StreamByterI rules?:
(Streambyter1 rules:) B2 32 7F = C1 21 75 +C
(Streambyter2 rules:) IF M0 == B2 32 7F SND C1 21 75 END
OR if I blocked the original message on the StreamByterII rules (but that's cheating because +B is a StreamByterI rule):
(Streambyter1 rules:) B2 32 7F = C1 21 75
(Streambyter2 rules:) IF M0 == B2 32 7F SND C1 21 75 END B2 32 7F = XX+B
Anyways, good to hear the difference in processing is negligible
I guess what else I was subconsciously trying to figure out was: is StreamByterII meant to replace StreamByterI? But from your response I take it that no, this is not the case... and that each have their benefits.
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Dec 3, 2017 9:40:02 GMT
Or in SB2 change SND to ASS M0 = to remap rather than clone.
I wanted a more rich language for SB2 to do all the things that SB1 couldn't (it's really just a pattern matcher) but wanted backwards compatibility with MidiBridge. Maintaining backwards compatibility is important to me so the SB1 style will live on. Not to mention for some things it is much more concise.
Regards, Nic.
|
|