We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee7255b commit 7e3df03Copy full SHA for 7e3df03
src/PitchDetection/index.js
@@ -83,14 +83,16 @@ class PitchDetection {
83
* @public
84
*/
85
this.results = {};
86
- const centMapping = tf.add(tf.linspace(0, 7180, 360), tf.tensor(1997.3794084376191));
+
87
PitchDetection.resample(event.inputBuffer, (resampled) => {
88
tf.tidy(() => {
89
/**
90
* A boolean value stating whether the model instance is running or not.
91
* @type {boolean}
92
93
94
+ const centMapping = tf.add(tf.linspace(0, 7180, 360), tf.tensor(1997.3794084376191));
95
96
this.running = true;
97
const frame = tf.tensor(resampled.slice(0, 1024));
98
const zeromean = tf.sub(frame, tf.mean(frame));
0 commit comments