Transformations of Periodic Functions (with Sound)

Graphs a periodic function of the form y=A sin(Bx+C)+D, showing transformations corresponding to changing the values of the coefficients, and playing a tone based on this function.
How to use   ||   Examples   ||   Other Notes

How to use
To change the values of the coefficients, use the "+" and "-" buttons under each value. The buttons change the value by 0.1 at each step. Holding a button down causes this action to be repeated.
Click the "Clear" button to reset all values to the default values, A=B=1 and C=D=0.

To play a tone and hear the effects of the values on the tone, click the "Play Sound" button.

Phase shifts:
A=1, B=1, D=0
C= -2, -1, 0, 1, 2     
Verical shifts:
A=1, B=1, C=0
D= -2, -1, 0, 1, 2     
B=1, C=0, D=0
A= -2, -1, 0, 1, 2     
A=1, C=0, D=0
B= 1/4, 1/2, 1, 3/2, 2     

Other Notes
Notice that A determines "amplitide", B determines "period" (period is 2pi/B), C determines "phase" (horizontal shift), and D determines vertical shift.

When listening to the tone, higher values of A make the tone louder, and higher values of B raise the pitch of the tone. The default value of A=1.0 corresponds to a pitch of 523.3Hz, approximately high C (one octave above middle C) based on the A 440 standard. Values of C and D have no effect on the tone.