audio .wav pdf

7
Asignatura: Simulación en Ingeniería. Profesor MIE. Idriss Sandoval V. POR: EST . MICHAEL QUINTERO T AMAYO  ING. ELECTRONICA UDI  AUDIO WA V Elaborada Por: MICHAE !"I#$E%& $ AMA' &. INTRODUCCION E(isten diferentes ti)os de arc*ivos de sonido: En las a)licaciones multimedia los m+s ut il i, ados son: .-A V. Es el formato est+ndar de -i ndos )ara almacenar el sonido. Estos arc*ivos tienen como venta/a fundamental su gran calidad de sonido0 1 como )rinci)al inconveniente el 2ue necesitan muc*o es)acio )ara su almacenamiento en disco. Permiten almacenar cual2uier ti)o de sonido: locución0 m3sica0 4 .MP5. Este formato0 al igual 2ue otros0 surgió )or la necesidad de conseguir arc*ivos de sonido menos 6)esados70 esto es 2ue ocu)aran menos es)acio en disco. $ienen )or tanto como venta/a su me/or almacenamiento 1 m+s r+)ida descarga0 )ermitiendo mantener una calidad ó)tima del sonido. Al igual 2ue los arc*ivos -AV0 los MP5 )ermiten almacenar cual2uier ti)o de sonido.

Upload: maikol-quintero

Post on 10-Jan-2016

229 views

Category:

Documents


1 download

DESCRIPTION

reproductor de audio con matlab y espectros de frecuencias

TRANSCRIPT

Page 1: Audio .Wav PDF

7/18/2019 Audio .Wav PDF

http://slidepdf.com/reader/full/audio-wav-pdf 1/7

Asignatura: Simulación en Ingeniería.Profesor MIE. Idriss Sandoval V.

POR: EST. MICHAEL QUINTERO TAMAYO

  ING. ELECTRONICA UDI

  AUDIO WAV

Elaborada Por: MICHAE !"I#$E%& $AMA'&.

INTRODUCCION

E(isten diferentes ti)os de arc*ivos de sonido: En las a)licaciones multimedia

los m+s utili,ados son: .-AV. Es el formato est+ndar de -indos )ara

almacenar el sonido. Estos arc*ivos tienen como venta/a fundamental su gran

calidad de sonido0 1 como )rinci)al inconveniente el 2ue necesitan muc*o

es)acio )ara su almacenamiento en disco. Permiten almacenar cual2uier ti)o

de sonido: locución0 m3sica0 4 .MP5. Este formato0 al igual 2ue otros0 surgió)or la necesidad de conseguir arc*ivos de sonido menos 6)esados70 esto es

2ue ocu)aran menos es)acio en disco. $ienen )or tanto como venta/a su me/or

almacenamiento 1 m+s r+)ida descarga0 )ermitiendo mantener una calidad

ó)tima del sonido. Al igual 2ue los arc*ivos -AV0 los MP5 )ermiten almacenar

cual2uier ti)o de sonido.

Page 2: Audio .Wav PDF

7/18/2019 Audio .Wav PDF

http://slidepdf.com/reader/full/audio-wav-pdf 2/7

PROCEDIMIENTO

DESCRIPCION

a siguiente interfa, nos )ermite ingresar a re)roducir un arc*ivo .av0 la cual

)odemos elegir en unos de los buttons creados llamado 6seleccionar arc*ivo70

donde )odemos ingresar 1 buscar el arc*ivo 2ue deseamos re)roducir0 1a

teniendo nuestro arc*ivo seleccionado lo )odemos re)roducir0 teniendo

encuenta 2ue tambien tiene una o)cion de )arada con un buttons0 otra o)cion

2ue tiene la interfa, son una serie de )rocesos 2ue le )odemos a)licar a la

se8al 2ue se esta re)roduciendo donde la se8al se )uede visuali,ar en el a(es

de la interfa,0 la cual interactua de)endiendo la o)cion 2ue se le seleccione.

A continuación se podrá ver e códi!o e"ecutado en #ata$%

function wav_OpeningFcn(hObject, eventdata, handles, varargin)% This function has no output args, see OutputFcn.% hObject handle to figure% eventdata reserved - to be defined in a future version of !T"!#% handles structure with handles and user data (see $&'!T!)% varargin coand line arguents to wav (see !*!*$&+)airead(ele.jpg)iage(a)a/is off

% 0hoose default coand line output for wavhandles.output hObject

 % pdate handles structureguidata(hObject, handles)

 % &1!&T a2es wav wait for user response (see &*343)% uiwait(handles.figure5)

 

% --- Outputs fro this function are returned to the coand line.function varargout wav_OutputFcn(hObject, eventdata, handles)% varargout cell arra6 for returning output args (see !*!*$OT)

