Skip to content

🎧 **Audio Signal Plotter (MATLAB)** 🎢 β€” A compact MATLAB tool that reads audio files using `audioread()`, extracts sampling rate ⏱️ and amplitude data πŸ“Š, and plots amplitude vs. time πŸ“ˆ. Supports both mono 🎀 and stereo 🎧 signals, making it perfect for learning digital audio sampling and waveform visualization 🧠.

Notifications You must be signed in to change notification settings

ExTc-aShiSh/Audio-Signal-Plotter-using-MATLAB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎧 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. 🚧

About

🎧 **Audio Signal Plotter (MATLAB)** 🎢 β€” A compact MATLAB tool that reads audio files using `audioread()`, extracts sampling rate ⏱️ and amplitude data πŸ“Š, and plots amplitude vs. time πŸ“ˆ. Supports both mono 🎀 and stereo 🎧 signals, making it perfect for learning digital audio sampling and waveform visualization 🧠.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages