Is it possible to generate a StepSequencer's Generated Index from a script? I'm looking at Jon Bellona's TSV tutorial, which has the following suggestion:
One way to view the bound EventValues in the VCS is to place the EventValue we are controlling (e.g. !Pan) in the Value field of a SoundToGlobalController. The SoundToGlobalController generatedEvent parameter could be something like !PanMonitor. That would cause !PanMonitor to display the data-driven changes to !Pan in the VCS.
I've tried doing this in Jon's patch but I can't get it to work (I put the SoundToGlobalController at the end, right after the MidiVoice - maybe that's the wrong place).
In my own project, I'm using a script to read through a text file (a big DNA string), using "Make a StepSequencer from a Text file" by ssc (this is a little different because Jon's project doesn't use StepSequencer).
I'd like the VCS to show how far we are through the text file. Right now I'm doing that with the GeneratedIndex field of StepSequencer; but I have to manually set the maximum value of the slider (in this case, 5000). But if I use a different text file, the length will be different. Is there any way to set the maximum value of a fader in the VCS from a script? Or would SoundToGlobalController be the solution?
Thanks for any ideas!