Play sound based on current state of energy bar?

You could use a ‘skip chain’. Bit industrial, but does the trick: