NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Demonstration of Different Functions in Terms of Fractal, Frequency Modulation and Vibrato based on Nyquist

Yanxi LiHighlights 2023

TL;DR

This paper provides a technical deep-dive into implementing complex musical structures—specifically fractal patterns, frequency modulation, and vibrato—using the Nyquist programming language. By bridging the gap between mathematical theory and algorithmic composition, the author demonstrates how low-level "unit generators" can be used to synthesize professional-grade audio effects from scratch.

What Problem Does This Paper Address?

While modern Digital Audio Workstations (DAWs) allow musicians to create complex sounds by clicking buttons, the underlying logic remains a "black box" to many. For computer music researchers, there is a need to understand the fundamental operating principles of sound synthesis to gain more creative control and flexibility.

The author tackles the challenge of translating abstract concepts—like the self-similarity of fractals or the physics of vibrato—into functional code within the Nyquist environment. The goal is to provide a clear pedagogical framework for how these effects are constructed, which can then be applied to other programming environments like Max/MSP.

Methods

The research utilizes Nyquist, a compiler and programming language for sound synthesis and computer music based on the Lisp language. The author employs several key programming techniques:

  • Unit Generators: The building blocks of the synthesis, including oscillators, envelopes, and multipliers.
  • Recursive Algorithms: Used specifically for fractal music to create self-similar structures (inspired by the Sierpinski Triangle) where layers are divided and transposed recursively.
  • Piece-wise Linear (PWL) Functions: The author demonstrates the use of pwl and its variants (pwlv for non-zero starts, pwev for exponential interpolation, and pwlr for relative intervals) to control the "envelope" or dynamic shape of a sound.
  • Low-Frequency Oscillators (LFOs): Used to modulate amplitude and frequency to create natural-sounding vibrato.
  • Lazy Evaluation: A feature of Nyquist highlighted for its ability to handle large synthesis commands efficiently by processing data in small "chunks" to conserve memory.

Datasets

Not discussed in the paper. The work focuses on algorithmic generation and synthesis rather than training on or evaluating against external datasets.

Key Insights and Ideas

  • The "Natural" Vibrato Offset: A significant insight is that simply multiplying a signal by an LFO often sounds "super unnatural" because the fluctuation is too extreme. The author demonstrates that adding an offset (e.g., 2 + lfo(6)) creates a much smoother, more musical result.
  • Harmonious Fractals: Fractal music is often associated with chaotic or random outputs. However, the author shows that by using conditional logic to distinguish between "odd" and "even" inputs in a loop, one can generate fractal music that adheres to classical harmonic structures, such as major 9th chords.
  • Avoiding the "Beep": The paper emphasizes that raw synthesized notes often end with an amateurish "beep." The implementation of PWL functions is presented as the essential "professionalizing" step, allowing notes to quietly begin and smoothly fade.
  • Logic over Timbre: The author argues that for computer musicians, the goal isn't always to mimic classical instruments perfectly, but to generate music where the "meaning" is derived from the code and logic itself.

Key Results

  • Fractal Demos: The author successfully produced three pseudo-code frameworks: Random Fractal (for stochastic scales), Harmonious Fractal (for chord-based structures), and Combined Fractal (mixing randomness with theorem-based rules).
  • Frequency Modulation Visualization: The paper provides clear visual mappings (plots) of how different PWL variants affect signal intensity over time, proving that pwev provides a more natural exponential decay compared to standard linear functions.
  • Vibrato Control: The study demonstrates that a 6Hz LFO can be manipulated to produce different "depths" of vibrato, showing that shallower vibrato is often more effective for realistic instrumental synthesis.

Limitations and Future Work

  • Syntax Barriers: The author acknowledges that Nyquist’s unique Lisp-based syntax is a hurdle for those used to other programming languages.
  • Timbre Scarcity: Compared to modern commercial software, Nyquist lacks a diverse library of built-in timbres, requiring the user to build every sound "from the ground up."
  • Lack of Automation: Currently, the process requires repetitive manual coding. The author suggests that future work should integrate NIME (New Interfaces for Musical Expression) and ISMIR (Music Information Retrieval) techniques to allow the system to analyze and generate music more autonomously, rather than relying on static parameters.

Summary updated

BibTeX
@inproceedings{li2023demonstration,
  author = {Yanxi Li},
  title = {{Demonstration of Different Functions in Terms of Fractal, Frequency Modulation and Vibrato based on Nyquist}},
  booktitle = {Highlights},
  year = {2023},
  doi = {10.54097/hset.v39i.6492},
}
Figure