mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-12 22:15:27 -04:00
remove color magic for now
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user