Class MidiFileCsvConversionSettings
Settings according to which MidiFile must be read from or written to
CSV representation.
Inherited Members
Namespace: Melanchall.DryWetMidi.Tools
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class MidiFileCsvConversionSettings
Properties
CsvLayout
Gets or sets layout of CSV representation of MidiFile. The default value is
DryWetMidi.
Declaration
public MidiFileCsvLayout CsvLayout { get; set; }
Property Value
Type | Description |
---|---|
MidiFileCsvLayout |
Remarks
At now there are two layouts: DryWetMidi and
MidiCsv which produces slightly different CSV representations.
The default value is DryWetMidi that gives more compact and more
human readable CSV data.
Exceptions
Type | Condition |
---|---|
InvalidEnumArgumentException | value specified an invalid value. |
CsvSettings
Gets common CSV settings.
Declaration
public CsvSettings CsvSettings { get; }
Property Value
Type | Description |
---|---|
CsvSettings |
NoteFormat
Gets or sets the format which should be used to write notes to or read them from CSV.
The default value is Events.
Declaration
public NoteFormat NoteFormat { get; set; }
Property Value
Type | Description |
---|---|
NoteFormat |
Exceptions
Type | Condition |
---|---|
InvalidEnumArgumentException | value specified an invalid value. |
NoteLengthType
Gets or sets the type of a note length (metric, bar/beat and so on) which should be used to
write to or read from CSV. The default value is Midi.
Declaration
public TimeSpanType NoteLengthType { get; set; }
Property Value
Type | Description |
---|---|
TimeSpanType |
Exceptions
Type | Condition |
---|---|
InvalidEnumArgumentException | value specified an invalid value. |
NoteNumberFormat
Gets or sets the format which should be used to write a note's number to or read it from CSV.
The default value is NoteNumber.
Declaration
public NoteNumberFormat NoteNumberFormat { get; set; }
Property Value
Type | Description |
---|---|
NoteNumberFormat |
Exceptions
Type | Condition |
---|---|
InvalidEnumArgumentException | value specified an invalid value. |
TimeType
Gets or sets format of timestamps inside CSV representation. The default value is Midi
Declaration
public TimeSpanType TimeType { get; set; }
Property Value
Type | Description |
---|---|
TimeSpanType |
Remarks
Note that it is recommended to use Midi if you use
MidiCsv CSV layout to ensure produced CSV data can be read
by other readers that supports format used by midicsv (http://www.fourmilab.ch/webtools/midicsv/) program.
Exceptions
Type | Condition |
---|---|
InvalidEnumArgumentException | value specified an invalid value. |