yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::zelda3::music::MusicSong Struct Reference

A complete song composed of segments. More...

#include <song_data.h>

Public Member Functions

uint32_t GetTotalDuration () const
 
bool HasLoop () const
 

Public Attributes

std::string name
 
std::vector< MusicSegmentsegments
 
int loop_point = -1
 
uint8_t bank = 0
 
uint16_t rom_address = 0
 
bool modified = false
 

Detailed Description

A complete song composed of segments.

Definition at line 334 of file song_data.h.

Member Function Documentation

◆ GetTotalDuration()

uint32_t yaze::zelda3::music::MusicSong::GetTotalDuration ( ) const
inline

Definition at line 343 of file song_data.h.

References segments.

Referenced by yaze::editor::music::TrackerView::DrawToolbar().

◆ HasLoop()

Member Data Documentation

◆ name

◆ segments

std::vector<MusicSegment> yaze::zelda3::music::MusicSong::segments

Definition at line 336 of file song_data.h.

Referenced by yaze::zelda3::music::SpcSerializer::CalculateRequiredSpace(), yaze::zelda3::music::MusicBank::CalculateSongSize(), yaze::zelda3::music::MusicBank::CreateNewSong(), yaze::editor::music::PianoRollView::Draw(), yaze::editor::music::PianoRollView::DrawChannelList(), yaze::editor::music::TrackerView::DrawGrid(), yaze::editor::music::PianoRollView::DrawNotes(), yaze::editor::music::PianoRollView::DrawRollCanvas(), yaze::editor::music::PianoRollView::DrawToolbar(), yaze::zelda3::music::AsmExporter::ExportSong(), yaze::zelda3::music::AsmExporter::GenerateChannelPointers(), yaze::editor::music::MusicPlayer::GetSongTempo(), GetTotalDuration(), yaze::editor::music::TrackerView::HandleEditShortcuts(), yaze::editor::music::TrackerView::HandleKeyboardInput(), yaze::editor::music::PianoRollView::HandleMouseInput(), yaze::zelda3::music::AsmImporter::ImportSong(), yaze::zelda3::music::MusicBank::LoadExpandedSongTable(), yaze::zelda3::music::MusicBank::LoadFromJson(), yaze::zelda3::music::MusicBank::LoadSongTable(), yaze::editor::MusicSongEditAction::MemoryUsage(), yaze::zelda3::music::AsmImporter::ParseDataBytes(), yaze::zelda3::music::AsmImporter::ParseLine(), yaze::zelda3::music::SpcParser::ParseSong(), yaze::editor::music::MusicPlayer::PreviewNote(), yaze::editor::music::MusicPlayer::PreviewSegment(), yaze::editor::music::MusicPlayer::SeekToSegment(), yaze::zelda3::music::SpcSerializer::SerializeSong(), and yaze::zelda3::music::SpcSerializer::SerializeSongFromSegment().

◆ loop_point

◆ bank

◆ rom_address

uint16_t yaze::zelda3::music::MusicSong::rom_address = 0

◆ modified


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