Bagikan melalui


MidiControlChangeMessage Kelas

Definisi

Mewakili pesan MIDI yang menentukan perubahan kontrol.

public ref class MidiControlChangeMessage sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Midi.IMidiControlChangeMessageFactory, 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 MidiControlChangeMessage 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.IMidiControlChangeMessageFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class MidiControlChangeMessage final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Midi.IMidiControlChangeMessageFactory), 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 MidiControlChangeMessage
[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.IMidiControlChangeMessageFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class MidiControlChangeMessage
function MidiControlChangeMessage(channel, controller, controlValue)
Public NotInheritable Class MidiControlChangeMessage
Warisan
Object Platform::Object IInspectable MidiControlChangeMessage
Atribut
Penerapan

Persyaratan Windows

Rangkaian perangkat
Windows 10 (diperkenalkan dalam 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v1.0)

Konstruktor

MidiControlChangeMessage(Byte, Byte, Byte)

Membuat objek MidiControlChangeMessage baru.

Properti

Channel

Mendapatkan saluran dari 0-15 tempat pesan ini berlaku.

Controller

Mendapatkan pengontrol dari 0-127 untuk menerima pesan ini.

ControlValue

Mendapatkan nilai dari 0-127 untuk diterapkan ke pengontrol.

RawData

Mendapatkan array byte yang terkait dengan pesan MIDI, termasuk byte status.

Timestamp

Mendapatkan durasi dari kapan MidiInPort dibuat hingga pesan diterima. Untuk pesan yang dikirim ke MidiOutPort, nilai ini tidak memiliki arti.

Type

Mendapatkan jenis pesan MIDI ini.

Berlaku untuk

Lihat juga