diff --git a/src/DarellPitchEnvelope.m b/src/DarellAmplitudeEnvelope.m similarity index 88% rename from src/DarellPitchEnvelope.m rename to src/DarellAmplitudeEnvelope.m index f0922ca..985c347 100644 --- a/src/DarellPitchEnvelope.m +++ b/src/DarellAmplitudeEnvelope.m @@ -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; diff --git a/src/Main_test.m b/src/Main_test.m index 895ca53..b6de4b4 100644 --- a/src/Main_test.m +++ b/src/Main_test.m @@ -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)