| Contents |
|
Next | |||||||
Text Output and Formatting (cont'd) Combining Text Strings from Different Sources DH_TextAppend is a simple module that takes any number of text strings as input, and puts them together into a single string.
Consider a modulation routing situation where any of several modulation sources can be connected to any of several destinations. We also want to specify the degree to which each source will affect each destination.
Our text display combines 3 text strings: a selection from the list of sources, a formatted slider value, and a selection from the list of destinations.
The slider output can be converted to text by a DH_Format, which lets us control the number of decimal places displayed, and also provides a convenient place to add spaces to separate the value from the source and destination strings. The format string I used is " - %.2f - ". We do run into a slight complication connecting the DH_TextLists' Text I/O pins to the DH_TextAppend, because they're all on the left side, and SynthEdit won't allow the connections. That's easily solved with a couple of DH_TextRedirectors, so our connections to the DH_TextAppend look like this:
|
Next |