FM Oscillator × Stable Audio 3.
A real-time FM synthesizer whose modulator is a generated Stable Audio 3 clip.

Project Details

@maxfieldhulkerSAI
Builder since 2026
- Published
- 11/05/2026
- Model
- Stable Audio 3.0 Large
- Hosting
- API
Endpoints Used
- Text to Audio
What It Does
A real-time FM synthesizer whose modulator is a generated Stable Audio 3 clip. The clip drives the carrier two ways at once:
- Audio-rate: the raw waveform is looped and fed directly into the carrier's frequency AudioParam (classic Web Audio FM, no custom DSP).
- Control-rate: an RMS amplitude envelope and a spectral-centroid ("brightness") envelope are extracted from the clip and used to modulate the FM depth, filter cutoff, and stereo pan, phase-locked to the clip's loop.
Code Snippets
curl -X POST https://api.stability.ai/v2beta/audio/stable-audio/text-to-audio \ -H "Authorization: Bearer $STABILITY_API_KEY" \ -F model=stable-audio-3 \ -F prompt="A punchy lo-fi drum loop with dusty vinyl crackle, 90 BPM." \ -F duration=30 \ -o result.mp3
How It Uses Stable Audio
Text to Audio
Generates audio from a text prompt.



