File: recip.alg

package info (click to toggle)
nyquist 3.24%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 58,156 kB
  • sloc: ansic: 74,757; lisp: 18,169; java: 10,942; cpp: 6,688; sh: 175; xml: 58; makefile: 40; python: 15
file content (11 lines) | stat: -rw-r--r-- 279 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
(RECIP-ALG
  (NAME "recip")
  (ARGUMENTS ("sound_type" "s1"))
  (STATE ("double" "scale" "(1.0 / s1->scale)"))
  (INTERNAL-SCALING s1)
  (CONSTANT "scale")
  (START (MIN s1))
  (INNER-LOOP "output = (sample_type) (scale / s1)")
  (TERMINATE (MIN s1))
  (LOGICAL-STOP (MIN s1))
)