MidiSynthesizer Class

Definition

Represents the Microsoft GS wavetable software synthesizer, included in Windows. This synthesizer provides a Roland GS sound set, which includes and extends the General MIDI sound set.

public ref class MidiSynthesizer sealed : IClosable
/// [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 MidiSynthesizer final : IClosable
[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 MidiSynthesizer : System.IDisposable
Public NotInheritable Class MidiSynthesizer
Implements IDisposable
Inheritance
Object Platform::Object IInspectable MidiSynthesizer
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

AudioDevice

Gets the audio output device being used by this instance of the Microsoft MIDI synthesizer.

DeviceId

Gets the device ID of the Microsoft MIDI synthesizer. Note that all instances of the synthesizer have the same ID.

Volume

Gets or sets the output volume of this instance of the Microsoft MIDI synthesizer.

Methods

Close()

Closes this instance of the Microsoft MIDI synthesizer. It is a best practice for the caller to use this method to clear resources used by the MIDI object.

CreateAsync()

Creates a new instance of the Microsoft MIDI synthesizer that uses the system's default audio output device.

CreateAsync(DeviceInformation)

Creates a new instance of the Microsoft MIDI synthesizer with a specified audio output device.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

IsSynthesizer(DeviceInformation)

Determines whether a particular device is an instance of the Microsoft MIDI synthesizer. When all MIDI out ports on the system are enumerated, this method can be used to identify which of them is the Microsoft MIDI synthesizer.

SendBuffer(IBuffer)

Sends an array of bytes through the synthesizer's out port. This enables you to send your data as a byte array instead of as a defined MIDI message.

SendMessage(IMidiMessage)

Sends a MIDI message through the Microsoft MIDI synthesizer's out port.

Applies to

See also