So your 'yellow off' message is actually independent green/red off messages? So every message you send is at least 3 things?
My plan is doing something likes what you've set up that it changes to a new color regardless of what's going on.
Fortunately, with colour number 2, we can switch yellow directly. This gives the same result as setting green and red to the same state. Therefore "yellow off" is perfect to turn a LED off.Rodrigo wrote:So your 'yellow off' message is actually independent green/red off messages? So every message you send is at least 3 things?
Code: Select all
40 2, 41 0, 42 1, 40 2, 41 1, 42 1, 40 2, 41 1, 42 0, 40 2, 41 0, 42 0
If the LED colors and states are hardcoded in message boxes I would do it differently. And yes, differently from my previous suggestions: There is no need to write CCs for "yellow off" at the output stage. We can send "yellow off" before our LED command and let the [coll] do the work like for all other commands. Then we can just append the dummy to each complete LED message. This is now possible because the [coll] already decoded "yellow off".Rodrigo wrote:Here's a compact example using your coll idea and some prepend/append so that you can send a single text message "1 red on" and the current LED is turned off, and dummy messages are sent after each thing.
Code: Select all
<pre><code>
----------begin_max5_patcher----------
1182.3oc4Ys0iaiBE94jeEHq9X1QFvWh22p5yUck5isqF4DSRYquDYS5LSq5
+8EC3DOYLNDarmQpZjhGvbfykuy2Av+Z4BmMEORpb.+M3KfEK90xEKDcU2wB
U6ENYwOtMMtRLLmsEYYjblyJ46XjGYh9iSeH9oJP0CT11uAdhjlV7.nX2NvN
ZY0ogmRyIaKNlKjAo5L+XVwQVJgIVAWUuzDw7Vr4+9qnFw2UjyxiyHh279RZ
bZyaNDyWVZ996KIaYR6wy2+N2U.jqa8iPYin6bA+640kl2rrvVKQE8mhk.xk
rt2eubY8OqLzEs4HiUj6zo00rLxtXOcfHUVmMw46cNoZsLdebO1HVXUPWkk1
7qFSb.1RFopJdOoivcZqf7MZqcamvAEkUdf0xfbfrgNO.pqfLZPA4bxCbs9E
9kLZBkaufu574O+gO8Qv+TTx.vu53XJV2ycPtAnL36gEOfvn9cDVDs2iiXWQ
YVL6FAGzZxgNvG3vQ4Xjr.P0CsNlP64Xzk57NnkybvACiezyscpS3rk5XW9Q
LpGaDgDzCgtSE+nksEXeLcSNYukMF2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in your application you could use a 5x4 matrix in dial mode:Rodrigo wrote:... something like a matrixctrl (10x4) ...
Don't know which two patches you mean but until now appending the dummy message 0 0 0 0 0 0 to each 3-element-group gave the best result.Rodrigo wrote:Aren't both of our patches outputting the same thing anyways?
Users browsing this forum: No registered users and 8 guests