File: fmfb-test.lsp

package info (click to toggle)
nyquist 3.20%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 58,008 kB
  • sloc: ansic: 74,743; lisp: 17,929; java: 10,723; cpp: 6,690; sh: 171; xml: 58; makefile: 40; python: 15
file content (14 lines) | stat: -rw-r--r-- 267 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; SND-FMFB ARGS: t0 hz sr index dur

(defun feedback-fm (pitch index d)
  (let ((hz (step-to-hz (+ pitch (get-transpose))))
        (dur (get-duration d)))
    (snd-fmfb (local-to-global 0)  hz *sound-srate*  index dur))) 


(play (feedback-fm a4  1.1 1))

(exit)