From ad36d46486bebdc42b551bee2948755226fb0800 Mon Sep 17 00:00:00 2001 From: Matthew Huntington Date: Sun, 22 Dec 2024 18:57:20 -0500 Subject: [PATCH] note generation works with analyzer --- analyze.js | 1 - app.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/analyze.js b/analyze.js index cd15fd8..01d0da6 100644 --- a/analyze.js +++ b/analyze.js @@ -12,7 +12,6 @@ const getCentDifference = (startingFrequency, newFrequency) => { } const generateCentsString = (centDifference) => { - console.log(centDifference); const flatSharpChar = (centDifference > 0) ? '♯' : '♭' return flatSharpChar + Math.abs(parseInt(centDifference)).toString().padStart(2, '0') } diff --git a/app.js b/app.js index c277b92..302b959 100644 --- a/app.js +++ b/app.js @@ -55,6 +55,7 @@ generateNoteButton.addEventListener('click', () => { const randomPitchNote = randomPitch % 12 newTone = notes[randomPitchNote][0] + randomPitchOctave + newTone = teoria.note(newTone).fq() toneDisplay.innerHTML = newTone })