BASS.NET API for the Un4seen BASS Audio LibraryMidiShortMessageProgram Property BASS.NET API for the Un4seen BASS Audio Library
Gets or Sets the changed program number from/to the Data1 byte.

Namespace: radio42.Multimedia.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public byte Program { get; set; }

Property Value

Type: Byte
Remarks

The program change number ranges from 0 to 127.

This property should only be used when StatusType is ProgramChange.

If multiple banks do exist a ProgramChange command will select a new program number from the current bank only. A different bank will be selected with two sub-sequent ControlChange commands. This will also be called a Bank-Select-Command. For this special case it might be useful to keep in your MIDIINPROC handler always the current and the last message.

You might use the GetPairedData(Byte, Byte), GetPairedData2(MidiShortMessage, MidiShortMessage) resp. the GetPairedData1(MidiShortMessage, MidiShortMessage) method to retrieve a combined value from two short messages resp. two data value.

See Also

Reference