Update note right away
parent
cb25caee08
commit
d3e17719c5
|
@ -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));
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue