Skip to content

Commit

Permalink
Supported DOC reverb type.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Apr 22, 2024
1 parent fa7eb94 commit cc4adb2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions data/misc/efxId.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ MSB LSB Name
18 03 KG Room 1
18 04 KG Room 2
18 05 KG Stage
18 10 DOC Thru
18 11 DOC Room
18 12 DOC Hall 1
18 13 DOC Hall 2
18 14 DOC Cosmic
20 00 GS Through
21 00 GS Stereo EQ
21 01 GS Spectrum
Expand Down
12 changes: 12 additions & 0 deletions src/state/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2000,6 +2000,10 @@ let OctaviaDevice = class extends CustomEventSource {
efxDefault = [40, 4, 0, 0, 0, 0, 0, 0];
break;
};
case modeMap.doc: {
efxDefault = [24, 16, 0, 0, 0, 0, 0, 0];
break;
};
case modeMap.motif:
case modeMap.s90es: {
efxDefault = [113, 0, 117, 0, 114, 0, 0, 0];
Expand Down Expand Up @@ -3185,6 +3189,14 @@ let OctaviaDevice = class extends CustomEventSource {
} else {
console.debug(`Unknown Yamaha SysEx: 67, ${id}, ${msg.join(', ')}`);
};
}).add([1, 17, 15, 89], (msg, track, id) => {
if (id == 115) {
// DOC reverb type
upThis.setEffectType(0, 24, msg[0] | 16);
upThis.dispatchEvent(`efxreverb`, upThis.getEffectType(0));
} else {
console.debug(`Unknown Yamaha SysEx: 67, ${id}, ${msg.join(', ')}`);
};
});
// DX7 Dumps
// Placeholder until further documentation
Expand Down

0 comments on commit cc4adb2

Please sign in to comment.