Update note right away
This commit is contained in:
parent
cb25caee08
commit
d3e17719c5
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue