First time here? Check out the FAQ!

Why don't !EventVariables in an !EventVariable array show up on the VCS?

0 votes

I'm trying to use an !EventVariableArray and I can't get it to work. I'm using the elements of the array in the Gate parameter of an ADSR Sound.

like so:

This is a potted example just to illustrate the issue I'm having. I was iterating over the array and creating an array of !evaGates, but I've removed that loop to simplify things.

I've created an EventVariable array and assigned an EventVariable ("!evaGate") to one of its elements. But "!evaGate" never appears on the VCS.


Now to embarass myself in public :)

Next I tried to set that array postion to the value of "1":

Expecting that the Gate would always be on... but it isn't. It's only on when I press the !Gate button in the VCS. But of course that's the case. CapyTalk is event driven. In this case the event that would trigger the evaluation of the final expression is when !Gate changes.

But my original question remains. How do you fill up an EventVariable array with EventVariables that show up in the VCS? What am I doing wrong?

Here's my example sound.

asked Nov 10 in Capytalk & Smalltalk by alan-jackson (Master) (6,270 points)
edited Nov 10 by alan-jackson

1 Answer

+1 vote
Best answer
You've got the right idea — just use commas and parenthesize the assignment expressions and it should work as expected.
answered Nov 10 by ssc (Savant) (81,800 points)
selected Nov 11 by alan-jackson