So as a user of S1 i just want a script to set all faders to - infinit db.
unluckily I only have an basic understanding of Java Script. I found this on the internet by Lawrence:
But when using it it always gives me trackList is not defined. I know what that means but i have no glue on how to solve it.
May anyone here can help me with such a script. Any help appreciated.
Best regards.
unluckily I only have an basic understanding of Java Script. I found this on the internet by Lawrence:
Code:
let trackList = context.mainTrackList;
for (i = 0; i < trackList.numTracks; i++)
{
var track = trackList.getTrack(i);
if (track.channel != undefined)
{
// get
Host.GUI.alert
(
"Volume: " + track.channel.volume.toString() + "\n\r" +
"Pan: " + track.channel.pan.toString()
)
// set
// track.channel.volume = 0.56;
// track.channel.pan = 0.5;
}
}
But when using it it always gives me trackList is not defined. I know what that means but i have no glue on how to solve it.
May anyone here can help me with such a script. Any help appreciated.
Best regards.