Skip to content

Commit

Permalink
XG drum setup documented.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Sep 18, 2023
1 parent fdfccaf commit eab31b3
Showing 1 changed file with 60 additions and 3 deletions.
63 changes: 60 additions & 3 deletions src/state/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2345,9 +2345,66 @@ let OctaviaDevice = class extends CustomEventSource {
let note = msg[0], offset = msg[1];
msg.subarray(2).forEach((e, i) => {
let ri = i + offset;
([][ri] || (() => {
console.debug(`Unknown XG-style drum param ${ri} on set ${drumId + 1}.`);
}))();
if (ri < 16) {
([() => {
// coarse tune
}, () => {
// fine tune
}, () => {
// level
}, () => {
// exclusive group
// Postponed until 0.5.1 or 0.6.
}, () => {
// panpot
}, () => {
// reverb
}, () => {
// chorus
}, () => {
// variation
}, () => {
// assign mode (single/multi)
// behaviour not yet documented
}, () => {
// Rx note off
// no plans for support yet
}, () => {
// Rx note on
// no plans for support yet
}, () => {
// LPF cutoff
}, () => {
// LPF resonance
}, () => {
// attack rate
}, () => {
// decay rate
}, () => {
// decay 2 rate
// behaviour not yet documented
}][ri] || (() => {
console.debug(`Unknown XG-style drum param ${ri} on set ${drumId + 1}.`);
}))();
} else if (ri < 32) {} else if (ri < 40) {
([() => {
// EQ bass gain
}, () => {
// EQ treble gain
}, false, false, () => {
// EQ bass freq
}, () => {
// EQ treble freq
}][ri - 32] || (() => {
console.debug(`Unknown XG-style drum param ${ri} on set ${drumId + 1}.`);
}))();
} else if (ri < 80) {} else {
([() => {
// HPF cutoff
}][ri - 80] || (() => {
console.debug(`Unknown XG-style drum param ${ri} on set ${drumId + 1}.`);
}))();
};
});
};
let sysExDrumsR = function (drumId, msg) {
Expand Down

0 comments on commit eab31b3

Please sign in to comment.