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

TimeDivision int

The MIDI file's tick precision (how many ticks fit in a quarter note).

InitialTempo int

The MIDI file's initial tempo in BPM.

Format MidiFormat

The MIDI file's MIDI track format.

Name string

The MIDI file's name. Will be appended to the conductor track.

Fields

Default

public static readonly MidiBuilder.Options Default

Field Value

MidiBuilder.Options

Properties

Format

The MIDI file's MIDI track format.

public MidiFormat Format { get; init; }

Property Value

MidiFormat

InitialTempo

The MIDI file's initial tempo in BPM.

public int InitialTempo { get; init; }

Property Value

int

Name

The MIDI file's name. Will be appended to the conductor track.

public string Name { get; init; }

Property Value

string

TimeDivision

The MIDI file's tick precision (how many ticks fit in a quarter note).

public int TimeDivision { get; init; }

Property Value

int