MidiNoteOffMessage 类

定义

表示指定要关闭的 MIDI 注释的 MIDI 消息。

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
继承
Object Platform::Object IInspectable MidiNoteOffMessage
属性
实现

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

构造函数

MidiNoteOffMessage(Byte, Byte, Byte)

创建新的 MidiNoteOffMessage 对象。

属性

Channel

从 0-15 获取此消息适用的通道。

Note

获取要关闭的注释,该注释指定为 0-127 的值。

RawData

获取与 MIDI 消息关联的字节数组,包括状态字节。

Timestamp

获取从创建 MidiInPort 到收到消息的时间的持续时间。 对于发送到 MidiOutPort 的消息,此值没有意义。

Type

获取此 MIDI 消息的类型。

Velocity

获取从 0 到 127 的速度的值。

适用于

另请参阅