This program is an interactive visualization tool designed to demonstrate sampling, aliasing, and frequency folding in digital signal processing.
It helps users build an intuitive understanding of why frequencies above the Nyquist limit are misrepresented when a signal is sampled, and how those frequencies “fold” back into the audible/visible range.
The application lets you explore how a continuous-time signal behaves when sampled at a finite rate and then reconstructed.
Specifically, it:
- Generates a continuous sinusoidal input signal at a chosen frequency
- Samples the signal at a specified sampling rate
- Reconstructs the signal from the sampled data
- Computes the aliased frequency when the input exceeds the Nyquist limi
- Plays back audio so aliasing can be heard, not just seen
- Uses the Web Audio API for audio generation and playback
- Uses the Canvas API for displaying input and reconstructed signals
This program is ideal for:
- Learning digital signal processing fundamentals
- Visualizing aliasing and undersampling
- Teaching Nyquist-Shannon theory in an intuitive way