MidiNoteOnMessage 类

定义

表示指定要打开的 MIDI 注释的 MIDI 消息。

public ref class MidiNoteOnMessage sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Midi.IMidiNoteOnMessageFactory, 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 MidiNoteOnMessage 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.IMidiNoteOnMessageFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class MidiNoteOnMessage final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Midi.IMidiNoteOnMessageFactory), 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 MidiNoteOnMessage
[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.IMidiNoteOnMessageFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class MidiNoteOnMessage
function MidiNoteOnMessage(channel, note, velocity)
Public NotInheritable Class MidiNoteOnMessage
继承
Object Platform::Object IInspectable MidiNoteOnMessage
属性
实现

Windows 要求

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

构造函数

MidiNoteOnMessage(Byte, Byte, Byte)

创建新的 MidiNoteOnMessage 对象。

属性

Channel

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

Note

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

RawData

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

Timestamp

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

Type

获取此 MIDI 消息的类型。

Velocity

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

适用于

另请参阅