Thanks!
The oscilloscope signal is just a Line2D object that gets its points updated every frame. The signal is made of two parts - one simple sine wave with a fixed amplitude and a second sine wave with an amplitude tied to the volume of the audio signal.