Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Equalizer play() function with GUI

조회 수: 1 (최근 30일)
Hassan Bosha
Hassan Bosha 2019년 2월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
function play_Callback(hObject, eventdata, handles)
% hObject handle to play (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global stop file_name C;
stop=1;
equalizer_play();
function equalizer_play()
global stop file_name C;
[x,Fs]= audioread(file_name);
[a,b]=coef();
l_piece=2*Fs;
Nb=round(length(x)/l_piece);
y=0;
for i=1:floor(Nb)
piece=x((i-1)*l_piece+1:i*l_piece);
for k=1:5
y=y+filter(10^(C(k)/20)*b{k},a{k},piece);
if(stop==0)
break;
end
end
p = audioplayer(y, Fs);
playblocking(p);
y=0;
if(stop==0)
break;
end
end
I want to understand what are the functions and the equations refer to in such code
it's an audio digital equalizer

답변 (0개)

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by