Struct MidiBuilder.Options
- Namespace
- SpessaSharp.MIDI.Utils
- Assembly
- SpessaSharp.dll
public readonly record struct MidiBuilder.Options : IEquatable<MidiBuilder.Options>
- Implements
- Inherited Members
Constructors
Options(int, int, MidiFormat, string)
public Options(int TimeDivision = 480, int InitialTempo = 120, MidiFormat Format = MidiFormat.m0, string Name = "Untitled song")
Parameters
TimeDivisionintThe MIDI file's tick precision (how many ticks fit in a quarter note).
InitialTempointThe MIDI file's initial tempo in BPM.
FormatMidiFormatThe MIDI file's MIDI track format.
NamestringThe MIDI file's name. Will be appended to the conductor track.
Fields
Default
public static readonly MidiBuilder.Options Default
Field Value
Properties
Format
The MIDI file's MIDI track format.
public MidiFormat Format { get; init; }
Property Value
InitialTempo
The MIDI file's initial tempo in BPM.
public int InitialTempo { get; init; }
Property Value
Name
The MIDI file's name. Will be appended to the conductor track.
public string Name { get; init; }
Property Value
TimeDivision
The MIDI file's tick precision (how many ticks fit in a quarter note).
public int TimeDivision { get; init; }