Contents



Conversion Modules

Next

These modules provide 2-way conversions between Float representations of voltage levels and decibels, frequency in Hz, and time (for modules such as the SynthEdit ADSR and DH EnvSeg). These modules are intended only for use in presenting meaningful output and feedback via the GUI. They are not designed to be used as signal processors.

DH_dBToVolts2 implements the standard conversion of a ratio of 2 amplitudes, measured in volts, to a decibel scale, using the formulas

dB = 20 log10( V / Vref ), and its inverse, 

V = Vref * 10 ^ (dB / 20)

where V is the voltage to be measured using Vref as the reference voltage. Vref defaults to +10 volts, which is equivalent to 0 dBFS in SynthEdit.
 

DH_HzToVolts2 converts between frequency in Hz and the corresponding SE voltage levels using either the 1 volt per octave scale, with +5 volts = 440 Hz, or the 1 volt per kHz scale, as selected by the Freq Scale input. It implements the conversion equation

f = 440 * 2 ^ ( V - 5 ), and its inverse,

V = ( log( f ) - log( 440 ) ) / log( 2 ) + 5

 

DH_msToVolts2 converts between voltage levels and time in milliseconds, using the time cent scale that SynthEdit uses for envelope generator times. It implements the formula

ms = 1000 * 2 ^ (V - 6.666666) , and its inverse,

V = log( ms / 1000 ) / log( 2 ) + 6.66666
 

top

Next