| Contents |
|
Next | ||||
The fact that GUI pins and connections are bidirectional adds a new capability to SynthEdit projects: the ability to output dynamic text. Using this new capability to full advantage was one of my main motivations for creating the DH_Sub-ControlPak. Its modules enable you to:
Detailed descriptions of the modules are included in the DH_Sub-ControlPak User's Guide, and won't be covered here. Instead, we'll focus on simple examples that demonstrate how various text formatting and output tasks can be accomplished.
All format specifications start with a percent sign (%), and end with the letter f. A format specification of the following form will do what you need in most cases: %[number].[number]f
So, %6.2f will display a numeric value with 2 decimal places in a field at least 6 characters wide (right-justified, padded with spaces). Except for the format specifications, the characters in the Format string are just copied as they are to Text Out. If I use a Format string of "Center Freq. = %5.0f Hz" and the value of the Var input is 500, the Text Out will be "Center Freq. = 500 Hz".
To the right are the structure and panel views of a cutoff knob that displays a filter cutoff frequency in Hz. The simple Format string has been entered directly into the DH_Format's Properties:
Here's the structure inside the Knob container:
|
Next |