draw note property if set

This commit is contained in:
Felix Roos 2022-06-27 00:03:26 +02:00
parent dd3f4e4751
commit fe9a6e8fdd

View File

@ -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);
}