Welcome to SynthEdit Q&A, where you can ask questions and receive answers from other members of the community.

How to limit or rearrange sub-control lists

+2 votes
asked Mar 9, 2016 by Jef (5,650 points)
I want to display a list of choices to the end-user, but restrict that list to a sub-set of the full list.
For example present the user with a choice of "Square" or "Saw" waveforms without the other options showing.
commented Jun 11, 2020 by ronrogers (100 points)
One such advantage is access control. You can restrict who has access to data on your computer, or on the network.The specific way to hook up a List-Entry sub-control is to connect it's "Choice" and "Item List" pins to a Patchmemory-List-3 module.Custom essay writing service is giving the dissertation draft writing guidelines for the students. Visit http://essayguardian.com/.

1 Answer

0 votes
answered Mar 9, 2016 by Jef (5,650 points)
edited Mar 9, 2016 by Jef
The standard way to hook up a List-Entry sub-control is to connect it's "Choice" and "Item List" pins to a Patchmemory-List-3 module.

As an experiment: hook up a Text-Entry-3 sub-control to the Patchmemory-List-3 "Item List" and "Choice"  pins.  Hook up the Patchmemory "Value Out" pin to an Oscillator "Waveform pin". You should see the list of "items" (waveshapes) appear in the drop-down list.

To see what the raw item-list looks like, hook up a Text-Entry3 sub-control to the Patchmemory "Item List" pin. You should see the items laid out with commas (e.g. "Sine, Saw, Ramp, Triangle, Pulse, White Noise, Pink Noise").

SynthEdit numbers those item from zero. e.g. "Ramp" is item number 2.  Since in this example the list is ordered neatly from 0 to 6, there's no need to specify it explicitly, but if we want to rearrange the list we need to number it like so: "Sine=0, Saw=1, Ramp=2, Triangle=3, Pulse=4, White Noise=5, Pink Noise=6".

We can now use this information to customize the List-Entry:
* disconnect the List-Entry "Item List" pin.
* click the List-Entry to see it's settings on the "properties pane" at right.
* copy and paste the list-items ("Sine=0, Saw=1, Ramp" etc ) into it's "List Items" pin default setting.

Check the control, it should now work correctly as before, but now you can edit this list to suit. For example to show the user only "Saw" and "Pulse" change the item-list to "Saw=1,Pulse=4". The explicit numbering allows SynthEdit to understand that the list has missing items now.

To change the list order, try "Pulse=4, Saw=1".
To rename the items, try "Square=4,Sawtooth=1".