Skip to content

Latest commit

Β 

History

History
61 lines (39 loc) Β· 1.97 KB

File metadata and controls

61 lines (39 loc) Β· 1.97 KB

🎧 Audio Signal Plotter (MATLAB) 🎢

A simple yet powerful MATLAB project to analyze and visualize audio waveforms! πŸ’‘ This tool helps you understand how digital audio is stored, sampled, and represented as a signal over time. Perfect for students, hobbyists, and anyone exploring the basics of digital signal processing (DSP). 🧠


βš™οΈ Features

  • πŸ“‚ Reads audio files using audioread()
  • ⏱️ Extracts sampling rate (Fs) and amplitude data (y)
  • πŸ•’ Generates an accurate time vector (0:length(y)-1)/Fs
  • πŸ“ˆ Plots amplitude vs. time for waveform visualization
  • 🎀 Supports both mono and stereo audio files
  • πŸ’¬ Clean and simple MATLAB implementation, great for beginners

🧩 How It Works

  1. Upload or choose an audio file

  2. MATLAB reads the file using audioread() and returns:

    • y β†’ Amplitude array
    • Fs β†’ Sampling rate (Hz)
  3. A time vector t is created using (0:length(y)-1)/Fs

  4. The waveform is plotted using plot(t, y)

This shows how sound intensity changes over time, giving a clear picture of your audio signal. πŸ”Š


πŸ–ΌοΈ Sample Output

πŸ“Š The script generates a waveform plot showing amplitude variations across time β€” a visual representation of your sound!


πŸš€ Applications

  • πŸŽ“ Educational demonstrations in DSP
  • 🎢 Understanding digital audio representation
  • πŸ” Visual analysis of recorded or generated sounds
  • 🧰 Foundation for more advanced audio processing projects

🧠 Concepts Used

  • Sampling Rate (Fs): Number of samples per second (Hz)
  • Amplitude Array (y): Represents sound pressure variations
  • Time Vector (t): Maps sample index to actual time
  • Plotting: Converts numeric audio data into a visual waveform

🀝 Contributing

Pull requests and suggestions are welcome! 🌟 If you find a bug or want to enhance the project (e.g., adding spectrum analysis or filters), feel free to fork and improve. 🚧