First time here? Check out the FAQ!

Can I script the 'Id' field of a Prefixer?

0 votes
I had previously made a design with a complex VCS which relied on Prefixer to replicate its many controls.

I want to rework it to use a Replicator, so I don't have to keep editing all 6 instances of the Sound when I make a modification to the design. But I used letters in the ID field of the Prefixer for suffixes, such as _A and _B and the Replicator enumerates using integers. So I thought I could try something like

{ ?VoiceNumber-1 of: #( '_A' '_B' '_C') } to slot in the correct letter that the VCS wants to see for each Voice.

But it seems that the Id field is a special one, it doesn't evaluate the variable, but instead labels the faders with the script code.

Is there a better way to do it?
asked Dec 9, 2016 in Capytalk & Smalltalk by cristian-vogel (Master) (8,370 points)

1 Answer

+1 vote
Best answer

You could use a Replicator (no Prefixer needed).  Uncheck IncrementPrefix and set the Suffix field to:

'_A' '_B' '_C' '_D' 


answered Dec 10, 2016 by ssc (Savant) (121,880 points)
selected Dec 14, 2016 by cristian-vogel
Ah ok, so I can assign each voice manually with a different label.  That's very handy to know.