From ee7e34eb75f066fec8af693f7396484d0abb26ee Mon Sep 17 00:00:00 2001 From: Darell Chua Yun Da Date: Thu, 2 Dec 2021 14:19:52 +0800 Subject: [PATCH] Update to Envelope Renamed as pitchenvelope --- src/{DarellEnvelope.m => DarellPitchEnvelope.m} | 2 +- src/Main_test.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/{DarellEnvelope.m => DarellPitchEnvelope.m} (88%) diff --git a/src/DarellEnvelope.m b/src/DarellPitchEnvelope.m similarity index 88% rename from src/DarellEnvelope.m rename to src/DarellPitchEnvelope.m index ad6b37f..f0922ca 100644 --- a/src/DarellEnvelope.m +++ b/src/DarellPitchEnvelope.m @@ -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; diff --git a/src/Main_test.m b/src/Main_test.m index 0f1beb8..140b7d8 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 = 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)