Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Aliasing-Lab

Sampling & Aliasing Visualizer

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.


What the Program Does

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

Technical Notes

  • Uses the Web Audio API for audio generation and playback
  • Uses the Canvas API for displaying input and reconstructed signals

Intended Use

This program is ideal for:

  • Learning digital signal processing fundamentals
  • Visualizing aliasing and undersampling
  • Teaching Nyquist-Shannon theory in an intuitive way

About

Mini project to visualize the Nyquist-Shannon Theorem

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages