Share via


MidiNoteOffMessage Class

Definition

Represents a MIDI messages that specifies a MIDI note to turn off.

public ref class MidiNoteOffMessage sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Midi.IMidiNoteOffMessageFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MidiNoteOffMessage final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Midi.IMidiNoteOffMessageFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class MidiNoteOffMessage final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Midi.IMidiNoteOffMessageFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MidiNoteOffMessage
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Midi.IMidiNoteOffMessageFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class MidiNoteOffMessage
function MidiNoteOffMessage(channel, note, velocity)
Public NotInheritable Class MidiNoteOffMessage
Inheritance
Object Platform::Object IInspectable MidiNoteOffMessage
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

MidiNoteOffMessage(Byte, Byte, Byte)

Creates a new MidiNoteOffMessage object.

Properties

Channel

Gets the channel from 0-15 that this message applies to.

Note

Gets the note to turn off which is specified as a value from 0-127.

RawData

Gets the array of bytes associated with the MIDI message, including status byte.

Timestamp

Gets the duration from when the MidiInPort was created to the time the message was received. For messages being sent to a MidiOutPort, this value has no meaning.

Type

Gets the type of this MIDI message.

Velocity

Gets the value of the velocity from 0-127.

Applies to

See also