Update note right away

main
Charlotte Som 2023-03-06 02:26:34 +00:00
parent cb25caee08
commit d3e17719c5
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ export default function Main() {
const setNoteValue: ChangeEventHandler<HTMLInputElement> = (e) => {
setNote(e.target.value);
const frequency = calculateFrequency(root, note);
const frequency = calculateFrequency(root, e.target.value);
if (frequency != null) setFrequency(frequency.toFixed(3));
};