Table of Contents

Class MidiExportOptions

Namespace
Celeritas.Core.Midi
Assembly
Celeritas.dll

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

TicksPerQuarterNote int

Ticks-per-quarter-note time division, in [1, 32767].

Bpm int

Tempo in beats per minute written as a set-tempo event.

Channel int

MIDI channel for the exported notes, in [0, 15].

DefaultVelocity byte

Velocity 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

int

Channel

MIDI channel for the exported notes, in [0, 15].

public int Channel { get; init; }

Property Value

int

DefaultVelocity

Velocity substituted when a note's velocity rounds to zero.

public byte DefaultVelocity { get; init; }

Property Value

byte

TicksPerQuarterNote

Ticks-per-quarter-note time division, in [1, 32767].

public int TicksPerQuarterNote { get; init; }

Property Value

int