SOUND with MATLAB
SOUND INPUT [a, fa, na]= wavread(’mim wav') Sound data Sampling Frequency #bit representation
a = … ……. fa = na = 16 Teknik Multimedia Fakultas Ilmu Komputer UI 3
SAMPLING sound(a, 44100) sound(a, 16000) sound(a, 11025) sound(a, 8000) 4
WRITING SAMPLED SOUND wavwrite(a, 30000, ‘gbush wav’) PLOTTING plot(a) Teknik Multimedia Fakultas Ilmu Komputer UI 5
Working with Frequency Domain - use discrete cosine transform or discrete fourier transform to convert from wave spatial signal to frequency domain; in matlab we could use fft function transform = fft(a, fs) fs = the number of sample frequency misal transform = fft (a, 41500) Learning Introductory Signal Processing Using Multimedia 6
SOUND with AUDACITY Demonstrated in class