LED messages leaking to other LED

a place to share your patches and get help with the Max/MSP Dev. Kit.
basvlk
Posts: 10
Joined: Sun Jan 30, 2011 6:27 pm

Re: LED messages leaking to other LED

Postby basvlk » Mon Dec 31, 2012 8:54 am

Good thread! I'm revising/optimising my sofstep code, I like the coll method. A simplification suggestion:

why not add the dummy zeroes in the coll? Every LED setting ends with a CC 42 message, so you can add the zeroes at the end. You can then get rid of the [zl.group 6] and the [append] - and just keep the [iter 2]

I'm quite new to programming - is this a useful simplification?

the simplified patcher:
<pre><code>
----------begin_max5_patcher----------
1191.3oc4YsraaqCDcs8WgfvcoafHodX0cEc8E2KPW1VXPaQ6xV8vPhNOZQ+
2KeIakTS4wFxJIH.AIgi3nYNCOblgT+Z5D+kU2yZ78du2m8lL4WSmLQKRIXh
c7D+B58qxoM5o4uppnfUJ7mYdlfcuPKmleG8gFul63hUey6AVdd0cdUqW6sl
W2re547R1ppckZcvVgqq2rTMN3l.qjsT4KgWtYQMakv3cgQQxG6gCTyxKwLH
8l.uuZ0gmo8ipke+coslacUonjVvzO4C0bZd6SJ2UvKyYBMnPGDVsSzJMnyK
og+S8KAIstR5umNU8qY.CZK2IDUk9tQGQiGTfEis+9XfKhbFXnUpQj3gsLi8
7WRK23680K.KErlF5F1QH.4cV1OMVmaVHiMCbfUzYtRh6MJ7nUR7d11eEbtr
.SI6NoO+WwkBdFWZAuu3+oO8w+6e89+pZgG5K98DgPFF.IQ+GDJsuXTXvKM1
dOAh0U0ETA.nGZftY2tKnSRNSnm.mdD3ldvUouFxsN+CB1NmPaTwt0Io2XS7
qnsNmL+HFqSZjDb57iD7ya9wSmq+LR1SPuvAicgAFXBddAiz.KY0s9fzC3E6
J5ZK4r2KJ3zKfl+Ph6CyX.aC2RqkxEr5ErR5xbV2zwGMRIiSMrcacG7vm4tV
UFsYWilBNjYaMsQ.XSgI01bReo1voul5JXfHcsaz.Q5vu0IcapYrROPYtl24
.ENYbQuAYb1Vwfw3BdSv3NY4v1XFjxgnvm4xgGuM8el6wkKRdX.coaZOOLsW
XFLH6cN20Z0B8fFW1VyK6qBVXTmyrQB6Kjjb8NwFdHOwlhGbZV.1jf.mzaue
CBjGmDn8TWolk4AJAfopRLp2a230+karpJOG.CIVyPhRuIxMCIdPXHgWRZhY
6SWXmlBVKxnBpMhXCIpGXu6RT5Lqn1o8Y8D2OU4S9A6gNNpRxsz7cVKGJCHA
lkhIsKDGUcrS0QPTm3TcLD0CcpNAh5QNUODh5wNUOBh5INUOFh5ycpdBD0Sc
p9bHp21Z1QzOEh9pKj02M2ACBC95Foc7ZP.Yv9xrlteEfXw9lSQ59s.hL6e3
50d5q.KwBjefYlR2VAMXVowc.QZG7fYmNmb+H1gLX1YYNu7GtMT3YZH6+Jsn
ImdC8VV1BYkFY0oETgnlK6l27su5lgmIO7jtnDxpdmhk55C5ug0S9jY5ReJ4
OtBZS0t5UsUZZuvZuCU+xXMBdIUvkDlCS5wy4a7rLVY298x3MpiOocxi2rGT
2IFf2nZeejbGPQmvQze.3Nwil2DAvaHil2fGB2ofmssRdpJ6tIr7TSpFDQla
+CmtezA6LX.Pc56SB.7HR1Bf3O3wyePP7mwi9SvPRVEdQLtzjNDN0fq.eCj+
SBdYEOeBI37hmjvvqX7DCY+Rz3kODR3DOh9CjZ6pOjxX4OoCe8BKAajpW.gu
o6fACGAVelPL2STT79QWADDAoelHz30PCZ3oDiIi.TFHR74A.qOih0WfbX3g
QWCDfuBHvVCXjPP7U.A17JiCBHwWicAoW51.yQboa2dKqtw5DZe2uf98p58W
Jm56JZFp8A+Z1s714Oep5s86o+AfJGpC0
-----------end_max5_patcher-----------
</code></pre>


-------------
the coll would look like this:
1, 40 0;
2, 40 1;
3, 40 2;
4, 40 3;
5, 40 4;
6, 40 5;
7, 40 6;
8, 40 7;
9, 40 8;
10, 40 9;
all, 40 127;
green, 41 0;
red, 41 1;
yellow, 41 2;
off, 42 0 0 0 0 0 0 0 0 0 0 0 0 0 ;
on, 42 1 0 0 0 0 0 0 0 0 0 0 0 0 ;
slow, 42 2 0 0 0 0 0 0 0 0 0 0 0 0 ;
fast, 42 3 0 0 0 0 0 0 0 0 0 0 0 0 ;
blink, 42 4 0 0 0 0 0 0 0 0 0 0 0 0 ;

Return to “SoftStep Max/MSP Dev Kit forum”

Who is online

Users browsing this forum: No registered users and 1 guest