Represents a single musical note. More...
#include <song_data.h>
Public Member Functions | |
| bool | IsNote () const |
| bool | IsTie () const |
| bool | IsRest () const |
| std::string | GetNoteName () const |
| int | GetOctave () const |
| int | GetSemitone () const |
Public Attributes | |
| uint8_t | pitch = kNoteRest |
| uint8_t | duration = 0 |
| uint8_t | velocity = 0 |
| bool | has_duration_prefix = false |
Represents a single musical note.
Notes have a pitch (C1-B6), duration in ticks, and optional velocity. Special pitch values: 0xC8 = tie (extend previous), 0xC9 = rest.
Definition at line 192 of file song_data.h.
|
inline |
Definition at line 199 of file song_data.h.
References yaze::zelda3::music::kNoteMaxPitch, yaze::zelda3::music::kNoteMinPitch, and pitch.
Referenced by GetNoteName(), GetOctave(), GetSemitone(), and yaze::editor::music::MusicPlayer::PreviewNote().
|
inline |
Definition at line 200 of file song_data.h.
References yaze::zelda3::music::kNoteTie, and pitch.
Referenced by GetNoteName().
|
inline |
Definition at line 201 of file song_data.h.
References yaze::zelda3::music::kNoteRest, and pitch.
Referenced by GetNoteName().
|
inline |
Definition at line 433 of file song_data.h.
References GetOctave(), GetSemitone(), IsNote(), IsRest(), IsTie(), and yaze::zelda3::music::kNoteNames.
Referenced by yaze::editor::music::TrackerView::DrawEventCell(), yaze::editor::music::PianoRollView::DrawPianoKeys(), and yaze::editor::music::PianoRollView::HandleMouseInput().
|
inline |
Definition at line 207 of file song_data.h.
References IsNote(), yaze::zelda3::music::kNoteMinPitch, and pitch.
Referenced by GetNoteName().

|
inline |
Definition at line 213 of file song_data.h.
References IsNote(), yaze::zelda3::music::kNoteMinPitch, and pitch.
Referenced by GetNoteName().

| uint8_t yaze::zelda3::music::Note::pitch = kNoteRest |
Definition at line 193 of file song_data.h.
Referenced by yaze::zelda3::music::AsmExporter::ConvertNoteToAsm(), yaze::editor::music::TrackerView::DrawEventCell(), yaze::editor::music::PianoRollView::DrawPianoKeys(), GetOctave(), GetSemitone(), yaze::editor::music::PianoRollView::HandleMouseInput(), IsNote(), IsRest(), IsTie(), yaze::zelda3::music::MusicBank::LoadFromJson(), yaze::editor::music::MusicPlayer::PreviewNote(), and yaze::zelda3::music::SpcSerializer::SerializeNote().
| uint8_t yaze::zelda3::music::Note::duration = 0 |
Definition at line 194 of file song_data.h.
Referenced by yaze::zelda3::music::AsmExporter::ConvertNoteToAsm(), yaze::editor::music::PianoRollView::HandleMouseInput(), yaze::zelda3::music::MusicBank::LoadFromJson(), and yaze::zelda3::music::SpcSerializer::SerializeNote().
| uint8_t yaze::zelda3::music::Note::velocity = 0 |
Definition at line 195 of file song_data.h.
Referenced by yaze::zelda3::music::AsmExporter::ConvertNoteToAsm(), yaze::zelda3::music::MusicBank::LoadFromJson(), and yaze::zelda3::music::SpcSerializer::SerializeNote().
| bool yaze::zelda3::music::Note::has_duration_prefix = false |
Definition at line 196 of file song_data.h.
Referenced by yaze::zelda3::music::AsmExporter::ConvertNoteToAsm(), yaze::zelda3::music::MusicBank::LoadFromJson(), and yaze::zelda3::music::SpcSerializer::SerializeNote().