remove debugging artifacts

This commit is contained in:
nkymut 2025-03-09 06:06:59 +08:00
parent 756a65016d
commit 3c2692bdda

View File

@ -180,8 +180,6 @@ function normalize(value = 0, min = 0, max = 1, exp = 1) {
}
function mapCC(mapping, value) {
console.log('mapping', mapping);
console.log('value', value);
return Object.keys(value)
.filter((key) => !!mapping[getControlName(key)])
.map((key) => {
@ -301,7 +299,7 @@ Pattern.prototype.midi = function (output) {
return this.onTrigger((time_deprecate, hap, currentTime, cps, targetTime) => {
if (!WebMidi.enabled) {
console.log('not enabled');
logger('Midi not enabled');
return;
}
hap.ensureObjectValue();
@ -342,7 +340,6 @@ Pattern.prototype.midi = function (output) {
velocity = gain * velocity;
// if midimap is set, send a cc messages from defined controls
if (midicontrolMap.has(midimap)) {
console.log('midimap', midimap);
const ccs = mapCC(midicontrolMap.get(midimap), hap.value);
ccs.forEach(({ ccn, ccv }) => sendCC(ccn, ccv, device, midichan, timeOffsetString));
}