Initialize value? / once?


#1

How do you set a value once when going live?
As soon as a first midi message is received (e.g. velocity), the value should start following that.
Wasn't there once something like a "once" object...?

I'm thinking in the lines of a constant that feeds the value through a mux/mux 2 object, as long as no midi value has been received.
The mux/mux 2 object is set to 0 initially, outputting the constant value, and then, as soon as a midi message appears, it is set to 1 forever more, outputting the midi values...

any ideas?
Thanks


#2

You could use a "logic/flipflop" into the s inlet of "mux/mux 2".


#3

I havent tested this or looked into it, but I think the midi cc in object have a default value that you can set?


#4

@jaffasplaffa problem is I'm listening for velocity values, for which there is no such default setting...
@johannes perfect solution, thanks!