Class MidiExportOptions
Options controlling MIDI export from a NoteBuffer.
public sealed record MidiExportOptions : IEquatable<MidiExportOptions>
- Inheritance
-
MidiExportOptions
- Implements
- Inherited Members
Constructors
MidiExportOptions(int, int, int, byte)
Options controlling MIDI export from a NoteBuffer.
public MidiExportOptions(int TicksPerQuarterNote = 480, int Bpm = 120, int Channel = 0, byte DefaultVelocity = 100)
Parameters
TicksPerQuarterNoteintTicks-per-quarter-note time division, in [1, 32767].
BpmintTempo in beats per minute written as a set-tempo event.
ChannelintMIDI channel for the exported notes, in [0, 15].
DefaultVelocitybyteVelocity substituted when a note's velocity rounds to zero.
Properties
Bpm
Tempo in beats per minute written as a set-tempo event.
public int Bpm { get; init; }
Property Value
Channel
MIDI channel for the exported notes, in [0, 15].
public int Channel { get; init; }
Property Value
DefaultVelocity
Velocity substituted when a note's velocity rounds to zero.
public byte DefaultVelocity { get; init; }
Property Value
TicksPerQuarterNote
Ticks-per-quarter-note time division, in [1, 32767].
public int TicksPerQuarterNote { get; init; }