% hObject handle to figure% eventdata reserved - to be defined in a future version of !T"!#% handles structure with handles and user data (see $&'!T!)

 % $et default coand line output fro handles structurevarargout758 handles.output

 

% --- 3/ecutes on button press in seleccion.

Page 3: Audio .Wav PDF

7/18/2019 Audio .Wav PDF

http://slidepdf.com/reader/full/audio-wav-pdf 3/7

function seleccion_0allbac2(hObject, eventdata, handles)

global 6 Fs nbits 9nobre ruta:uigetfile(;.wav,!#*&* !'&O)

if nobre<  returnelse  96,Fs,nbits: wavread(9ruta nobre:)

 end

 % hObject handle to seleccion (see $0#O)% eventdata reserved - to be defined in a future version of !T"!#% handles structure with handles and user data (see $&'!T!)

 

% --- 3/ecutes on button press in pla6.function pla6_0allbac2(hObject, eventdata, handles)global 6 Fs nbitssound(6,Fs,nbits)

 subplot(5,5,5),plot(6),grid on, =oo,title(43>!" 0O+T&+! '3" 4O+&'O)

 % hObject handle to pla6 (see $0#O)% eventdata reserved - to be defined in a future version of !T"!#% handles structure with handles and user data (see $&'!T!)

 

% --- 3/ecutes on button press in stop.function stop_0allbac2(hObject, eventdata, handles)clear pla6snd sound

 % hObject handle to stop (see $0#O)% eventdata reserved - to be defined in a future version of !T"!#% handles structure with handles and user data (see $&'!T!)

 

% --- 3/ecutes on button press in espectro.function espectro_0allbac2(hObject, eventdata, handles)

global 6

/fft(6)a/.;conj(/)f(5<<?@<<<)subplot(5,5,5),plot(f,a(5?AB<5)),grid on, =oo,title(34C30T*O '3 "!43>!")%filtro (f,a(5?AB<5))% hObject handle to espectro (see $0#O)% eventdata reserved - to be defined in a future version of !T"!#

Page 4: Audio .Wav PDF

7/18/2019 Audio .Wav PDF

http://slidepdf.com/reader/full/audio-wav-pdf 4/7

% handles structure with handles and user data (see $&'!T!)

 

% --- 3/ecutes on button press in ste.

function ste_0allbac2(hObject, eventdata, handles)global 6n<?(length(6)-5)subplot(5,5,5),ste(n,6),grid on, =oo,title(43>!" '&40*3T!)% hObject handle to ste (see $0#O)% eventdata reserved - to be defined in a future version of !T"!#% handles structure with handles and user data (see $&'!T!)

 

% --- 3/ecutes on button press in filtro. 

% --- 3/ecutes on button press in die=ado.

function die=ado_0allbac2(hObject, eventdata, handles)global 6

die=ado6(5?A?length(6))%filtro(die=ado)subplot(5,5,5),plot(die=ado),grid on, =oo,title('&3D!'O)% hObject handle to die=ado (see $0#O)% eventdata reserved - to be defined in a future version of !T"!#% handles structure with handles and user data (see $&'!T!)

 

% --- 3/ecutes on button press in ventanado.function ventanado_0allbac2(hObject, eventdata, handles)global 6hhaing(length(6))/6.;h

subplot(@,5,5),plot(6),grid on, =oo,title(sonido.wav)subplot(@,5,A),plot(h),grid on, =oo,title(ventana haing)subplot(@,5,@),plot(/),grid on, =oo,title(ultiplicacion de sonido conla ventana haing)

% hObject handle to ventanado (see $0#O)% eventdata reserved - to be defined in a future version of !T"!#% handles structure with handles and user data (see $&'!T!)

 

Page 5: Audio .Wav PDF

7/18/2019 Audio .Wav PDF

http://slidepdf.com/reader/full/audio-wav-pdf 5/7

% --- 3/ecutes on button press in filtro.function filtro_0allbac2(hObject, eventdata, handles)global 6nu95 5 5:

den95 < -<.5:6Afilter(nu,den,6)t 5?length(6)subplot(A,5,5),plot(t,6,-),grid on, =oo,title(43>!" O*&$&+!")subplot(A,5,A),plot(t,6A,-),grid on, =oo,title(F&"T*O)% hObject handle to filtro (see $0#O)% eventdata reserved - to be defined in a future version of !T"!#% handles structure with handles and user data (see $&'!T!)

ANE&OS

Page 6: Audio .Wav PDF

7/18/2019 Audio .Wav PDF

http://slidepdf.com/reader/full/audio-wav-pdf 6/7

Page 7: Audio .Wav PDF

7/18/2019 Audio .Wav PDF

http://slidepdf.com/reader/full/audio-wav-pdf 7/7