lab5.m File Reference

Go to the source code of this file.

Functions

 sound (x3, Fs) = wavread(hfile)
 
 wavwrite (y, Fs3,'__RealRhodesSounds_D4.wav')
 
id binremainder: (id binremainder)
 
main lobe (real value) bins to read%lmag
 
lobe magnitudes figure plot (lmag)
 
 plot (y)
 
figure plot (y1)
 
 wavwrite (y, Fs3,'fugue1.wav')
 
 wavwrite (y, Fs3,'female1.wav')
 
 wavwrite (y, Fs3,'piano1.wav')
 

Variables

clear all Piano sound hfile = '4192__RealRhodesSounds__D4.wav'
 
 y = sinemodel_(x3, hamming(513)', 1024, 100,-35)
 
Compute the magnitude values on the to of the main lobe loc =0
 
 mag =0
 
 binremainder = round(loc)-loc
 
Compute a spectrum of size N from a series of sinusoidal values Y = genspecsines([10.3, 20.6, 30.9], [-10, -13, -16], [0, 0, 0], 1024)
 
the sinusoids Y1 = (-10)*exp(1*i)
 
 y1 =ifft(Y1)
 
 Y2 = (-13)*exp(1*i)
 
 y2 =fftshift(real(ifft(Y2)))
 
 Y3 = (-16)*exp(1*i)
 
 y3 =fftshift(real(ifft(Y3)))
 
add the sinusoids in the time domain ytime = y1+y2+y3
 

Function Documentation

id binremainder: ( id  binremainder)
virtual
main lobe ( real  value)
lobe magnitudes figure plot ( lmag  )
plot ( y  )
figure plot ( y1  )
sound ( x3  ,
Fs   
) = wavread(hfile)
wavwrite ( y  ,
Fs3  ,
'__RealRhodesSounds_D4.wav'   
)
wavwrite ( y  ,
Fs3  ,
'fugue1.wav'   
)
wavwrite ( y  ,
Fs3  ,
'female1.wav'   
)
wavwrite ( y  ,
Fs3  ,
'piano1.wav'   
)

Variable Documentation

binremainder = round(loc)-loc

Definition at line 16 of file lab5.m.

Soprano hfile = '4192__RealRhodesSounds__D4.wav'

Definition at line 5 of file lab5.m.

Compute the magnitude values on the to of the main lobe loc =0

Definition at line 13 of file lab5.m.

mag =0
y = sinemodel_(x3, hamming(513)', 1024, 100,-35)

Definition at line 8 of file lab5.m.

Compute a spectrum of size N from a series of sinusoidal values Y = genspecsines([10.3, 20.6, 30.9], [-10, -13, -16], [0, 0, 0], 1024)

Definition at line 26 of file lab5.m.

Y3 = (-16)*exp(1*i)

Definition at line 35 of file lab5.m.

y3 =fftshift(real(ifft(Y3)))

Definition at line 35 of file lab5.m.

Referenced by decode_frame().

add the sinusoids in the time domain ytime = y1+y2+y3

Definition at line 37 of file lab5.m.