mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-07 15:22:34 +02:00
12 lines
289 B
Plaintext
12 lines
289 B
Plaintext
(SQRT-ALG
|
|
(NAME "sqrt")
|
|
(ARGUMENTS ("sound_type" "input"))
|
|
(ALWAYS-SCALE input)
|
|
(START (MIN input))
|
|
(INNER-LOOP "{ sample_type i = input;
|
|
if (i < 0) i = 0;
|
|
output = (sample_type) sqrt(i); }")
|
|
(TERMINATE (MIN input))
|
|
(LOGICAL-STOP (MIN input))
|
|
)
|