Skip to main content

Teensy Audio — Overview

The single largest module family in NodeBlue is the Audio library — over 70 modules wrapping the Teensy Audio Library, Paul Stoffregen's exceptional real-time audio framework for Teensy 3.x / 4.x boards. With it you can build effects pedals, polyphonic synthesisers, multichannel mixers, audio analysers and full-blown DSP processors entirely on a USB-powered board.

This page is an overview — what's in the family, what each sub-group does, where to start. Each module deserves its own deep dive that this batch can't fit; the goal here is to make the lay of the land clear.

Hardware prerequisites​

The Teensy Audio Library runs on Teensy boards only — concretely Teensy 3.2 / 3.5 / 3.6 (older, still supported) and Teensy 4.0 / 4.1 (current). Audio I/O typically goes through one of the supported codec shields / breakouts:

Codec / hardwareNotes
SGTL5000 (Teensy Audio Shield)The most common — small breakout that mates with Teensy 3.x or 4.x. Stereo line in / out, headphone amp.
CS424488 in / 6 out (or 6 in / 8 out) multichannel codec — used for surround-sound work.
WM8731, AK4558, CS4272Other studio-grade codecs supported by the library.

Boards without these (Arduino, SAMD21, nRF52) can't run the Teensy audio library — pick a Teensy and a codec board.

The seven families​

The audio modules group into seven logical families. The category name in the palette starts with the family name so they're easy to scan:

FamilyCategory prefixExamplesWhat it does
InputAudioInput-*I²S, USB, ADC, analogAudio coming into the board from a microphone, line-in, USB host, ADC, etc.
OutputAudioOutput-*I²S, USB, DAC, PWMAudio going out to the codec, USB host, internal DAC, PWM.
SynthAudioSynth-*Waveform, Sine, NoiseWhite, KarplusStrong, WavetableSound-generating sources (oscillators, noise, plucked strings, sample-based synths).
EffectAudioEffect-*Reverb, Chorus, Flange, Delay, Bitcrusher, Envelope, Fade, GranularProcess audio — modulation, time-based effects, dynamics, distortion.
MixerAudioMixer-*4-channel mixerCombine several audio streams into one, with per-input gain.
AnalyzeAudioAnalyze-*RMS, Peak, FFT256, FFT1024, NoteFrequency, ToneDetectInspect a signal — peak level, RMS, spectrum, dominant note, specific-tone presence.
ControlAudioControl-*SGTL5000, CS42448, WM8731Configure the codec chip itself (volume, input selection, line gain).
Play / RecordAudioPlay-*, AudioRecord-*SD card playback, raw recordingStreaming from / to storage (SD card, memory).

Signal flow​

An audio NodeBlue project always has at least one Input or Synth (something producing samples) and at least one Output (somewhere to send them). Everything in between is optional shaping — Mixers, Effects, Analyzers.

A minimal example:

AudioSynthWaveformSine (oscillator at 440 Hz) → AudioOutputI2S (route to the codec) → headphones.

A guitar pedal-ish example:

AudioInputI2S (mic / line in from the codec) → AudioEffectBitcrusher → AudioEffectFreeverbStereo → AudioOutputI2S.

The patches you build with these modules look identical in shape to the GUI Patcher distributed by Teensy — same blocks, same wires, same DAC under the hood — except they live alongside the rest of your NodeBlue project (control logic, MIDI, NRF24, dashboard) on a single canvas, not in two parallel tools.

Codec configuration​

The codec is a separate chip from the audio path; it needs its own configuration block. Drop in the matching AudioControl module (e.g. AudioControlSGTL5000 for the Teensy Audio Shield) and set:

ParameterEffect
Input sourceLINE_IN or MIC.
Mic gain / line levelAnalog input gain (some codecs have a per-input PGA).
HP volumeHeadphone output level.
Line volumeLine output level.

You only need one control module per codec — every AudioInput / AudioOutput module that talks to that codec uses its current settings.

A handful of practical patches to crib​

Further reading​

The Teensy Audio Library has excellent first-party documentation at pjrc.com/teensy/td_libs_Audio.html, including a per-module reference. NodeBlue's modules wrap that library directly, so the underlying behaviour and tuning notes there apply verbatim to the NodeBlue versions — only the visual presentation changes.


From here the tutorials branch into the user-facing peripheral families: HID devices (keyboards, gamepads, joysticks), Motors and motor drivers, and Sim-racing wheels. SimHub integration and the FFB engine — also large, deep topics — have dedicated tutorials still to come.