Changing a clip's color when its notes changes

nnneuromodulator's icon

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?

nnneuromodulator's icon

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?

Tj Shredder's icon

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