Introduction to Nyquist and Lisp Programming
2 days ago
- #Audacity
- #Nyquist
- #Lisp
- Nyquist is a programming language used to write plugin effects for Audacity.
- Nyquist supports both Lisp and SAL syntax, with Audacity 2.0 supporting both.
- Nyquist is based on Lisp, where everything is an S-Expression (a list of tokens enclosed in parentheses).
- Lisp uses prefix notation for math functions, e.g., (* 3 7) instead of 3*7.
- Functions in Lisp are defined using 'defun', e.g., (defun circlearea (radius) (* 3.14159 (expt radius 2))).
- Lists in Lisp are manipulated using functions like 'first', 'rest', 'list', and 'append'.
- Common Lisp math functions include addition (+), subtraction (-), multiplication (*), division (/), and exponentiation (expt).
- Conditional expressions in Lisp include 'if', 'when', 'unless', 'cond', and 'case'.