selecting more than one velocity ranges

Sakis

2011-05-14 02:49:57

Hi.I'm trying to "split" on note so to trigger different sounds according to velocity and reducing the velocity layers to three ...My incoming signal has a "pp" velocity.
I simply want the low hits have a fixed velocity "80" so the first rule was
if pp<=80 then pp=80
then I want to select a range from 81 to 105 and a range of 106 to 127.I can't figure how to set the rule...
It should something like :
IF 81<pp<=105 then pp=105 , but it's invalid...
Any help appreciated!
PS. If the title is a bit misleading tell me to edit it!

Attigo

2011-05-28 21:39:07

Hey Sakis,

I understand your problem. To do something like this, your rules should be:

Code: Select all

if oo<=80 then Goto "one"
if oo<=105 then Goto "two"
if oo<=127 then Goto "three"
Label "one"
pp=80
exit rules, skip Outgoing Action
Label "two"
pp=105
exit rules, skip Outgoing Action
Label "three"
pp=127
exit rules, skip Outgoing Action
That is one way of doing it. Give it a try and let me know if it works!

thanks,
Scott

Sakis

2011-05-29 00:23:07

Thanks Attigo, it works!
I realized that I was using wrong rules...I'm sorry I can't express that in English but a mistake I did was(example):
if pp>=0 then oo=10
if pp>10 then oo=30
if pp<30 then oo=30

I had in mind that the last 2 rules were 10<pp<30 but it was wrong and "oo" was 30 for "pp" range 0 to 30 in MidiTranslator....
so the right way is:
if pp>=0 then oo=10
if pp>10 then oo=30
if pp>=30 then oo=55

simple, but I couldn't get it!

Attigo

2011-05-29 00:49:28

Good stuff!!

Scott