ricardomatias / ableton-live

A library for communicating with Live via WebSockets, works both in NodeJS and in the Browser.
https://ricardomatias.net/ableton-live/
79 stars 10 forks source link

Expose Track.getClipSlots() #10

Closed giohappy closed 2 years ago

giohappy commented 2 years ago

I find myself doing track.children("clip_slots") to obtain the full list of clip slots, including the empty ones. What about exposing a Track.getClipSlots() method? Maybe in the wip branch, where I see you're adding new useful things.

ricardomatias commented 2 years ago

Do you have in mind additional/different behavior to track.children("clip_slots")?

giohappy commented 2 years ago

On second thought, I suppose methods are only used to extract/transform properties.In that case I think it's just fine to use track.children("clip_slots") and you can close this.