Finding the primary instrument

Post Reply New Topic
RELATED
PRODUCTS

Post

How can I navigate/find to the primary instrument of a track without cursorTrack:


Doesn't work:

tracks = host.createTrackBank(100,7,7);
tracks.getChannel(2).getPrimaryInstrument();

Does work:

cursorTrack = host.createCursorTrack(6, 2);
cursorTrack.getPrimaryInstrument();

Post

with deviceBank

Code: Select all

trackBank = host.createTrackBank(100,7,7);
        deviceBank = trackBank.getChannel(0).createDeviceBank(8);
        deviceBank.getDevice(1);
or named cursorDevice

Code: Select all

trackBank = host.createTrackBank(100,7,7);
        track = trackBank.getChannel(0);
        cursorDevice=track.createCursorDevice("named");
        deviceBank=track.createDeviceBank(100);
        device=deviceBank.getDevice(1);
        cursorDevice.selectDevice(device);

Post Reply

Return to “Controller Scripting”