您好,欢迎访问三七文档
当前位置:首页 > 临时分类 > 基于Matlab的声音信号采集与分析处理
:100622475(2005)0620091202:2004209213:(19792),,,,,:Matlab,,(,330013):Matlab,,Matlab:;Matlab;:TP391.42:ACollectingandProcessingofSoundSignalwithMatlabCHENJia2yan,CHENDong2jiao,ZHANGDa2xiang(Mechanical&ElectricalEngineeringDepartment,EastChinaInstituteofTechnology,Nanchang330013,China)Abstract:ThemethodofcollectingandprocessingofsoundsignalwithMatlabsoftwareisintroducedinthispaper,then,acaseofusingsoundsignaltodetectcrackeggsiscombinedfordeeplyanalyzingitsapplication.Keywords:collectingofsoundsignal;Matlab;analyzingoffrequency0,,Matlab,,Matlab,,Matlab1Matlabanaloginput(),ai=analoginput(ADAPTOR),,ADAPTOR,,ADAPTOR=win2sound,Addchannel(ai,1),1,[12],,A/D;set(ai,SampleRate,value),value,,Value=80001600044100;set(ai,SamplesPerTrigger,value),;set(ai,TriggerRepeat,value),value=0,value=1;set(ai,TriggerDelay,value),,value,;set(ai,TriggerType,value),:,,,set(ai,TriggerConditionValue,value)20056JISUANJIYUXIANDAIHUA118,,;set(ai,TimeOut,value)start(ai),,getdata(ai),,delete(ai)2,,,,,,,,(LPF)(HPF)(BPF)(BSF)Matlab,(),,Matlab,MatlabFilter()Filtfilt()Fftfilt()Filter2()y=filter(b,a,x)x,ba,,,,,,,,Periodogram()Psd()Csd()Pwelch(),Pyulear()Arburg()Pburg()pmtm()pmusic(),3,Matlab,,,,ai=analoginput(winsound);c1=addchannel(ai,1);set(ai,SampleRate,22050);;//start(ai)trycleardata,time;[data,time]=getdata(ai);catchtime=0;data=0;disp(Atimeoutoccured);endfigureplot(time,data,b);title();xlabel(Samples(64));ylabel();grid;%;%figureplot(s,b);title();xlabel((HZ));ylabel();grid;stop(ai);delete(ai);12,(),1,2(96)2920056memcpy((DWORD3)PidMapAddress+6,&stime,sizeof(SYS2TEMTIME));memcpy(&workpid,(DWORD3)PidMapAddress,sizeof(DWORD));memcpy(&mtime,(DWORD3)PidMapAddress+1,sizeof(SYSTEMTIME));if(!ReleaseMutex(PidFileMutex))exit(21);hMutex=OpenMutex(MUTEX-ALL-ACCESS,FALSE,workprocess);if(!hMutex){CreateProcess(NULL,d:\\c++\\de2bug\\work.exe,NULL,NULL,FALSE,CREATE-NEW-CON2SOLE,NULL,NULL,&si,&pi);continue;}CloseHandle(hMutex);if(mtime.wMinute==stime.wMinute+1)mtime.wSecond=mtime.wSecond+60;if(stime.wMinute==mtime.wMinute+1)stime.wSecond=stime.wSecond+60;if((mtime.wSecond2stime.wSecond10)&&(mtime.wSec2ond2stime.wSecond210))continue;if(!(hProcess=OpenProcess(PROCESS-ALL-ACCESS,false,workpid)))exit(21);TerminateProcess(hProcess,0);CloseHandle(hProcess);CreateProcess(NULL,d:\\c++\\debug\\work.exe,NULL,NULL,FALSE,CREATE-NEW-CONSOLE,NULL,NULL,&si,&pi);continue;}return0;},watchpro2cess,ProcessinfoPID,Processinfomu2texProcessinfo8:workprocess,,;,10,,,workprocess,Pro2cessinfoProcessinfomutex,,,(WindowsApplication),3,,:[1]ALWilliams.Windows2000[M].:,2001.[2]JeffreyRichter.Windows[M].:,2000.[3],,.VisualC++[M].:,2002.(92)4Matlab,:(1)Matlab,;(2)Matlab,,,,,Matlab,:[1].MATLAB[M].:,2001.[2].Matlab[M].:,2003.[3].MATLAB6[M].:,2002.[4].[M].:,2002.6920056
本文标题:基于Matlab的声音信号采集与分析处理
链接地址:https://www.777doc.com/doc-5484866 .html