A MIDI Library for .NET

OutputDevice.SendPercussion Method

Sends a Note On message to Channel10 of this MIDI output device.

public void SendPercussion(
   Percussion percussion,
   int velocity
);

Parameters

percussion
The percussion.
velocity
The velocity 0..127.

Remarks

This is simply shorthand for a Note On message on Channel10 with a percussion-specific note, so there is no corresponding message to receive from an input device.

Exceptions

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

See Also

OutputDevice Class | Midi Namespace