GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

05Beat-frequency amplitude envelope

Adding two Math.sin waves with slightly different frequencies produces a beat. Inside the requestAnimationFrame loop, a separate envelope curve is drawn over the composite waveform with its own strokeStyle to show the swelling-and-fading amplitude cycle.

Best forAudio-EQ teaching content, signal-processing lecture material

Math.sinrequestAnimationFramestrokeStyle
Beat-frequency amplitude envelope
Open in a new tab

05 Beat-frequency amplitude envelope — Measured area 42.926% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Wave Interference Simulation: 9 Canvas Scenes

The post this demo lives in

Wave Interference Simulation: 9 Canvas Scenes - preview of all 9 demosWave Interference Simulation: 9 Canvas ScenesA wave interference simulation shows what happens on screen when two or more waves combine, and this set builds nine of See all demos in this post

If you like this effect - similar demos