Observing when clips are moved/added/removed
Is there a way of observing when Live's clips are added, removed or moved with the API?
At the moment the only thing I can think to do is to check every clip_slot of every track regularly which is very slow.
Thanks!
Unfortunately this is currently the only way.
I agree that it would be of great benefit to be able to have one observer which responds when a clip_slot clip is added or removed. Giving you the information of which clip slot has been changed, and possibly if the clip was added or removed.
The current method is indeed very slow, and quite a processing hog. Especially if you monitor all tracks and scenes, creating a new track or scene is significantly delayed while the new observers are set up.
The other option being to focus on a small window maybe observing the clips within an 8 x 8 window to create a kind of clip launcher. However, unfortunately moving this window across tracks and scenes causes a significant freeze and lag while the 64 observers are updated.
Would this be possible to add to the API?
One solution I use for newly recorded clips is to monitor the playing clip index of the desired tracks and do a quick check of the clip slot has clip status when the playing clip slot index changes.
Cool thanks for your reply, completely matches what i'm seeing. Here's hoping the API gets extended!