mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 14:26:58 -04:00
fix error message
This commit is contained in:
@@ -37,7 +37,7 @@ export const freqToMidi = (freq) => {
|
||||
|
||||
export const valueToMidi = (value, fallbackValue) => {
|
||||
if (typeof value !== 'object') {
|
||||
throw new Error('Hap.getMidi: expected object value');
|
||||
throw new Error('valueToMidi: expected object value');
|
||||
}
|
||||
let { freq, note, n } = value;
|
||||
note = note ?? n;
|
||||
|
||||
Reference in New Issue
Block a user