Created a Pitch Envelope

App updated to work with pitch envelope. Works with Harmonic Offset. Added Equalizer GUI elements.

Still does not work with LFO and does not work with Equalizer.
This commit is contained in:
Darell Chua Yun Da
2021-12-07 07:25:21 +08:00
parent ef5b43b354
commit 0984b75d36
6 changed files with 125 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ x = x + generate_sine(amplitude, (frequency+5), phase, fs, duration, duty);
%play over 5 counts, should hear both frequencies, 5 beats per second between the 2 frequencies
playtime = 5;
play_continuous(x, fs, playtime)
%play_continuous(x, fs, playtime)
LOW = 0;
HIGH = frequency + 1;
@@ -22,7 +22,14 @@ x = DarellbandpassFilter(x,fs,LOW,MED,HIGH);
%play over 5 counts, should only hear 200hz
playtime = 5;
play_continuous(x, fs, playtime)
%play_continuous(x, fs, playtime)
attack = 0.2;
decay = 0.1;
sustain = 0.8;
release = 0.4;
x = DarellAnnePitchEnvelope(x, Fs, attack,decay,sustain,release);
attack = 0.2;
decay = 0.2;