Can you play an SE at the end of a state effect?

I have a skill that applies a state effect that lasts for 3 turns and I'd like to play a sound effect when the state wears off, so that the player is warned that the effect ended. Any ideas?
Yanfly's buff/states core plugin will allow for this, if you want to use their stuff. Unfortunately, I don't think you can get it for free anymore, unless you already have it.

if you do, here's the code for the notebox on the state. (replace buzzer1 with whatever file you want to play)
Code:
  <Custom Leave Effect>
AudioManager.playSe({name: 'buzzer1', pan: 0, pitch: 100, volume: 100});
  </Custom Leave Effect>
wow it really was that easy lol... thanks for the help, man, I've never noticed that code

Original thread: https://forums.rpgmakerweb.com/threads/can-you-play-an-se-at-the-end-of-a-state-effect.125305/