From d3e17719c5f810631e5969722dbbdb7107904825 Mon Sep 17 00:00:00 2001 From: videogame hacker Date: Mon, 6 Mar 2023 02:26:34 +0000 Subject: [PATCH] Update note right away --- pages/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/index.tsx b/pages/index.tsx index 4de003f..1c2640d 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -73,7 +73,7 @@ export default function Main() { const setNoteValue: ChangeEventHandler = (e) => { setNote(e.target.value); - const frequency = calculateFrequency(root, note); + const frequency = calculateFrequency(root, e.target.value); if (frequency != null) setFrequency(frequency.toFixed(3)); };