Skip to content

Commit

Permalink
Changed to the new method in a few more places.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Oct 7, 2024
1 parent 804392b commit bf08d88
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/state/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1584,8 +1584,8 @@ let OctaviaDevice = class extends CustomEventSource {
};
pushChPrimitives(part) {
let upThis = this;
upThis.#prg[(1 << allocated.chShift) | part] = upThis.#cc[ccOffTable[part] + ccToPos[0]];
upThis.#prg[(2 << allocated.chShift) | part] = upThis.#cc[ccOffTable[part] + ccToPos[32]];
upThis.#prg[(1 << allocated.chShift) | part] = upThis.getCcCh(part, 0);
upThis.#prg[(2 << allocated.chShift) | part] = upThis.getCcCh(part, 32);
};
getChVoice(part) {
let upThis = this;
Expand Down Expand Up @@ -1800,7 +1800,7 @@ let OctaviaDevice = class extends CustomEventSource {
if (!cc) {
return 0;
} else if (ccAccepted.indexOf(cc) >= 0) {
return this.#cc[part * allocated.cc + ccToPos[cc]];
return this.getCcCh(part, cc);
} else {
throw(new Error(`Invalid ACE source in CH${part + 1}: ${cc}`));
};
Expand Down Expand Up @@ -1877,7 +1877,7 @@ let OctaviaDevice = class extends CustomEventSource {
};
// Channel 10 to drum set
drumChannels.forEach((e) => {
upThis.#cc[allocated.cc * e] = upThis.#subDb[upThis.getChModeId(e)][2];
upThis.setCcCh(e, 0, upThis.#subDb[upThis.getChModeId(e)][2]);
});
// Channel types
upThis.#chType.fill(upThis.CH_MELODIC);
Expand Down Expand Up @@ -1913,7 +1913,7 @@ let OctaviaDevice = class extends CustomEventSource {
upThis.modelEx.sc.invDisp = false;
upThis.modelEx.sc.peakHold = 1;
for (let ch = 0; ch < allocated.ch; ch ++) {
let chOff = ch * allocated.cc;
let chOff = ccOffTable[ch];
// Reset to full
upThis.#cc[chOff + ccToPos[7]] = 100; // Volume
upThis.#cc[chOff + ccToPos[11]] = 127; // Expression
Expand Down

0 comments on commit bf08d88

Please sign in to comment.