Merge pull request #6 from ltcptgeneral/DarellsAnnex

Renamed PitchEnvelope to Amplitude
This commit is contained in:
darrll27 2021-12-02 20:12:16 -08:00 committed by GitHub
commit 23503ed282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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)