>> tt=0:(1/(fs)):dur; >> yy=sin(2*pi*2000*tt); >> tt=0:(1/(2*fs)):dur; >> xx=sin(2*pi*2000*tt); >> sound(yy,fs); >> sound(xx,2*fs); xx sounds way smoother and not so painful on the ears.