mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-12 06:08:37 +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 { 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;
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user