asked Dec 31 '17 at 18:16 by petera (11)

edited Dec 31 '17 at 18:18

Hello,

I have created a trackbank and I have access to the tracks and scenes and I can change volume, pan, mute etc.

var trackBank = host.createTrackBank(8, 0, 8);
var sceneBank = trackBank.sceneBank();
var tracks = [];

for (var i=0; i< 8; i++) {
   tracks[i] = trackBank.getChannel(i);
   tracks[i].getVolume().set(Math.random());
}

But how do I get access to the devices of this tracks? E.g to change parameter 1 of first device?

Does anybody have a hint or a link to a vaild code snippet? Unfortunately most methods I have found and tested are deprecated.

Best regards, Peter

Resolved!

var trackBank = host.createTrackBank(8, 0, 8);
var sceneBank = trackBank.sceneBank();
var tracks = [];

for (var i=0; i< 8; i++) {
   tracks[i] = trackBank.getChannel(i);
   tracks[i].getVolume().set(Math.random());
   tracks[i].createDeviceBank(8).getDevice(0).createCursorRemoteControlsPage(2).getParameter(0).value().set(Math.random());
}
link

answered Jan 01 at 00:50 by petera (11)

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×18
×16
×2

Asked: Dec 31 '17 at 18:16

Seen: 94 times

Last updated: Jan 01 at 00:50