First time here? Check out the FAQ!
x

Controlling multisample's index from a script?

0 votes
292 views
I'm glad to see others posting about SoundToGlobalController; I have a question maybe similar to Alan Jackson's. I'm using a Script to make a Sequence that controls the pitches in a Multisample KBD, so the signal path is Multisample KBD --> Seq --> Script.

I'd like to see in the VCS which sample the script is playing. So I added a SoundToGlobalController at the end, with two inputs: the Script, and !Index (with value set to ?pitches). This shows up in the VCS as a list of samples in Multisample, but the numeric value seems to be jumping around constantly, around zero; the slider never moves to the sample which is actually getting played.

In case anyone is interested I've uploaded the Kyma Sound here (but not the samples, so I'm not sure if it will actually work) - I can try to upload the samples as well if necessary.

http://www.stephenandrewtaylor.net/kyma/data-to-step-sequencer-stgc.kym

The soundfile is "StepSequencer from Text with progress bar?" Anyway - I'm grateful for any help, thanks as always!
asked Jul 4, 2016 in Capytalk & Smalltalk by stephen-taylor (Adept) (1,620 points)

1 Answer

+1 vote

Since you are using !KeyNumber to select which sample the MultiSample is using, your SoundToGlobalController must be to the left of the StepSequencer so it can receive the KeyNumber changes. The StepSequencer acts as an enclosing "environment" that binds actual values to the EventValues.

Here is an example.

answered Jul 4, 2016 by ssc (Savant) (126,620 points)
Wow - thanks a million! This helps me to understand the program flow, as well.
...