Have you ever heard of a musical programming language?
Have you ever heard of a musical programming language?
This is one of my coolest Rust projects, and I'm now making it open source! It's called Sonara, and the idea is simple:
what if you could write music the same way you write code? Edit it, version it with git, share it, collaborate?
Example music.son:
tempo 120 // song speed (BPM)
scale C_major // musical scale
section verse {
melody { E4 G4 A4 G4 } // melody notes
chords { C | Am | F | G } // chords
drums { kick snare kick snare } // drums
}
sonara build music.son build to music.mp3
One command, compiles straight to .mp3.
It's a much simpler way to compose music and generate variations using AI.
The language is open source, runs on Linux, Mac and Windows, and already has built-in examples. Feel free to contribute!