Sample accurate tones

Nyquist can produce tones that are accurate to the exact number of samples required.

For example, if you want to generate 441 samples of a 1kHz sine tone, you can use the following code in the “Nyquist Prompt” effect:

[cc lang=”lisp”]
(setq num 441)
(abs-env (sustain (/ num *sound-srate*)(hzosc 1000)))
[/cc]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.