This forum is read-only. Please post new topics in our Q&A forum.

selecting more than one velocity ranges

General discussion about MIDI Translator

Moderators: florian, DvlsAdvct

Post Reply
Sakis
Power User
Posts: 114
Joined: Tue Mar 22, 2011 11:43 pm

selecting more than one velocity ranges

Post by Sakis » Sat May 14, 2011 1:49 am

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
Bome Forum Moderator
Posts: 366
Joined: Mon Nov 16, 2009 1:09 am

Re: selecting more than one velocity ranges

Post by Attigo » Sat May 28, 2011 8:39 pm

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
Power User
Posts: 114
Joined: Tue Mar 22, 2011 11:43 pm

Re: selecting more than one velocity ranges

Post by Sakis » Sat May 28, 2011 11:23 pm

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
Bome Forum Moderator
Posts: 366
Joined: Mon Nov 16, 2009 1:09 am

Re: selecting more than one velocity ranges

Post by Attigo » Sat May 28, 2011 11:49 pm

Good stuff!!

Scott

Post Reply