extends Node var RhythmPlayer: AudioStreamPlayer var ChordPlayer: AudioStreamPlayer var NotePlayer: AudioStreamPlayer func _ready(): RhythmPlayer = get_node("/root/Control/RhythmPlayer") ChordPlayer = get_node("/root/Control/ChordPlayer") NotePlayer = get_node("/root/Control/NotePlayer") self.pressed.connect(button_pressed) func button_pressed(): RhythmPlayer.stop() ChordPlayer.stop() NotePlayer.stop()