DAC2_SetPitchNumberf


Sets the number to display for the pitch display on the DAC-2.

BOOL WINAPI DAC2_SetPitchNumberf(
    int nDeckID,

    float fValue
);

 

Parameters

nDeckID

The ID that specifies either DeckA – 0 or DeckB - 1.

fNumber

The number to display for the pitch display.

 

-19.9 to 19.9 are valid values

Return value
If successful, then TRUE is returned, else FALSE is returned. Use DAC2_ErrorGetCode to get the error code.

Error codes

DAC2_ERROR_INIT

 The DAC-2 has not been initialized.

Remarks
There is no positive display when the number is positive. However, when the number is negative you will see a minus display beside the number.

Example
Set the pitch number to –14.7.

//Set pitch number to –14.7 for DeckA

DAC2_SetPitchNumberf(0, -14.7);

//Set pitch number to –14.7 for DeckB

DAC2_SetPitchNumberf(1, -14.7);

See also
 DAC2_Init