A MIDI Library for .NET

OutputDevice.SendNoteOn Method

Sends a Note On message to this MIDI output device.

public void SendNoteOn(
   Channel channel,
   Pitch pitch,
   int velocity
);

Parameters

channel
The channel.
pitch
The pitch.
velocity
The velocity 0..127.

Exceptions

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

See Also

OutputDevice Class | Midi Namespace