Help functions


Purpose:
Provides assistance for the basic envelope parameters calculations

Function: TimeCents
Declaration: TCENT directmidi::TimeCents(double nTime)
Purpose:  Calculates time cents  
Parameters:    nTime [in]: Time in seconds                     

Returns:  

Time cents

A 32-bit long integer containing the time cents

Throws: none

Function: Pitch cents
Declaration: PCENT directmidi::PitchCents(double nFrequency)
Purpose:  Calculates pitch cents  
Parameters:    nFrequency [in]: Linear frequency                     

Returns:  

Pitch cents

A 32-bit long integer containing the pitch cents

Throws: none

Function: Gain cents
Declaration: GCENT directmidi::GainCents(double nVoltage,double nRefVoltage)
Purpose:  Calculates centibels  
Parameters:    nVoltage [in]: Voltage
                     nRefVoltage [in]: Reference voltage                

Returns:  

Gain cents

A 32-bit long integer containing the gain cents

Throws: none

Function: PercentUnits
Declaration: PCENT directmidi::PercentUnits(double nPercent)
Purpose:  Calculates 0.1% units  
Parameters:    nPercent [in]: Percent, value between 0 and 100
                    

Returns:  

Percent units

A 32-bit long integer containing the percent units

Throws: none

Top    Index