Update note right away

This commit is contained in:
Charlotte Som 2023-03-06 02:26:34 +00:00
parent cb25caee08
commit d3e17719c5

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));
};