mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 01:24:21 +01:00
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 🆑 fix: Fixed BPM setting on synth circuit interface not doing anything /🆑
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user