Skip to content

Commit 826f71e

Browse files
committed
small fix
1 parent 8ab95b7 commit 826f71e

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/synthesizer/basic/basic_synthesizer.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -891,10 +891,7 @@ export abstract class BasicSynthesizer {
891891
pitchWheelRange: 0,
892892
isMuted: false,
893893
isDrum: this.channelsAmount % 16 === DEFAULT_PERCUSSION,
894-
transposition: 0,
895-
program: 0,
896-
bankMSB: 0,
897-
bankLSB: 0
894+
transposition: 0
898895
});
899896
if (!post) {
900897
return;

src/synthesizer/basic/basic_synthesizer_core.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,10 @@ export abstract class BasicSynthesizerCore {
314314
break;
315315

316316
case songChangeType.index:
317-
if (seqMsg.data.data)
317+
if (seqMsg.data.data !== undefined) {
318+
console.log("INDEX", seqMsg.data);
318319
seq.songIndex = seqMsg.data.data;
320+
}
319321
break;
320322
}
321323
break;

0 commit comments

Comments
 (0)