line amplitude and frequency is controlled by the mouse x and y position

source code