Update to Envelope
Renamed as pitchenvelope
This commit is contained in:
parent
e3c4b4931d
commit
ee7e34eb75
@ -1,4 +1,4 @@
|
||||
function output = DarellEnvelope(input, Fs, attack,decay,sustain,release) %percentages for attack, decay, sustain, release
|
||||
function output = DarellPitchEnvelope(input, Fs, attack,decay,sustain,release) %percentages for attack, decay, sustain, release
|
||||
len = length(input);
|
||||
T = (len-1)/Fs;
|
||||
attacktime = attack * T * Fs;
|
@ -29,7 +29,7 @@ decay = 0.2;
|
||||
sustain = 0.2;
|
||||
release = 0.1;
|
||||
|
||||
x = DarellEnvelope(x, fs, attack,decay,sustain,release);
|
||||
x = DarellPitchEnvelope(x, fs, attack,decay,sustain,release); %output new sound in time domain
|
||||
%play over 5 counts, should only hear 200hz
|
||||
playtime = 5;
|
||||
play_continuous(x, fs, playtime)
|
||||
|
Reference in New Issue
Block a user