9The wave data is created by running a copy of the game screen pendulum simulation over 44100 discreet time steps, sampling a state value (i.e. the deflection angle of the lower pendulum arm) in each step, and scaling this value to the correct 16bit range required for the audio playback API.