From 8f0edd96a87df066aa1f5547653a80146a8a79ea Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 28 Aug 2020 20:33:31 +0100 Subject: update lego-piano --- src/modelli/lego-piano/document.en.rest.txt | 17 +++++++++++------ src/modelli/lego-piano/document.it.rest.txt | 15 ++++++++++----- 2 files changed, 21 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/modelli/lego-piano/document.en.rest.txt b/src/modelli/lego-piano/document.en.rest.txt index 309d5c6..4b7a0d0 100644 --- a/src/modelli/lego-piano/document.en.rest.txt +++ b/src/modelli/lego-piano/document.en.rest.txt @@ -249,10 +249,15 @@ And, finally, the whole assembled set: :width: 100% :type: video/mp4 -At the moment the program can't really deal with more than one key -pressed at a time, as you may have noticed at the end of that last -video. The next step is to use a soundfont library, probably -`TinySoundFount `_ or `the +That's great, but it sounds nothing like a piano. It took about two +days of experimentation, but I finally managed to get the ESP32 to use +a soundfont, via the `TinySoundFount library +`_ (actually `the ESP-optimised version -`_, -which should have no problems mixing multiple notes. +`_ +with `a patch +`_): + +.. video:: soundfont.mp4 + :width: 100% + :type: video/mp4 diff --git a/src/modelli/lego-piano/document.it.rest.txt b/src/modelli/lego-piano/document.it.rest.txt index a6c0ea9..9491058 100644 --- a/src/modelli/lego-piano/document.it.rest.txt +++ b/src/modelli/lego-piano/document.it.rest.txt @@ -248,10 +248,15 @@ E, finalmente, il risultato assemblato: :width: 100% :type: video/mp4 -Al momento il programma non sa gestire più di un tasto premuto alla -volta, come probabilmente avete notato alla fine dell'ultimo filmato. -Il passo successivo è di usare una libreria soundfont, probabilmente -`TinySoundFount `_ o `la +Tutto bello, ma non suona nemmeno un po' come un pianoforte. Mi ci son +voluti due giorni di esperimenti, ma alla fine son riuscito a far +usare al ESP32 un soundfont, tramite `la libreria TinySoundFount +`_ (in effetti, `la versione ottimizzata per ESP `_, -che dovrebbe riuscire a mixare note multiple. +con `una patch +`_): + +.. video:: soundfont.mp4 + :width: 100% + :type: video/mp4 -- cgit v1.2.3