Audio Bus Effects and Automation
TL;DR - I am looking for a way to automate the parameters of audio effects in code.
Apologies if this is a misuse of the flair, couldn't really find one for "General Advice."
NTL;RTP - I am a total Godot noob. My game dev experience thus far has been following a single "make your first game!" tutorial, and that's it. Now I'm looking to punch up that game and make it something that's actually worth playing rather than "Baby's first game."
One way I am looking to do that is through dynamic audio effects. The two main things I'm looking to do are:
- Automate the cutoff of a lowpass filter on the music bus to shoot down quickly when the player takes damage, and then gradually ramp back up.
- Cause the in-game music bus to be constantly lowpassed as the pause menu is active.
One way I've seen to go about this is using AudioServer.get_effect_type() or something to that effect. Documentation I've been able to find has been pretty inconsistent. I was hoping to find something along the lines of automating using tweens or some similar process, as that seems to be the most effective for use case 1.
I have several years' experience as an audio engineer and musician, but working with audio in code is still very new to me. If anyone has any recommendations on the best way to go about this, or maybe point me in the direction of a documentation page I may have missed, it would be greatly appreciated.
Edited for clarity.