What's new

DAW script adress volume fader

Scripter

Young KSP Scripter and Composer
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:

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. :)
 
Is there a scripting reference manual that can tell you what `context.mainTrackList;` refers to?
 
Is there a scripting reference manual that can tell you what `context.mainTrackList;` refers to?
The thing is with S1 closed source, so no official documentation and most files existing are wiped out of the internet. You only can find some inofficial files here and there.
The script i posted is from this thread: Old S1 Forum Link

And i found a hello world script, attached below, but sadly thats it. :/
I know that Lukas Ruschitzka knows something about this topic, but not sure if he would like to share his knowledge.
 

Attachments

  • Hello-World-1-master StudioOne Script Example.zip
    3.1 KB · Views: 1
Top Bottom