![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: Scripts - Generating Hotparameters |
BobTheDog Member |
![]() ![]() ![]() Hi Guys, I have tried a few things with no luck and have started banging my head against the desk. Its it possible to generate hotparameters in a script and pass them as parameters? Basically I want to pass an :amp parameter but I want to generate a hotparameter for each one with a different name, say !Amp01, !Amp02 etc. Any ideas? Andy IP: Logged |
SSC Administrator |
![]() ![]() ![]() You could use the Smalltalk collect: message, for example: 1 to: 10 collect: [:i | !Amp suffix2: i] This could be passed as an argument in a Script. Or if you would like to paste it directly into an Array field (for example in the Amplitudes field of a SyntheticSpectrumFromArray), you can use it within curly braces so it is evaluated first and then interpreted as an array. {1 to: 10 collect: [:i | !Amp suffix2: i]} You can also select the expression and use Ctrl+Y to evaluate it and then use the generated hot values directly. Or use the shortcut: !Amp01 copies: 10 IP: Logged |
BobTheDog Member |
![]() ![]() ![]() Hi, Thanks for the info. I had been trying to use a similar method but I keep getting the following error: "Error: The messafe #suffix2:, sent to `Amp, an instance of class ConcreteEvent, was not understood." Here is the script changed to use the array idea: | freqArray ampArray dspCount curDsp curAmp | freqArray := #(0.25 0.5 0.0 1.5 2.0 3.0 4.0 5.0 8.0 16.0). freqArray do: IP: Logged |
BobTheDog Member |
![]() ![]() ![]() Hi Guys, Managed to get it working like this: | freqArray ampArray dspCount curDsp curAmp hotVal | freqArray := #(0.25 0.5 0.0 1.5 2.0 3.0 4.0 5.0 8.0 16.0). freqArray do:
Andy IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() ![]() |
This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.