draw note property if set
This commit is contained in:
parent
dd3f4e4751
commit
fe9a6e8fdd
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ import { Pattern } from '@strudel.cycles/core';
|
||||||
|
|
||||||
const scale = (normalized, min, max) => normalized * (max - min) + min;
|
const scale = (normalized, min, max) => normalized * (max - min) + min;
|
||||||
const getValue = (e) => {
|
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') {
|
if (typeof value === 'string') {
|
||||||
value = toMidi(value);
|
value = toMidi(value);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue