play song during update (#1832)

* play song

* change song
This commit is contained in:
Aiden McClelland
2022-09-26 16:52:12 -06:00
committed by GitHub
parent 8cf84a6cf2
commit 31c5aebe90
3 changed files with 20 additions and 38 deletions

View File

@@ -109,8 +109,8 @@ impl SoundInterface {
}
pub struct Song<Notes> {
tempo_qpm: u16,
note_sequence: Notes,
pub tempo_qpm: u16,
pub note_sequence: Notes,
}
impl<'a, T> Song<T>
where
@@ -157,8 +157,8 @@ impl Drop for SoundInterface {
#[derive(Debug, Clone, Copy, PartialEq, Eq, Arbitrary)]
pub struct Note {
semitone: Semitone,
octave: i8,
pub semitone: Semitone,
pub octave: i8,
}
impl Note {
pub fn frequency(&self) -> f64 {