One of 8 channels in a music segment. More...
#include <song_data.h>
Public Member Functions | |
| void | CalculateDuration () |
| const TrackEvent * | GetEventAtTick (uint16_t tick) const |
| void | InsertEvent (TrackEvent event) |
| void | RemoveEvent (size_t index) |
Public Attributes | |
| std::vector< TrackEvent > | events |
| uint16_t | rom_address = 0 |
| uint16_t | duration_ticks = 0 |
| bool | is_empty = true |
One of 8 channels in a music segment.
Definition at line 291 of file song_data.h.
|
inline |
Definition at line 443 of file song_data.h.
References duration_ticks, yaze::zelda3::music::TrackEvent::End, events, is_empty, and yaze::zelda3::music::TrackEvent::Note.
Referenced by InsertEvent(), yaze::zelda3::music::SpcParser::ParseTrackInternal(), and RemoveEvent().
|
inline |
Definition at line 460 of file song_data.h.
References events.
|
inline |
Definition at line 467 of file song_data.h.
References CalculateDuration(), events, is_empty, and yaze::zelda3::music::TrackEvent::tick.
Referenced by yaze::editor::music::TrackerView::DrawEventCell().

|
inline |
Definition at line 477 of file song_data.h.
References CalculateDuration(), events, and is_empty.

| std::vector<TrackEvent> yaze::zelda3::music::MusicTrack::events |
Definition at line 292 of file song_data.h.
Referenced by CalculateDuration(), yaze::editor::music::anonymous_namespace{piano_roll_view.cc}::CountNotesInTrack(), yaze::editor::music::TrackerView::DrawEventCell(), yaze::zelda3::music::AsmExporter::GenerateChannelData(), yaze::editor::music::anonymous_namespace{piano_roll_view.cc}::GetChannelInstrument(), GetEventAtTick(), InsertEvent(), yaze::zelda3::music::SpcParser::ParseTrackInternal(), RemoveEvent(), and yaze::zelda3::music::SpcSerializer::SerializeTrack().
| uint16_t yaze::zelda3::music::MusicTrack::rom_address = 0 |
Definition at line 293 of file song_data.h.
Referenced by yaze::zelda3::music::SpcParser::ParseTrackInternal().
| uint16_t yaze::zelda3::music::MusicTrack::duration_ticks = 0 |
Definition at line 294 of file song_data.h.
Referenced by CalculateDuration().
| bool yaze::zelda3::music::MusicTrack::is_empty = true |
Definition at line 295 of file song_data.h.
Referenced by CalculateDuration(), InsertEvent(), yaze::zelda3::music::SpcParser::ParseTrackInternal(), and RemoveEvent().