aescending key pitch

This commit is contained in:
Haze Weathers 2023-12-26 21:16:54 -05:00
parent 2774decaf9
commit 403924d210
2 changed files with 21 additions and 4 deletions

View file

@ -51,9 +51,10 @@ var loop_section = null
var has_looped = false
#Plays a sound
func play_sound(snd,player):
player.set_stream(snd)
player._set_playing(true)
func play_sound(snd: AudioStream, player: AudioStreamPlayer, pitch: float = 1.0):
player.stream = snd
player.pitch_scale = pitch
player.play()
#Play music, if same track is already playing do nothing
func play_music(song):