synth ![code/modules/instruments/piano_synth.dm 62](git.png)
Vars | |
beats_per_min | The beats per minute of the song |
---|---|
is_playing | Whether a song is currently playing |
note_decay | If set the last held note will decay |
note_shift | Note shift |
play | Starts playing the song. |
repetitions | How many times the song will be played. |
selected_instrument | The list of instruments which sound can be synthesized. |
song | The song, represented in latin alphabet A to G, that'll be played when play is triggered. |
started_playing | Sent when a new song has started playing |
stop | Stop playing the song. |
stopped_playing | Sent when a song has finished playing |
sustain_mode | Sustain Mode |
sustain_value | The value of the above |
synth | The synthesizer this circut is attached to. |
volume | The volume of the song |
volume_dropoff | Notes with volume below this threshold will be dead |
Var Details
beats_per_min ![code/modules/instruments/piano_synth.dm 75](git.png)
The beats per minute of the song
is_playing ![code/modules/instruments/piano_synth.dm 91](git.png)
Whether a song is currently playing
note_decay ![code/modules/instruments/piano_synth.dm 87](git.png)
If set the last held note will decay
note_shift ![code/modules/instruments/piano_synth.dm 81](git.png)
Note shift
play ![code/modules/instruments/piano_synth.dm 69](git.png)
Starts playing the song.
repetitions ![code/modules/instruments/piano_synth.dm 73](git.png)
How many times the song will be played.
selected_instrument ![code/modules/instruments/piano_synth.dm 89](git.png)
The list of instruments which sound can be synthesized.
song ![code/modules/instruments/piano_synth.dm 67](git.png)
The song, represented in latin alphabet A to G, that'll be played when play is triggered.
started_playing ![code/modules/instruments/piano_synth.dm 93](git.png)
Sent when a new song has started playing
stop ![code/modules/instruments/piano_synth.dm 71](git.png)
Stop playing the song.
stopped_playing ![code/modules/instruments/piano_synth.dm 95](git.png)
Sent when a song has finished playing
sustain_mode ![code/modules/instruments/piano_synth.dm 83](git.png)
Sustain Mode
sustain_value ![code/modules/instruments/piano_synth.dm 85](git.png)
The value of the above
synth ![code/modules/instruments/piano_synth.dm 100](git.png)
The synthesizer this circut is attached to.
volume ![code/modules/instruments/piano_synth.dm 77](git.png)
The volume of the song
volume_dropoff ![code/modules/instruments/piano_synth.dm 79](git.png)
Notes with volume below this threshold will be dead