Best way to record a macro for audio fade in/out

I found this video, which suggests creating a macro with many different steps. Start at desired volume level, step down a bit, add a pause, step down a bit more, add a pause, etc. That works, but it seems a bit hack-y and not very flexible. Has anyone found a smoother way, that’s easier to adjust for length?