Obtain list of notes from a selected clip

Post Reply New Topic
RELATED
PRODUCTS

Post

I get how to use `createCursorClip`, supplying a grid size. I can then call `getStep(1,0,0)` to determine if C-2 at position 0 of my clip has a note or not. In theory, i could call this 88x per step, iterating through all the steps, then i would have all the notes.

By the time i do that, it would have been easier to force the user to save, decompress the saved bitwig file, parse the XML, and extract the note data that way.

Is there no better way? I don't get why cursorClip doesn't expose a linked list style way to access the notes in the clip.

Post

I never thought about doing it this way... but you would need to call it 127 times for all notes X # midi channels X number of steps. so it would be a lot!

I think the best way through is to use the observer addStepDataObserver() & addNoteStepObserver()... I think NoteStepObserver is the more modern one...

So basically it provides the ability to directly refresh your midi controller with current data. Its just kind of strange because it decouples any knowledge of a specific clip to the notes inside it. I wish too there was a linked list style way to access the notes in the clip and manipulate them that way but that might also be a can of worms as well.

Lets please discuss this more here and finding good methods for what we want to do.
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

Post Reply

Return to “Controller Scripting”