kopia lustrzana https://github.com/backface/turtlestitch
tweaked note detection to only change when the audio signal is strong enough
rodzic
8ff79b0d8c
commit
9efc4c582d
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue