lmms
Cross-platform music production software
Loading...
Searching...
No Matches
lmms::MidiFile::Event Struct Reference

Represents a track event. See Event::Type for more info. More...

Classes

union  [union].__unnamed0__
 Union for saving space. More...

Public Types

enum class  Type {
  NoteOn , NoteOff , Tempo , BankSelectMSB ,
  BankSelectLSB , ProgramChange , TrackName
}
 Possible event types, ordered from most important to least important. More...

Public Member Functions

bool operator< (const Event &b) const noexcept
 Comparison operator Events are sorted by their time (or, in case of tie, type priority).

Public Attributes

Type type = Type::NoteOn
tick_t time = 0
 Time count when event happens.
std::uint8_t channel = 0
 Channel number where event is.
union  
std::string trackName
 Name of track where event is.

Detailed Description

Represents a track event. See Event::Type for more info.

Member Enumeration Documentation

◆ Type

enum class lmms::MidiFile::Event::Type
strong

Possible event types, ordered from most important to least important.

Enumerator
NoteOn 
NoteOff 
Tempo 
BankSelectMSB 
BankSelectLSB 
ProgramChange 
TrackName 

Member Function Documentation

◆ operator<()

bool lmms::MidiFile::Event::operator< ( const Event & b) const
inlinenoexcept

Comparison operator Events are sorted by their time (or, in case of tie, type priority).

Member Data Documentation

◆ @172327043221164371170251014372001017335253201107

◆ channel

std::uint8_t lmms::MidiFile::Event::channel = 0

Channel number where event is.

◆ time

tick_t lmms::MidiFile::Event::time = 0

Time count when event happens.

◆ trackName

std::string lmms::MidiFile::Event::trackName

Name of track where event is.

◆ type

Type lmms::MidiFile::Event::type = Type::NoteOn

The documentation for this struct was generated from the following file: