Introduction
Preamble
Welcome 🦊
If you’re reading this, it’s likely because you care about how sound is made — not just what it sounds like, but how it emerges from code, from structure, from thought.
Devalang is not just a language. It’s an approach to sound. A way to compose audio with clarity, to experiment with rhythm and time, and to speak music fluently.
What is Devalang?
Devalang is a domain-specific language (DSL) built for audio composition and live performance.
It lets you define instruments, patterns, effects, and timing—all using a clear, musical syntax that feels natural to both musicians and programmers.
Core Strengths
- Declarative SyntaxDescribe what should happen, letting Devalang handle the details.
- Real-Time AudioRender, perform, and modify music live without waiting for exports.
- Modular & ReusableBuild sound components once, use them everywhere.
- Cross-PlatformWebAssembly-native: runs on Windows, macOS, Linux, and browsers.
Why Devalang?
Traditional DAWs excel at visual composition but lack code-like flexibility. Most music programming languages are verbose and disconnected from the sound design process. Devalang bridges this gap.
The Benefits
- Fast Prototyping: Write a beat in seconds without UI navigation
- Readable Code: Even after months away, your music code stays clear
- Precision Control: Every parameter is accessible and composable
- Live Performance: Modify patterns on-the-fly during a set
- Infinite Scalability: From a simple kick loop to generative symphonies
Your First Sound
Ready to hear what Devalang does? Here’s a minimal example:
This creates a simple sine wave synthesizer and plays two quarter-note C2s. In Devalang, every element chains naturally—no boilerplate.
