A single event in a music track (note, command, or control). More...
#include <song_data.h>

Public Types | |
| enum class | Type { Note , Command , SubroutineCall , End } |
Static Public Member Functions | |
| static TrackEvent | MakeNote (uint16_t tick, uint8_t pitch, uint8_t duration, uint8_t velocity=0) |
| static TrackEvent | MakeCommand (uint16_t tick, uint8_t opcode, uint8_t p1=0, uint8_t p2=0, uint8_t p3=0) |
| static TrackEvent | MakeEnd (uint16_t tick) |
Public Attributes | |
| Type | type = Type::End |
| uint16_t | tick = 0 |
| uint16_t | rom_offset = 0 |
| Note | note |
| MusicCommand | command |
A single event in a music track (note, command, or control).
Definition at line 247 of file song_data.h.
|
strong |
| Enumerator | |
|---|---|
| Note | |
| Command | |
| SubroutineCall | |
| End | |
Definition at line 248 of file song_data.h.
|
inlinestatic |
Definition at line 259 of file song_data.h.
References Note, tick, and type.
Referenced by yaze::editor::music::PianoRollView::Draw(), yaze::editor::music::TrackerView::DrawEventCell(), yaze::editor::music::TrackerView::HandleKeyboardInput(), and yaze::editor::music::PianoRollView::HandleMouseInput().
|
inlinestatic |
Definition at line 270 of file song_data.h.
References Command, tick, and type.
Referenced by yaze::editor::music::TrackerView::HandleEditShortcuts().
|
inlinestatic |
Definition at line 280 of file song_data.h.
References End, tick, and type.
Referenced by yaze::zelda3::music::MusicBank::CreateNewSong(), yaze::zelda3::music::MusicBank::LoadExpandedSongTable(), yaze::zelda3::music::MusicBank::LoadSongTable(), and yaze::zelda3::music::SpcParser::ParseTrackInternal().
Definition at line 250 of file song_data.h.
Referenced by yaze::zelda3::music::AsmExporter::ConvertEventToAsm(), yaze::zelda3::music::MusicBank::LoadFromJson(), MakeCommand(), MakeEnd(), MakeNote(), yaze::zelda3::music::AsmImporter::ParseDataBytes(), yaze::zelda3::music::AsmImporter::ParseMacro(), yaze::zelda3::music::SpcParser::ParseTrackInternal(), and yaze::editor::music::MusicPlayer::PreviewNote().
| uint16_t yaze::zelda3::music::TrackEvent::tick = 0 |
Definition at line 251 of file song_data.h.
Referenced by yaze::editor::music::PianoRollView::Draw(), yaze::editor::music::PianoRollView::HandleMouseInput(), yaze::zelda3::music::MusicTrack::InsertEvent(), yaze::zelda3::music::MusicBank::LoadFromJson(), MakeCommand(), MakeEnd(), MakeNote(), and yaze::editor::music::MusicPlayer::PreviewNote().
| uint16_t yaze::zelda3::music::TrackEvent::rom_offset = 0 |
Definition at line 252 of file song_data.h.
Referenced by yaze::zelda3::music::MusicBank::LoadFromJson().
| Note yaze::zelda3::music::TrackEvent::note |
Definition at line 255 of file song_data.h.
Referenced by yaze::zelda3::music::AsmExporter::ConvertEventToAsm(), yaze::editor::music::TrackerView::DrawEventCell(), yaze::editor::music::PianoRollView::HandleMouseInput(), yaze::zelda3::music::MusicBank::LoadFromJson(), and yaze::editor::music::MusicPlayer::PreviewNote().
| MusicCommand yaze::zelda3::music::TrackEvent::command |
Definition at line 256 of file song_data.h.
Referenced by yaze::zelda3::music::AsmExporter::ConvertEventToAsm(), and yaze::zelda3::music::MusicBank::LoadFromJson().