I have several songs running concurrently. When the player presses one button, one song will mute and another will start playing. Right now, this happens immediately when the button is pressed, regardless of whether this is in the middle of a note or not.
Let's assume that the song is 90 BPM, or 1.5 beats a second, or 2/3 seconds per beat.
How would I go about this so that every mute or unmute happens at an interval of 2/3 seconds rather than at the user input?
My first thought is to have the user input set a flag that gets checked every 2/3 seconds, but I'm not certain how to set that up in Godot yet.