Back to Syllabus
Chapter 10Creative Silicon - Verified

Procedural Audio & Human Vocal Formants

Generate musical chord frequencies, wave oscillators, ADSR envelopes, and Helmholtz human vocal formant resonances.

This lesson uses the verified core subset and links to a checked-in regression program. Its output is covered by the repository test harness. This does not imply support for features outside the lesson; see known limitations.

What you'll learn

✓Calculate musical note frequencies (C4, E4, G4)
✓Synthesize Sine, Square, and Triangle audio waves
✓Model human vocal tract formants (F1, F2)
✓Shape acoustic timbre with dynamic ADSR envelopes

Human Speech & Music by Pure Code

std/audio.aayu models human vowels by combining fundamental glottal vocal pulses with acoustic formant filters:

aayu
import "std/audio.aayu"

# Synthesize human vowel 'A' (F1=800Hz, F2=1200Hz)
let sample_a = synthesize_human_vowel_sample("A", 120.0, 0.005)
print("Vowel 'A' Formant Amplitude: " + sample_a)

# Apply dynamic ADSR envelope
let env = apply_adsr(0.015, 0.5, 0.02, 0.05, 0.7, 0.05)
print("Envelope at 15ms: " + env)

Synthesizes natural sound entirely without external DSP runtimes.

Try It Yourself! 🚀

Synthesize vowel 'O' (F1=500Hz, F2=850Hz) and compare its amplitude response at t=0.005s with vowel 'A'.