Skip to content

Commit

Permalink
fix the id we send for sequencer events
Browse files Browse the repository at this point in the history
  • Loading branch information
riknoll committed Mar 15, 2024
1 parent d80b112 commit 4bf75eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/mixer/sim/music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ namespace pxsim.music {

await res.sequencer.initAsync();
res.sequencer.addEventListener("stop", () => {
board().bus.queue(SEQUENCER_STOP_MESSAGE, this.id);
board().bus.queue(SEQUENCER_STOP_MESSAGE, res.id);
});
res.sequencer.addEventListener("state-change", () => {
board().bus.queue(SEQUENCER_STATE_CHANGE_MESSAGE, this.id);
board().bus.queue(SEQUENCER_STATE_CHANGE_MESSAGE, res.id);
});
res.sequencer.addEventListener("looped", () => {
board().bus.queue(SEQUENCER_LOOPED_MESSAGE, this.id);
board().bus.queue(SEQUENCER_LOOPED_MESSAGE, res.id);
});
res.sequencer.addEventListener("tick", () => {
board().bus.queue(SEQUENCER_TICK_MESSAGE, this.id);
board().bus.queue(SEQUENCER_TICK_MESSAGE, res.id);
});


Expand Down

0 comments on commit 4bf75eb

Please sign in to comment.