JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q96062F
  • License MIT

Convert code into music — analyze projects and hear what they sound like

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (code-symphony) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    CodeSymphony

    Convert code into music. Analyze projects, map their structure to notes, and hear what they sound like.

    Usage

    Run directly from GitHub — no install, no npm account needed:

    # Analyze current project
    npx github:ManaOfAcsha/code-symphony
    
    # Or specify a root
    npx github:ManaOfAcsha/code-symphony --root /path/to/project --port 4000
    
    # Pin to a specific commit
    npx github:ManaOfAcsha/code-symphony#<sha>

    Opens a local web UI at http://localhost:PORT with the generated score and playback.

    Or clone and run locally

    git clone https://github.com/ManaOfAcsha/code-symphony.git
    cd code-symphony
    npm install
    npm start -- --root /path/to/project

    Options

    • --port <number> — HTTP port (default: 4173)
    • --root <path> — project root to analyze (default: cwd)
    • --include <globs> — include file patterns
    • --exclude <globs> — exclude file patterns
    • --max-files <n> — max files to scan (default: 500)
    • --max-bytes <n> — max total bytes (default: 10MB)
    • --no-open — do not auto-open browser
    • --watch — re-analyze on file changes

    How it works

    1. Scanner — walks the project tree, respecting .gitignore
    2. Analyzer — AST analysis (JS/TS via babel) or token fallback
    3. Mapper — deterministic code→note mapping (same input → same music)
    4. Web UI — VexFlow score + Tone.js playback + MIDI/MusicXML export

    License

    MIT