tweaked note detection to only change when the audio signal is strong enough

pull/89/head
jmoenig 2019-03-10 12:58:23 +01:00
rodzic 8ff79b0d8c
commit 9efc4c582d
2 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -49,6 +49,7 @@
### 2019-03-10
* Objects, Blocks, Threads: added microphone note and pitch detection
* Tweaked note detection to only change when the audio signal is strong enough
### 2019-03-07
* AudioComp lib: added block to set the microphone's buffer and fft sizes

Wyświetl plik

@ -9029,8 +9029,10 @@ Microphone.prototype.stepAudio = function (event) {
this.note = Math.round(
12 * (Math.log(this.pitch / 440) / Math.log(2))
) + 69;
/*
} else {
this.note = -1;
*/
}
this.isReady = true;