Selecting notes in a clip.

Post Reply New Topic
RELATED
PRODUCTS

Post

I'm trying to select notes in a selected clip.
To test this command I have a note in my selected clip at the lowest note (0 or C-2), at the start of the clip.

in my init=

Code: Select all

selectedClip=host.createCursorClip(127,127);
So using this, I should be able to select a note at position 0, note 0 of the selected clip.

Code: Select all

selectedClip.selectStepContents(0,0,true);
Doesn't work for me.
Has anyone attempted to select notes in a clip?

Post

Since I haven't used the function it might be buggy ;-)

I suggest to make a test over the full range to see if it works at all or there might be an offset:

for (i = 0; i < 127; i++)
for (j = 0; j < 127; j++)
selectedClip.selectStepContents(i,j,false);

Create an issue here https://github.com/teotigraphix/Framework4Bitwig/issues if you have more info. There is also a bug in the documentation: "{}".

Post

Thankyou for your help Moss!
So I have tried the following code to try and select the notes.

Code: Select all

for (i = 0; i < 127; i++) {
			for (x = 0; x < 127; x++) {
		selectedClip.selectStepContents(i,x,false);
		}
	}
Nothing is selected. So I guess this is a bug. I'll report to Bitwig and create an issue.

Post Reply

Return to “Controller Scripting”