Class RecordingUtilities
Contains methods to manipulate by recording of MIDI data. More info in the
Recording article.
Inherited Members
Namespace: Melanchall.DryWetMidi.Multimedia
Assembly: Melanchall.DryWetMidi.dll
Syntax
public static class RecordingUtilities
Methods
ToFile(Recording)
Creates an instance of the MidiFile and places recorded events to it.
Declaration
public static MidiFile ToFile(this Recording recording)
Parameters
| Type | Name | Description |
|---|---|---|
| Recording | recording | Recording to place events to MidiFile from. |
Returns
| Type | Description |
|---|---|
| MidiFile | MidiFile with events recorded with Recording. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | recording is null. |
| ArgumentException | recording is in progress. |
ToTrackChunk(Recording)
Creates an instance of the TrackChunk and places recorded events to it.
Declaration
public static TrackChunk ToTrackChunk(this Recording recording)
Parameters
| Type | Name | Description |
|---|---|---|
| Recording | recording | Recording to place events to TrackChunk from. |
Returns
| Type | Description |
|---|---|
| TrackChunk | TrackChunk with events recorded with Recording. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | recording is null. |
| ArgumentException | recording is in progress. |