A MIDI Library for .NET

OutputDevice.SendPitchBend Method

Sends a Pitch Bend message to this MIDI output device.

public void SendPitchBend(
   Channel channel,
   int value
);

Parameters

channel
The channel.
value
The pitch bend value, 0..16383, 8192 is centered.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException channel or value is out-of-range.
InvalidOperationException The device is not open.
DeviceException The message cannot be sent.

See Also

OutputDevice Class | Midi Namespace