Forums > Max For Live

Changing a clip's color when its notes changes

April 24, 2011 | 6:20 pm

So it would be really useful to me to have my MIDI clips switch color when their contents change. And I can see a brute force way to do this, clearly, with an live.observer for each clip observing "notes" triggering an associated "color" message into an live.object. But I have 320 such clips I want to monitor, which seems kind of gross.

I’m wondering if there is a way via javascript, maybe, to monitor all clips and get the address of any clip whose notelist changes.

Anyone?


April 25, 2011 | 8:33 am

Ok, so I built this the brute force way, and I realize now that I have to use deferlow objects to allow the bangs from the observer to trigger the color change message. Is that problematic in any way? That is, could this potentially cause problems I’m not aware of, this deferlow trick?


April 26, 2011 | 6:09 am

Its fine, as displaying information is a low priority anyway. What you call brute force, is the way to go. I would call a js a brute force, as you would have to implement what live.observer does all by yourself…

Stefan


Viewing 3 posts - 1 through 3 (of 3 total)