% 
% Overdrive example simple call of DAFX symclip function

close all;
clear all;

filename='acoustic.wav';

% read the sample waveform
[x,Fs] = audioread(filename);

y = symclip(x);

% write output
audiowrite('out_overdrive.wav', y,Fs);

figure(1);


hold on
plot(y,'r');

plot(x,'b');

title('Overdriven Signal');