1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-28 16:23:49 +01:00

Move library tree where it belongs

This commit is contained in:
ra
2010-01-24 09:19:39 +00:00
parent e74978ba77
commit 58caf78a86
6020 changed files with 2790154 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
(ALPASSCV-ALG
(NAME "alpasscv")
(ARGUMENTS ("sound_type" "input") ("time_type" "delay") ("sound_type" "feedback"))
(START (MAX input feedback))
(STATE ("long" "delaylen" "max(1, round(input->sr * delay))")
("sample_type *" "delaybuf"
"(sample_type *) calloc (susp->delaylen, sizeof(sample_type))")
("sample_type *" "delayptr" "susp->delaybuf")
("sample_type *" "endptr" "susp->delaybuf + susp->delaylen"))
(CONSTANT "delaylen" "endptr")
(NOT-REGISTER delaybuf)
(LINEAR input)
(TERMINATE (MIN input))
(INNER-LOOP-LOCALS "register sample_type y, z, fb;\n")
(INNER-LOOP " y = *delayptr;
*delayptr++ = z = (sample_type) ((fb = feedback) * y + input);
output = (sample_type) (y - fb * z);
if (delayptr >= endptr) delayptr = susp->delaybuf;")
(FINALIZATION "free(susp->delaybuf);")
)