Nyquist(1)
β¨ Nyquist β a whole manual page, bestie β¨
okay so you're looking at the General Commands Manual page for Nyquist and honestly? it's giving legendary. let's get into it π
π NAME π
Nyquist β a computer programming language for software sound synthesis and music composition πΉβ¨
π SYNOPSIS π
ny [OPTIONS]
like. that's it. that's the whole vibe. one command, endless bops π«Ά
πΈ DESCRIPTION πΈ
Nyquist is a language designed for digital sound synthesis and computer-assisted music composition. no cap. it's built on top of the XLISP implementation of the LISP programming language, so if you already fw LISP you're gonna feel right at home π
Nyquist is similar to other software synthesis languages such as Csound and cmusic. like, programs written in those languages invoke and arrange various audio synthesis functions which are employed by musically useful algorithms and control structures β but here's the iconic part: in Nyquist, instrument design and scoring syntax are completely integrated. periodt. no bouncing between files, it's all one gorgeous little world π
π¦ Example: the one-liner that ate
;; Make and play a sound
(play (osc 60))
This one-line program will call a Nyquist oscillator function to create a default sine wave with a default amplitude of 1.0 (normalized) and a pitch value of 60 (MIDI note number for middle C). The output from the oscillator is then sent to the system sound hardware for realtime play starting at the default delta-time of 0 and lasting for a default duration of 1 second. literally press enter and you have sound, obsessed πβ¨
π§ Example: build an instrument, play a scale
;; Create an instrument, play a scale with it
(defun note (pitch dur)
(osc pitch dur *table*))
(play (seq (note c4 i)
(note d4 i)
(note e4 i)
(note f4 i)
(note g4 i)
(note a4 i)
(note b4 i)
(note c5 q)))
This program first defines a note function that receives two parameters, pitch and dur (duration), and sends them to an oscillator. The oscillator applies the given pitch and duration to the waveform defined in the *table* global variable. The default waveform is a sine with an amplitude of 1. main character oscillator energy fr fr π
The seq function then sends a sequence of note statements to the play function for realtime audio output. In this example the pitch is indicated in a note-name/octave pair. Duration is expressed in symbols for conventional musical rhythmic units, i.e., i stands for an eighth note (quaver) and q stands for a quarter note (crotchet) π΅
Nyquist programs may be entered line by line at the program prompt or they can be saved and loaded as files. both. you can have both. slay π
β¨ OPTIONS β¨
-l filename.lspβ load a Nyquist program file, typically (but not necessarily) with an extension of.lsp. lowkey the only flag here and she's carrying the whole team π
π FILES π
- Examples and tutorial files are located in the
$NYQUIST_HOME/demosdirectory. go be nosy, it's encouraged π - HTML documentation is located in the
$NYQUIST_HOME/docdirectory. for when you want the lore in browser form πΈ
π BUGS π
Possibly, maybe, perhaps. π if you find any please report them to the authors. not me manifesting bugs into existence but also... yeah. tell somebody π«Ά
π TODO π
See the todo.txt file in the Nyquist top-level directory for the current TODO list. the girls are busy, the girls are planning π
π AUTHOR π
Nyquist is written by Roger B. Dannenberg <dannenberg@cs.cmu.edu>.
XLISP is written by David Betz <dbetz@xlisper.mv.com>.
two absolute icons, we stan πβ¨
π COPYRIGHT π
Copyright and license information for Nyquist:
Copyright 2000-2002, by Roger B. Dannenberg. All rights reserved.
Copyright and license information for XLISP:
Copyright 1984-2002, by David Michael Betz. All rights reserved.
See the license.txt file in the Nyquist top-level directory for complete licensing details. read it, bestie, it's the rules ππ
and that's the whole page!! π this one's dated November 2003 and it lives under the Nyquist(1) manual, so if you ever forget where you read all this iconic info, that's where to look π¦ bye bestie, go make some sounds π
π¦ where this page comes from
- debian bookworm: nyquist 3.20+ds-2
- debian trixie: nyquist 3.23+ds-1 Β· nyquist
- ubuntu jammy: nyquist 3.12+ds-4
- ubuntu noble: nyquist 3.22+ds-2 Β· nyquist
- ubuntu questing: nyquist 3.23+ds-1
- ubuntu resolute: nyquist 3.24+ds-2 Β· nyquist
- ubuntu stonking: nyquist 3.24+ds-2 Β· nyquist
- Copyright (c) 2003 Dave Phillips
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms