From 875119da707f985c0e0ca5b9422b2743ecc54bc3 Mon Sep 17 00:00:00 2001 From: Pete Favelle Date: Thu, 8 Dec 2022 17:07:07 +0000 Subject: [PATCH] Adjust PicoSynth volume when setting it in the Galactic Unicorn API --- libraries/galactic_unicorn/galactic_unicorn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/galactic_unicorn/galactic_unicorn.cpp b/libraries/galactic_unicorn/galactic_unicorn.cpp index 54219239..d17de6f1 100644 --- a/libraries/galactic_unicorn/galactic_unicorn.cpp +++ b/libraries/galactic_unicorn/galactic_unicorn.cpp @@ -517,6 +517,7 @@ namespace pimoroni { value = value < 0.0f ? 0.0f : value; value = value > 1.0f ? 1.0f : value; this->volume = floor(value * 255.0f); + this->synth.volume = this->volume * 255.0f; } float GalacticUnicorn::get_volume() {