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