mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-10 14:46:24 +01:00
Move library tree where it belongs
This commit is contained in:
12
lib-src/libnyquist/nyquist/tran/integrate.alg
Normal file
12
lib-src/libnyquist/nyquist/tran/integrate.alg
Normal file
@@ -0,0 +1,12 @@
|
||||
(INTEGRATE-ALG
|
||||
(NAME "integrate")
|
||||
(ARGUMENTS ("sound_type" "input"))
|
||||
(START (MIN input))
|
||||
(TERMINATE (MIN input))
|
||||
(LINEAR input)
|
||||
(LOGICAL-STOP (MIN input))
|
||||
(STATE ("double" "integral" "0.0;
|
||||
scale_factor = (sample_type) (scale_factor / input->sr)"))
|
||||
(INNER-LOOP "output = (sample_type) integral; integral += input;")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user