How to detect key using pitch of audio ios app -
is there body can me in finding pitch of audio file. have code in pitch calculating via mic, want detect pitch signal , strength?
for need use avaudioplayer . give peakpowers pitch of audio . these peakpowers signal strength , can animation that.
audioplayer.meteringenabled = yes; [audioplayer updatemeters]; if([audioplayer ismeteringenabled] ){ (int currchannel = 0; currchannel < [audioplayer numberofchannels]; currchannel++) { //strength of audio channel nslog(@"channel# %d %0.2f %0.2f", currchannel, [audioplayer peakpowerforchannel:currchannel], [audioplayer averagepowerforchannel:currchannel]); } }
Comments
Post a Comment