From 46e30e894edd3faa6e12f6eb6decd6129f791641 Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 28 Aug 2020 19:49:18 +0100 Subject: change sample rate it still sounds pretty bad, though --- esp32/lego-piano.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/esp32/lego-piano.ino b/esp32/lego-piano.ino index 8991f07..73dce79 100644 --- a/esp32/lego-piano.ino +++ b/esp32/lego-piano.ino @@ -40,7 +40,7 @@ const int ampEnable = 32; const int octave_shift = 2; -const int sampleRate = 8000; +const int sampleRate = 11025; char pressed[row_count*col_count] = { 0 }; @@ -69,7 +69,6 @@ void setup() { i2s_driver_install(i2sPort, &i2s_config, 0, NULL); i2s_set_dac_mode(I2S_DAC_CHANNEL_RIGHT_EN); // only dac1 - i2s_set_sample_rates(i2sPort, sampleRate); // ?? for (int i=0;i