mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-19 01:28:28 +00:00
remove color magic for now
This commit is contained in:
parent
1b41994e5f
commit
b37f3c819d
@ -5,7 +5,6 @@ This program is free software: you can redistribute it and/or modify it under th
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Pattern, toMidi, getDrawContext, freqToMidi } from './index.mjs';
|
import { Pattern, toMidi, getDrawContext, freqToMidi } from './index.mjs';
|
||||||
import { convertColorToNumber } from './color.mjs';
|
|
||||||
|
|
||||||
const scale = (normalized, min, max) => normalized * (max - min) + min;
|
const scale = (normalized, min, max) => normalized * (max - min) + min;
|
||||||
const getValue = (e) => {
|
const getValue = (e) => {
|
||||||
@ -21,9 +20,6 @@ const getValue = (e) => {
|
|||||||
if (typeof value === 'string') {
|
if (typeof value === 'string') {
|
||||||
value = toMidi(value);
|
value = toMidi(value);
|
||||||
}
|
}
|
||||||
if (typeof value === 'object' && value.color) {
|
|
||||||
return convertColorToNumber(value.color);
|
|
||||||
}
|
|
||||||
return value;
|
return value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user