dataEntryCoarse method

void dataEntryCoarse(
  1. int value
)

Implementation

void dataEntryCoarse(int value)
{
    switch (_rpn)
    {
        case 0:
            _pitchBendRange = castToShort((_pitchBendRange & 0x7F) | (value << 7));
            break;

        case 1:
            _fineTune = castToShort((_fineTune & 0x7F) | (value << 7));
            break;

        case 2:
            _coarseTune = castToShort(value - 64);
            break;
    }
}