implemented generate_lullaby,
fixed DarellAnnePitchEnvelope printing statement
This commit is contained in:
parent
9b9e8852de
commit
d1707c95a4
@ -42,7 +42,6 @@ function output = DarellAnnePitchEnvelope(input, Fs, attack,decay,sustain,releas
|
|||||||
while tcounter <= curr
|
while tcounter <= curr
|
||||||
ncount = round(sustain*curr*(1-log(tcounter)/log(prevcur)) + prevcur);
|
ncount = round(sustain*curr*(1-log(tcounter)/log(prevcur)) + prevcur);
|
||||||
tcounter = round(tcounter);
|
tcounter = round(tcounter);
|
||||||
output(tcounter)
|
|
||||||
output(tcounter) = input(ncount);
|
output(tcounter) = input(ncount);
|
||||||
tcounter = tcounter+1;
|
tcounter = tcounter+1;
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user