From d101da4a438599f719d65b9b6248179a211d5294 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Thu, 9 Dec 2021 17:12:32 +0100 Subject: [PATCH] [BUG] volume, octave & tempo not reseting --- play.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/play.cpp b/play.cpp index 2ae8d51..03e9dbd 100644 --- a/play.cpp +++ b/play.cpp @@ -23,6 +23,9 @@ uint32_t interpret_note(uint8_t* buffer, const char note, const char param ) { } void play_init(const char* new_song) { + volume=64; + octave=4; + tempo=44100; if (song != NULL) free(song); song = (char*)malloc( strlen( new_song ) + 1 ); strcpy( song, new_song );