First time here? Check out the FAQ!

How to replicate MultiPen Replicator into double digits?

0 votes

Hi all,

I'm building a sound for 12 pens to be controlled from Kyma Control.

I built my sound and used the MultiPen Replicator. 

For some reason once the replication number is 12 the VCS doesn't populate with the widgets I'm expecting to see; up to 9 works perfectly. I played around with the parameter fields in the replicator, mostly the prefix, but haven't been able to figure it out yet. Here's the VCS; shouldn't there be 'Pen1Down' through 'Pen9Down' button widgets? 

Thanks for any thoughts or suggestions!

asked Jan 1, 2018 in Capytalk & Smalltalk by will-klingenmeier (Adept) (1,270 points)

1 Answer

+1 vote
Best answer

In the Replicator Prefix field, you could use:

{1 to: 16 collect: [:i | 'Pen' & i]}

answered Jan 4, 2018 by ssc (Savant) (119,300 points)
selected Jan 4, 2018 by will-klingenmeier
That does it! Thanks! Just for my own knowledge and future use, is there a reason for having to go about it this way? I would expect 'Pen1' in the Replicator Prefix field and IncrementPrefix checked to produce the same result.
You're right, it does something quite similar but puts leading zeros on the single digit suffixes (PenDown01, PenDown02, etc) and those are not in the global map. This other solution creates a collection of prefixes, one for each copy, and the single digit prefixes don't have a leading zero.
That makes sense. Thank you for your help!