Skip to content

Commit 1bbd14a

Browse files
committed
Bugfix: Importing presets from old versions adjusted the instrument types improperly.
1 parent 4871772 commit 1bbd14a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

synth/synth.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3372,13 +3372,13 @@ export class Song {
33723372
// JB before v5 had custom chip and mod before pickedString and supersaw were added. Index +2.
33733373
let instrumentType: number = validateRange(0, InstrumentType.length - 1, base64CharCodeToInt[compressed.charCodeAt(charIndex++)]);
33743374
if (fromJummBox && beforeFive) {
3375-
if (instrumentType == InstrumentType.customChipWave || instrumentType == InstrumentType.mod) {
3375+
if (instrumentType == InstrumentType.pickedString || instrumentType == InstrumentType.supersaw) {
33763376
instrumentType += 2;
33773377
}
33783378
}
33793379
// Similar story here, JB before v5 had custom chip and mod before supersaw was added. Index +1.
3380-
else if ( fromJummBox && beforeSix) {
3381-
if (instrumentType == InstrumentType.customChipWave || instrumentType == InstrumentType.mod) {
3380+
else if (fromJummBox && beforeSix) {
3381+
if (instrumentType == InstrumentType.supersaw || instrumentType == InstrumentType.customChipWave) {
33823382
instrumentType += 1;
33833383
}
33843384
}

website/jummbox_offline.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)