From 0664c614126fba52b42188c2854c9757caac7d5c Mon Sep 17 00:00:00 2001 From: Richard Knoll Date: Wed, 20 Mar 2024 12:08:35 -0700 Subject: [PATCH] fix the id we send for sequencer events (#1474) (#1475) --- libs/mixer/sim/music.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/mixer/sim/music.ts b/libs/mixer/sim/music.ts index 73e87ac4a..36cca2ce3 100644 --- a/libs/mixer/sim/music.ts +++ b/libs/mixer/sim/music.ts @@ -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); });