| Contents |
|
Next |
It will be much easier to manage your control information with DH_ControlOverlay if you plan for this as you are wiring your synth or effect. This way, you can set up connections from your controls to a central location where you can label and number them as you work. This will help you to keep things organized, especially on a complex project with many controls. Another consideration is that all of the control information coming into the DH_ControlOverlay module must be in the form of voltages, so some conversions will have to be set up for list controls and some of the sub-controls. Build a Central Control Point as You Go
Do this for every control when you add it. Then, when the time comes to add the DH_ControlOverlay module, all of your control inputs will be right there and conveniently labeled.
Although DH_ControlOverlay supports both Numeric and List controls, it only accepts voltages as value inputs. By the end of this tutorial section, you will see that this is not really a limitation. The older slider and knobs can be connected directly. You may want to scale the values for display purposes using math or conversion modules. The voltages input into the DH_ControlOverlay module need not be in the 0 to 10 volt range. If you want to display a filter cutoff frequency of 1200 Hz, or a level of -40 dB, that's fine. The Float type values from the newer sub-controls can be converted to voltage using SynthEdit's Patch Mem - Float and Float to Volts modules. Again scaling can be applied as needed or appropriate.
The DH_IndexExtractor module can be used to get the index of
the selected items from the older List Entry type controls, while the
DH_ListExtractor performs the same function for the new list sub-controls.
Continuous sub-controls, such as animated bitmaps, can be used to select from lists by scaling the values to the size of the list, and quantizing them to integer values.
To use the bitmap to select from a list, we need integers ranging from 0 to one less than the number of list items. For the standard SynthEdit oscillator's waveforms, that's 0 to 6.
We
can adjust the range to what we need by going into the Patch Mem - Float's
Properties and setting the Max Value to 6.
Now, when we drag the waveform image, it changes the oscillator's selected waveform. There are 2 problems, however:
What we can do is to take matters into our own hands and do the quantization ourselves, so that we know that it will be done consistently. The SynthEdit Quantizer module will take care of the Float to Volts output that will be going to our DH_ControlOverlay connection, and its default step size of 1 is exactly what we need. To quantize the Float values going into the DH_ListExtractor's Index pin, a DH_FloatQuantizer does the trick. (It will work in either direction, by the way.)
|
Next |