Observing Selected Notes
I want to constantly keep track of the currently selected notes in Live's Clip View, for displaying them on a nslider object. What's the best way to do this?
This is what I came up with, but every time I select a new clip or Cut/Copy/Delete clips, my Undo history gets loaded with "Undo Change". I'm also not sure if having a metro object call a live.path every 30ms is the most CPU efficient solution...
Coming back to this project, still stuck with this...anyone has a clue?!
+1
I would love to figure this out as well. You could use the "notes" property with live.observer to get the note data when the list of notes in a clip changes. However this doesn't help with real-time monitoring the selected notes.
To avoid the "Undo Change" cluttering the undo history try to disable the "Use persistent mapping" option in the live.object and live.observer objects.
+1
I had exactly the same idea - of using a metro - and exactly the same bad feeling about it.
I wonder why it doesn't work the same as selected_track and selected_device. I guess the quantity of notes in a set can be much much larger than the quantity of devices or tracks, but does that matter?
Sometimes when I run into an oddity like this I think, "Are they trying to discourage me from making this kind of device? Cuz it's a bad idea for some reason I haven't thought of?" If that's the case I wish they'd just tell me.