First time here? Check out the FAQ!
x

Problems with encapsulating a script created sound

0 votes
330 views

I'm trying to encapsulate a wavefolder, that I'm creating with a script. I want to use the script so I can choose how many folding stages I have, each time I use it. It works fine as long as I use an oscillator as input. Now I want to encapsulate it, but when I change the input from an oscillator to a variable, the script doesn't seem to work, at prompts me to put in values for all my ?variables, that I'm taking care of in my script, not just the ones I want to use as parameters in my encapsulated sound. Encapsulation works fine when I use an oscillator as my input. It seems that having to variables (prototypes) is confusing the encapsulation. As one variable should be used by the script to chain all my folding stages, and the other variable should be used for the encapsulation to give me an input for the encapsulated sound. I've attaced my sound that I'd like to encapsulate.

Wavefolder for encapsulation

asked May 18, 2022 in Using Kyma by anders-skibsted (Adept) (1,320 points)

1 Answer

+1 vote
 
Best answer

This seems like a good candidate for the CascadingReplicator. Here's an example of an encapsulated CascadingReplicator with the number of recursions, waveshaping wavetable, input/drive levels and the Sound input as new arguments. Also includes a non-encapsulated version for people who like to see how it works.

Here's a simpler example, including an Oscillator with AR envelope as an input to test the wavefolding.

answered May 21, 2022 by ssc (Savant) (128,160 points)
selected May 22, 2022 by anders-skibsted
Thank you, excactly what I wanted. I'll be cascading a lot of replication from now on!
...