From 3065cf87aeb470a449e525eb2c90d8f4cd0814b3 Mon Sep 17 00:00:00 2001 From: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Date: Sat, 12 Jul 2025 22:16:49 +0200 Subject: [PATCH] Fixes BPM setting on synth circuit interface not doing anything (#92069) ## About The Pull Request Also it no longer runtimes constantly so there's that - Closes #91981 ## Changelog :cl: fix: Fixed BPM setting on synth circuit interface not doing anything /:cl: --- code/modules/instruments/piano_synth.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/instruments/piano_synth.dm b/code/modules/instruments/piano_synth.dm index 0408737d868..25c65e656c3 100644 --- a/code/modules/instruments/piano_synth.dm +++ b/code/modules/instruments/piano_synth.dm @@ -144,6 +144,8 @@ SIGNAL_HANDLER is_playing.set_output(TRUE) started_playing.set_output(COMPONENT_SIGNAL) + if (beats_per_min.value) + synth.song.set_bpm(beats_per_min.value) /obj/item/circuit_component/synth/proc/continue_if_autoplaying(datum/source, atom/music_player) SIGNAL_HANDLER @@ -165,7 +167,8 @@ synth.song.set_repeats(repetitions.value) /obj/item/circuit_component/synth/proc/set_bpm() - synth.song.sanitize_tempo(BPM_TO_TEMPO_SETTING(beats_per_min.value)) + if (beats_per_min.value) + synth.song.set_bpm(beats_per_min.value) /obj/item/circuit_component/synth/proc/set_instrument() synth.song.set_instrument(selected_instrument.value)