Turn your code into music! SONIFYSYS is an interactive web application that parses your source code and translates it into dynamic musical sequences using Tone.js and Shiki.
- Advanced Code Parsing: Powered by Shiki, the same engine running under VS Code, it analyzes code tokens with absolute precision, mapping keywords, variables, primitives, and punctuation to specific musical elements.
- Auto Language Detection: Uses Flourite to instantly detect the programming language of your snippets.
- Multiple Synth Presets:
C-01 FM BASE: Classic FM SynthesisS-02 SAW DELAY: Synthwave vibe with sawtooth waves and delayA-03 REVERB SQ: Lush Ambient landscapes with intense reverbR-04 8BIT PULSE: Retro 8-bit pulse/square waves
- Export Capabilities:
- MIDI Export: Export the generated notes as standard
.midsequence files. - Audio Bounce: Render the sequence directly to an offline
.wavfile.
- MIDI Export: Export the generated notes as standard
- Real-time Visualizer: Watch the abstract syntax tree and token streams materialize as visuals synchronized with the playback.
The internal engine performs sequential parsing and mapping:
- Identify the language.
- Tokenize the script line-by-line via TextMate grammars.
- Map tokens dynamically:
- Keywords: Map to Chords.
- Numbers: Map to Kicks.
- Strings / Variables: Map to Melodic notes across predefined scales using token-hashing.
- Punctuation: Map to Hi-hats and percussive tops.
- Schedule everything precisely on
Tone.Transport.
# Install dependencies
npm install
# Start the dev server
npm run dev
# Build for production
npm run buildMIT