Beats and resonance in code | StemPy Lab