1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00
2010-01-24 09:19:39 +00:00

16 lines
407 B
Plaintext

(SLOPE-ALG
(NAME "slope")
(ARGUMENTS ("sound_type" "input"))
(STATE ("sample_type" "prev" "0.0F")
("double" "scale" "input->sr * input->scale"))
(INTERNAL-SCALING input)
(CONSTANT "scale")
(DELAY 1)
(START (MIN input))
(INNER-LOOP "{ register sample_type x = input;
output = (sample_type) ((x - prev) * scale);
prev = x;}")
(TERMINATE (MIN input))
(LOGICAL-STOP (MIN input))
)