Write down time function below to generate signal
Generate
The frequency in function should be in format 2*pi*f*t e.g. Math.sin(2*pi*300*t+20)
Available function
Math.abs(a) // the absolute value of a
Math.acos(a) // arc cosine of a
Math.asin(a) // arc sine of a
Math.atan(a) // arc tangent of a
Math.atan2(a,b) // arc tangent of a/b
Math.ceil(a) // integer closest to a and not less than a
Math.cos(a) // cosine of a
Math.exp(a) // exponent of a
Math.floor(a) // integer closest to and not greater than a
Math.log(a) // log of a base e
Math.max(a,b) // the maximum of a and b
Math.min(a,b) // the minimum of a and b
Math.pow(a,b) // a to the power b
Math.random() // pseudorandom number in the range 0 to 1
Math.round(a) // integer closest to a
Math.sin(a) // sine of a
Math.sqrt(a) // square root of a
Math.tan(a) // tangent of a
Maximum frequency span is 17226 Hz or sampling rate at 44100 Hz
***Signal Generator is not work with Google Chrome
This signal generator feature cannot work correctly in Google Chrome web browser which is the bugs in google chrome web browser's javascript engine and work perfectly on standard Internet Explorer and FireFox web browsers. This doesn't mean that Chrome is not standard web browser but today it still has some bugs in javascript engine.