Docsity

Lecture 10: Audio Processing - Analyzing Binary Files and Audio Signals, Slides of Computer Programming

Partial preview of the text

Download Lecture 10: Audio Processing - Analyzing Binary Files and Audio Signals and more Slides Computer Programming in PDF only on Docsity!

Today

Binary Files

Time Series

Sound and Sampling

Audio Files

Anatomy of Files

Text Files vs. Binary Files

Example Text files:

.txt (plain), .html (markup)

Example Binary files:

.exe .bmp .png .zip

Time Series

Ithaca Weather

Stock Market

Audio Signals

Sound

Waves

Frequency

Sampling

Let’s split!

[hal, rate] = wavread('puzzlin.wav'); % rate is 11025

n = 25000; hal1 = hal(1:n); % upto 2.28 sec hal2 = hal(n+1:end); % the rest

subplot(1,2,1); plot(hal1); subplot(1,2,2); plot(hal2);

0 1 2 3 x 10^4

−

0

1

0 2 4 6 x 10^4

−

0

1