DAC2_SetPitchNumber


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

BOOL WINAPI DAC2_SetPitchNumber(
    int nDeckID,

    int nValue
);

 

Parameters

nDeckID

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

nNumber

The number to display for the pitch display.

 

-199 to 199 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 16.

//Set pitch number to 16 for DeckA

DAC2_SetPitchNumber(0, 16);

//Set pitch number to 16 for DeckB

DAC2_SetPitchNumber(1, 16);

See also
 DAC2_Init