Feeling like a newb..but what is the placeholder syntax for arguments eg ctlin; I want to filter cc only on ch 13 but this argument is second...how do I pad/implement that?
-
Argument Placeholders
2.5 billion genomes in 2.5 nanometres...now thats what I call data compression! Language of Life...love it
-
I am not sure about placeholders, but in this case you could do something like this:
The spigots allow data to pass only if the CC is being received from channel 13. From there you have the CC number and value.
Cheers!
Gilberto -
A better option than using [spigot]s is to connect the midi input object outputs to a three input pack object -- [pack f f f], then send it to a message reversal template -- [$3 $2 $1( . After that all you need to do is sent it to [route] objects to filter first for port/channel, then CC number and value.
-
@NoDSP That works well as well, but why do you say "better"? What is the advantage of using [pack] and then a message reversal followed by a [route]? In my opinion, the solution I proposed is slightly clearer, as it represents at least how I formualte the problem ("if channel 13 then data interests me, else ignore it"). And of course you can also pack the data coming from from [ctlin] before or after using a spigot, so that you can route the CC numbers.
-
@gsagostinho said:
@NoDSP That works well as well, but why do you say "better"? What is the advantage of using [pack] and then a message reversal followed by a [route]? In my opinion, the solution I proposed is slightly clearer, as it represents at least how I formualte the problem ("if channel 13 then data interests me, else ignore it"). And of course you can also pack the data coming from from [ctlin] before or after using a spigot, so that you can route the CC numbers.
Here's yet another way:
The benefit is that is scales to more easily to more outputs. You don't get any overlapping wires, and its easier to hook up.
But for two outlets, two spigots are simpler and more readable to me.
-
Actually...this is really good getting to see the different perspectives...great way to learn
2.5 billion genomes in 2.5 nanometres...now thats what I call data compression! Language of Life...love it