mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-29 16:02:51 -04:00
draw note property if set
This commit is contained in:
@@ -8,7 +8,7 @@ import { Pattern } from '@strudel.cycles/core';
|
||||
|
||||
const scale = (normalized, min, max) => normalized * (max - min) + min;
|
||||
const getValue = (e) => {
|
||||
let value = typeof e.value === 'object' ? e.value.n : e.value;
|
||||
let value = typeof e.value === 'object' ? e.value.note ?? e.value.n : e.value;
|
||||
if (typeof value === 'string') {
|
||||
value = toMidi(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user