u(t) is called 60 times per second.
t: Elapsed time in seconds.
S: Shorthand for Math.sin.
C: Shorthand for Math.cos.
T: Shorthand for Math.tan.
R: Function that generates rgba-strings, usage ex.: R(255, 255, 255, 0.5)
c: A 1920x1080 canvas.
x: A 2D context for that canvas.
♫ Dwitter Oscillator Music Player ♪ (DOMP) is now loaded! This dweet does not play music itself but allows other dweets to play music easier. See comments for more info.
How to use: Put eval(localStorage.m) before your code to load DOMP. f=oscillator frequency, i=incremented each frame when playing, n:convert note to frequency, Z:2e3, z:-2e3
u(t) is called 60 times per second.
t: elapsed time in seconds.
c: A 1920x1080 canvas.
x: A 2D context for that canvas.
S: Math.sin
C: Math.cos
T: Math.tan
R: Generates rgba-strings, ex.: R(255, 255, 255, 0.5)