
[data,rate] = wavread('noCry');
plot(data)
shg
sound(data,rate)
pause(length(data)/rate)

title('Enter n breakpoints left to right')
[x,y] = ginput(4)
nSegments = length(x)-1;

C = cell(nSegments,1);
for k=1:nSegments
   First = round(x(k));
   Last =  round(x(k+1)-1);
   z = data(First:Last);
   C{k} = z;
end 

v = [];
for k=1:nSegments
    v = [C{k}; v];
end
sound(v,rate)
pause(length(v)/rate)


    
    
