| Contents |
|
Next | ||||||||||
Text Output and Formatting (cont'd) Selecting Text Strings from an Array or List
Suppose you have a set of .wav files containing waveforms,
and you want to be able to switch from file to file based on some numeric
value or sequence. You could do this easily with a DH_TextArray. This module
stores a list of text strings. Each string is given an index, starting at 0.
You can load the strings from a text file. Then, the value of the Index
input will select which string is output at the Text Out.
wave_a.wav; Enter the name of the text file into the DH_TextArray's File Name, and make sure that the Array Size is set at least as high as the number of .wav files in the list. Valid index values for the DH_TextArray range from 0 to 1 less than the number of .wav files in the list. Scale your numeric input, if necessary, so that it fits this range. Connect your scaled input to the DH_TextArray's Index input, and connect the DH_TextArray's Text Out to your wave file player through a Patch Mem - Text.
|
Next |