image thumbnail

Waveform Generator GUI 2

by

 

22 Feb 2012 (Updated )

Generate waveformed signal and play it. Interactive GUI with movable datapoints.

add_to_buffer(src,eventdata,Fs,ao,po,pso,ic)
function add_to_buffer(src,eventdata,Fs,ao,po,pso,ic)
global pco
% d1=0.1*randn(pso,2);
% putdata(ao,d1);
x=(pso*(pco-1)+(0:pso-1))/Fs;
d1=ic.interpData(x,true)';
d2=[d1 d1];
putdata(ao,d2);
 pco=pco+1;




        

Contact us