I have lots of it working. I'm now trying to get it to record and play various clips in the clip launcher.
In the launchpad scripts I think this might be the thing I need to "borrow":
Code: Select all
track = 1;
scene = 1;
trackBank = host.createTrackBankSection(8, 4, 99); // 8 tracks, 4 sends, 99 scenes.
trackBank.getTrack(track).getClipLauncher().record(scene);
Code: Select all
cursorTrack = host.createCursorTrack(3, 8);
cursorTrack.getClipLauncher().record(1);
Above is just trying to start the first track and first scene. Which thing has focus is a second step after I figure out how to get a clip to actually start recording ANYWHERE on the clip launcher grid.
Above code quietly does nothing. if this is NOT how I need to get a clip recording, how do I do it?
Note that my project is ready to record and if I click the clip record button on the screen, clips record. I tried zero based track and scene numbering and 1 based, and tried several other values (0,1,2,3). No error comes back from the above. But nothing happens.
EDIT: If I record clips manually (as a user, not from the script) before calling record() then it starts recording (replacing the previous clip). Why that is, I could not tell.
[ I am using bitwig 4.0.1, and I note that the scripting guide PDF has been unceremoniously dropped without updating it, so anyone looking for the scripting GUIDE PDF better grab a pdf copy. ]
