Merge pull request #6 from ltcptgeneral/DarellsAnnex
Renamed PitchEnvelope to Amplitude
This commit is contained in:
commit
23503ed282
@ -1,4 +1,4 @@
|
||||
function output = DarellPitchEnvelope(input, Fs, attack,decay,sustain,release) %percentages for attack, decay, sustain, release
|
||||
function output = DarellAmplitudeEnvelope(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 = DarellPitchEnvelope(x, fs, attack,decay,sustain,release); %output new sound in time domain
|
||||
x = DarellAmplitudeEnvelope(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