Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
802 B
2
Indexable
Never
%to jest main

global y Fs 

[y,Fs]=audioread("matlab.wav");

y=y(1:(Fs*2),:);

hObj(1)=figure;
hObj(2)=uicontrol('Style','popupmenu',...
                  'String','>- wav|<- wav',...
                  'Callback','Funkcja_10(y,Fs,hObj)',...
                  'Units','normalized',...
                  'Position',[0.01 0.01 0.2 0.2]);
hObj(3)=uicontrol('Style','slider', 'Callback', 'Funkcja_2(1)','Units','normalized','Position',[0.01 0.21 0.03 0.6]);
hObj(4)=plot(y(1:300,1),'-k.'); grid on; hold on
hObj(5)=plot(y(1:300,2),'-g.');
hObj(6)=uicontrol("Style","pushbutton",'String','save','Callback','ReadFile()','Units','normalized','Position',[0.01 0.9 0.1 0.1]);
hObj(7)=uicontrol("Style","pushbutton",'String','open','Callback','OpenFile(hObj)','Units','normalized','Position',[0.01 0.8 0.1 0.1]);