Click or drag to resize
SimpleMidiMessage Structure
Represents a simple MIDI message and a timestamp.

Namespace: MidiGremlin.Internal
Assembly: MidiGremlin (in MidiGremlin.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public struct SimpleMidiMessage

The SimpleMidiMessage type exposes the following members.

Constructors
  NameDescription
Public methodSimpleMidiMessage
Constructs a new SimpleMidiMessage with the following data and timestramp.
Top
Properties
  NameDescription
Public propertyChannel
The channel specified in this SimpleMidiMessage. The upper 4 bits of this property will always be zero.
Public propertyPitch
The pitch part of this SimpleMidiMessage. If the Type is not Note On (0x9) or Note Off(0x8) this property won't contain the Pitch of the inner MIDI message but the related field at the same offset.
Public propertyType
The MIDI event type this SimpleMidiMessage represents. The upper 4 bits of this property will always be zero. For more info on what this property means here.
Public propertyVelocity
The velocity of this SimpleMidiMessage. If the Type is not Note On (0x9) or Note Off(0x8) this property won't contain the Veloctiy of the inner MIDI message but the related field at the same offset or blank if it is a 2 byte message.
Top
Methods
  NameDescription
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(SimpleMidiMessage)
Determines whether this instance and another specified SimpleMidiMessage object have the same value.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodToString
Returns the fully qualified type name of this instance.
(Overrides ValueTypeToString.)
Public methodWithChannel
Returns a copy of this SimpleMidiMessage with the channel changed to channel.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares the equality of two SimpleMidiMessage.
Public operatorStatic memberInequality
Compares the inequality of two SimpleMidiMessage.
Top
Fields
  NameDescription
Public fieldData
The MIDI data that is supposed to be executed. To perserve compability with the WinMM API, this is stored with the least signifigant byte being the first to be played.
Public fieldTimestamp
The timestramp, in beats since the start of the play, that this SimpleMidiMessage is supposed to be executed.
Top
See Also