C# Class Midi.PercussionMessage

Percussion message.
A percussion message is simply shorthand for sending a Note On message to Channel10 with a percussion-specific note. This message can be sent to an OutputDevice but will be received by an InputDevice as a NoteOn message.
Inheritance: DeviceMessage
Show file Open project: jstnryan/midi-dot-net

Public Methods

Method Description
MakeTimeShiftedCopy ( float delta ) : Message

Returns a copy of this message, shifted in time by the specified amount.

PercussionMessage ( Midi.DeviceBase device, Percussion percussion, int velocity, float time ) : System

Constructs a Percussion message.

SendNow ( ) : void

Sends this message immediately.

Method Details

MakeTimeShiftedCopy() public method

Returns a copy of this message, shifted in time by the specified amount.
public MakeTimeShiftedCopy ( float delta ) : Message
delta float
return Message

PercussionMessage() public method

Constructs a Percussion message.
public PercussionMessage ( Midi.DeviceBase device, Percussion percussion, int velocity, float time ) : System
device Midi.DeviceBase The device associated with this message.
percussion Percussion Percussion.
velocity int Velocity, 0..127.
time float The timestamp for this message.
return System

SendNow() public method

Sends this message immediately.
public SendNow ( ) : void
return void