This preview shows page 1. Sign up to view the full content.
Unformatted text preview: D = linspace(0.6, 0.5,(length(sig)*0.05)); %drop of 5% of signal S = linspace(0.5, 0.5,(length(sig)*0.4)); %delay of 40% of signal R = linspace(0.5, 0,(length(sig)*0.35)); %drop of 35% of signal R ADSR = [A D S R] ; %make a matrix A dif = length(sig) - length(ADSR); %find out the difference d x = cat(2, ADSR, zeros(1,dif)); %concatenates a horrizontal (2) ADSR + the difference of ADSR and the signal d xx = sig .* x; %times them together...
View Full Document
This note was uploaded on 04/15/2010 for the course ECTE 906 taught by Professor Pd during the Three '10 term at University of Wollongong, Australia.
- Three '10