/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/dcs/signals/signals_music.dm

COMSIG_INSTRUMENT_STARTsent to the instrument when a song starts playing
COMSIG_INSTRUMENT_ENDsent to the instrument when a song stops playing
COMSIG_INSTRUMENT_SHOULD_STOP_PLAYINGsent to the instrument on /should_stop_playing(): (atom/player). Return values can be found in DEFINES/song.dm
COMSIG_INSTRUMENT_REPEATsent to the instrument (and player if available) when a song repeats (datum/song)
COMSIG_INSTRUMENT_TEMPO_CHANGEsent to the instrument when tempo changes, skipped on new. (datum/song)

Define Details

COMSIG_INSTRUMENT_END

sent to the instrument when a song stops playing

COMSIG_INSTRUMENT_REPEAT

sent to the instrument (and player if available) when a song repeats (datum/song)

COMSIG_INSTRUMENT_SHOULD_STOP_PLAYING

sent to the instrument on /should_stop_playing(): (atom/player). Return values can be found in DEFINES/song.dm

COMSIG_INSTRUMENT_START

sent to the instrument when a song starts playing

COMSIG_INSTRUMENT_TEMPO_CHANGE

sent to the instrument when tempo changes, skipped on new. (datum/song)