mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
remove debugging artifacts
This commit is contained in:
parent
756a65016d
commit
3c2692bdda
@ -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));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user