Contents



Going Beyond the Basics (cont'd)

Next
 

Text Output and Formatting (cont'd)

Creating Custom Lists

In most cases, SynthEdit allows you to name list items however you want to, by renaming the pins on the modules involved. This is not always possible, though, and there are times when it's useful just to be able to create a list of text items yourself.

We'll use Soundfont Oscillator patches as an example here. Say we'd like to substitute our own patch names for the program names in a .sf2 file that we want to use.

DH_TextList is a module that's similar to the DH_TextArray, in that it stores a list of text strings, and can be loaded from a text file. Instead of using a numerical index to select which string to use, DH_TextList uses SynthEdit's list selection mechanism.

All we need to do to show our own names for the patches is to create a text file listing the patch names one per line, each followed by a semicolon(;)

00 - MezzoMorphic;
01 - Ice Crystal Bells;
02 - String Band;
03 - Early Haze Pad;


Then, enter the text file's name into the DH_TextList's File Name, and set the List Size to at least the number of patches in the list.

The DH_TextList gets connected between the list source, in this case the Soundfont Oscillator, through a Patch Mem - List2, and the list selector, such as the Dropdown List in the diagram below.

An item from the "real" (unseen) list will be selected by position when an item is selected from our custom list.

top

Next