Is transport.setClipLauncherPostRecordingTimeOffset available in javaScript controller scripts?

Post Reply New Topic
RELATED
PRODUCTS

Post

I have noticed DrivenByMoss can set the post record length via setClipLauncherPostRecordingTimeOffset but that I can't seem to invoke this in my JavaScript controller script no matter what API level I set it to.

If this exists at all perhaps it's undocumented? The purpose is to do a fixed length 8 bar recording and automatically stop or automatically begin playback after the 8 bar clip recording.

Something like this

Code: Select all


		transport.setClipLauncherPostRecordingAction("play_recorded" );
                transport.setClipLauncherPostRecordingTimeOffset(beats);   
		showPopupNotification("Looper Fixed Length");
		


Post

Turns out yes but the syntax is via a get* method which you mark interested.

Code: Select all

transport.getClipLauncherPostRecordingTimeOffset().markInterested();
offset = transport.getClipLauncherPostRecordingTimeOffset();
/// later on:
offset.setRaw(beats); // 16 beats => 4 bar recordings.
	


Post Reply

Return to “Controller Scripting”