1
0
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:
Leland Lucius
2015-04-07 22:10:17 -05:00
parent f88b27e6d8
commit 9fb0ce5b82
358 changed files with 26327 additions and 7043 deletions

View File

@@ -6,12 +6,12 @@
("double" "rise_factor" "exp(log(0.5) / (sndin->sr * risetime))")
("double" "fall_factor" "exp(log(0.5) / (sndin->sr * falltime))"))
(CONSTANT "fall_factor" "rise_factor")
(ALWAYS-SCALE sndin)
(TERMINATE (MIN sndin))
(INNER-LOOP " sample_type current = sndin;
if (current > value) {
value = current - (current - value) * rise_factor;
} else {
value = current - (current - value) * fall_factor;
}
output = (sample_type) value;"))
(INNER-LOOP "sample_type current = sndin;
if (current > value) {
value = current - (current - value) * rise_factor;
} else {
value = current - (current - value) * fall_factor;
}
output = (sample_type) value")
)