Evaluation of choice control

I am currently experimenting with the programming of Nyquist plugins and would like to create different waveforms (sine, square, triangle etc.) via choice control. This leads to a strange reaction.

Here is my script:

;control waveform “Waveform” choice “Sine,Rectangle,Saw,Triangle” 0

(when (= waveform 0) (hzosc 440.0))
(when (= waveform 1) (osc-pulse 440 0.5))
(when (= waveform 2) (osc-tri 440))
(when (= waveform 3) (osc-saw 440))

Strange behavior:

  1. When starting the Nyquist-shell (without executing anything) an empty track is generated.

  2. When executing the script above, nothing is created, but the previously created empty track is removed.

Any ideas, what can be wrong???

This topic was automatically closed after 30 days. New replies are no longer allowed.