mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 21:58:37 +00:00
fix error message
This commit is contained in:
parent
df73ce8a60
commit
09b06da403
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user