remove color magic for now
This commit is contained in:
parent
1b41994e5f
commit
b37f3c819d
1 changed files with 0 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue