17 lines
416 B
GDScript
17 lines
416 B
GDScript
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()
|