From 4bf75ebd97d2994d9ca9d24259f07343e3fbbb07 Mon Sep 17 00:00:00 2001 From: Richard Knoll Date: Fri, 15 Mar 2024 15:28:29 -0700 Subject: [PATCH] fix the id we send for sequencer events --- 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); });