Class MidiFileUtilities
Provides useful methods to manipulate an instance of the MidiFile.
Inherited Members
Namespace: Melanchall.DryWetMidi.Core
Assembly: Melanchall.DryWetMidi.dll
Syntax
public static class MidiFileUtilities
Methods
GetChannels(MidiFile)
Gets all channel numbers presented in the specified MidiFile.
Declaration
public static IEnumerable<FourBitNumber> GetChannels(this MidiFile midiFile)
Parameters
Type | Name | Description |
---|---|---|
MidiFile | midiFile | MidiFile to get channels of. |
Returns
Type | Description |
---|---|
IEnumerable<FourBitNumber> | Collection of channel numbers presented in the midiFile . |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | midiFile is null . |