Anonymous user
Sine wave: Difference between revisions
→{{header|Emacs Lisp}}
(→{{header|Delphi}}: add Emacs Lisp) |
|||
Line 126:
<lang lisp>(defun play-sine (freq dur)
"Play a sine wave for dur seconds."
(setq header (
(setq s (apply #'concat header (mapcar (lambda (x) (unibyte-string
(mod (+ 128 (round (+ 128 (* 127 (sin
|