remove color magic for now

This commit is contained in:
Felix Roos 2022-12-26 23:12:16 +01:00
parent 1b41994e5f
commit b37f3c819d

View File

@ -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 { convertColorToNumber } from './color.mjs';
const scale = (normalized, min, max) => normalized * (max - min) + min;
const getValue = (e) => {
@ -21,9 +20,6 @@ const getValue = (e) => {
if (typeof value === 'string') {
value = toMidi(value);
}
if (typeof value === 'object' && value.color) {
return convertColorToNumber(value.color);
}
return value;
};