Condividi tramite


MidiProgramChangeMessage Classe

Definizione

Rappresenta un messaggio MIDI che specifica una modifica del programma.

public ref class MidiProgramChangeMessage sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Midi.IMidiProgramChangeMessageFactory, 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 MidiProgramChangeMessage 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.IMidiProgramChangeMessageFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class MidiProgramChangeMessage final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Midi.IMidiProgramChangeMessageFactory), 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 MidiProgramChangeMessage
[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.IMidiProgramChangeMessageFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class MidiProgramChangeMessage
function MidiProgramChangeMessage(channel, program)
Public NotInheritable Class MidiProgramChangeMessage
Ereditarietà
Object Platform::Object IInspectable MidiProgramChangeMessage
Attributi
Implementazioni

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v1.0)

Costruttori

MidiProgramChangeMessage(Byte, Byte)

Crea un nuovo oggetto MidiProgramChangeMessage .

Proprietà

Channel

Ottiene il canale da 0 a 15 a cui si applica questo messaggio.

Program

Ottiene il programma da 0 a 127.

RawData

Ottiene la matrice di byte associati al messaggio MIDI, incluso il byte di stato.

Timestamp

Ottiene la durata da quando il MidiInPort è stato creato al momento della ricezione del messaggio. Per i messaggi inviati a MidiOutPort, questo valore non ha alcun significato.

Type

Ottiene il tipo di questo messaggio MIDI.

Si applica a

Vedi anche