Skip to content

Commit

Permalink
fix the id we send for sequencer events (#1474) (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
riknoll authored Mar 20, 2024
1 parent a39fe67 commit 0664c61
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 0664c61

Please sign in to comment.