Another "Ruby if then" question
Posted: Sat Aug 23, 2014 1:42 pm
Hi
In my last post, Iv requested a kinda "IF THEN" module, based on ruby hashes.
This time, wondering if there is any chance to code a ruby "if then" module that
based on "<", ">" as well.
Well, the idea is a ruby modole with one input (midi), one output (float). the ruby module
should extract velocity info from the midi input, compare it with given values and send specific values to the output
when the velocity value is greater then x or smaller then x.
Any chance to make it with ruby?
In my last post, Iv requested a kinda "IF THEN" module, based on ruby hashes.
This time, wondering if there is any chance to code a ruby "if then" module that
based on "<", ">" as well.
Well, the idea is a ruby modole with one input (midi), one output (float). the ruby module
should extract velocity info from the midi input, compare it with given values and send specific values to the output
when the velocity value is greater then x or smaller then x.
Any chance to make it with ruby?