[open] Counting variable
Dear all,
based on a very simple script, we use a loop to generate a sound ("synth") with random variation between two defined frequencies (220 and 440 Hz). Via "feedback", we would like to print the number of each of the two sounds, so that the screen permanently shows the number of high/low tones which had been generated so far. Unfortunately, the standard variable "count__synth220" counts ALL tones, although synth220 is only executed in about 50%. Is there another way to count such Events (like "n=n+1")?
Thanks!
Dan
Comments
Hi Dan,
You have the right idea. Before you enter the
sequence, in which you select the sounds, you have to initialize two counters, for each sound one. You can do it from within aninline_script.Later, in the
sequenceof sound selection, you can place anotherinline_scriptafter sound selection and increment the counter by one, depending on which sound was chosen.Does this do what you want?
Eduard