mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-05 16:43:52 +01:00
Update Nyquist to v3.09.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
(ALPASSCV-ALG
|
||||
(NAME "alpasscv")
|
||||
(ARGUMENTS ("sound_type" "input") ("time_type" "delay") ("sound_type" "feedback"))
|
||||
(SAMPLE-RATE (MAX input))
|
||||
(START (MAX input feedback))
|
||||
(STATE ("long" "delaylen" "max(1, round(input->sr * delay))")
|
||||
("sample_type *" "delaybuf"
|
||||
@@ -11,11 +12,12 @@
|
||||
(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;")
|
||||
(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);")
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user