GENIUS-MIDIProject breakdown

For musicians looking for an editable starting point. Audition the parts, change the tempo and save a MIDI file to arrange in your music software.

How it was checked Public version fe99731 Discuss a similar project Back to the project
Concept illustration: GENIUS-MIDI
An example from the source
MIDI export from Python
Browser check
Save a MIDI file at 97 BPM

How we checked GENIUS-MIDI

Save a MIDI file at 97 BPM

Checked in Chrome fe99731

What to do
Set the tempo to 97 BPM and choose “ЭКСПОРТ · MIDI”.
What to look for
The file contains three musical parts and a tempo track with the selected value.

Scope of this check This check covers the MIDI file exported from the browser.

Checks from the source

  • ITPRA is absent from the source

    A scan of v2 returns zero ITPRA hits against 11 Narmour mentions, so the whitepaper describes more than the code implements.

    Source gen_phi_primes_fib_midisv2.py

  • Source snapshot from before the v2 update

    The earlier audit counted lines and functions directly in both versions.

    Source gen_phi_primes_fib_midis.py

  • What requirements.txt lists

    The requirements.txt file lists MIDIUtil 1.2.1 or later.

    Source requirements.txt

Implementation progress

Project purposeThe GENIUS-MIDI Python generator creates rhythm, bass, harmony and melody from settings. Open the MIDI files in a DAW to assign instruments and arrange the parts.

  1. implemented

    MIDI export from Python

    Version 1 writes MIDI with MIDIUtil. Version 2 uses mido and records the export settings and outputs in manifest.json.

    Source gen_phi_primes_fib_midis.py, gen_phi_primes_fib_midisv2.py

  2. implemented

    The numeric structures: phi, primes and Fibonacci

    The golden ratio, prime weighting and the Fibonacci sequence drive form, accents and density.

    Source gen_phi_primes_fib_midisv2.py

  3. partial

    The theory stack, only partly in code

    Narmour, Lerdahl, Tymoczko and Euclidean-rhythm names appear in the code, but the Huron ITPRA model is absent (zero mentions), so the stack is only partly realised.

    Source gen_phi_primes_fib_midisv2.py

  4. partial

    Seven tracks and a manifest

    The README promises seven aligned tracks and a manifest per variant, yet the only committed output in version control is a single sample .mid file.

    Source output/01_DRUMS_MAIN.mid

  5. not implemented

    Tests, CI and a web interface

    The generator has no test files or workflow and no interactive web page; it runs only as a script.

    Source .github

  6. on roadmap

    The v1 to v2 path and the research document

    Two parallel script versions and a research note sit side by side; the generator is not packaged as a library or tool.

    Source midi-gen-research.md

Capabilities & limits

  • The source generator runs in Python and produces MIDI files. The subdomain hosts a standalone browser demo.
  • The README describes ITPRA. The source does not implement that model.
  • The repository contains one .mid sample. Full seven-track sets and manifests are absent.
  • Generation is checked by ear. There are no automated tests or CI.
  • The v1 and v2 scripts have no shared module, so their behaviour may diverge.
  • Repeating a seed checks reproducibility. The repository has no benchmark or listener study of musical usefulness, including proposed measures such as ITPRA.

Public version

Public versionOpen the MIDI export demo genius-midi.moonsugar.space

Public build
fe99731
Build directory
.

Audition three parts in Web Audio and export a MIDI file with a separate tempo track. Generation uses prime numbers, Fibonacci numbers and the golden ratio. The original generator versions run separately in Python.

Demo availability is checked at publication. This page does not provide continuous monitoring.

Discuss a similar project

Describe the short scene that needs a MIDI sketch and the tempo you have in mind.

What is in the source

View files and components
  • The earlier source audit counted 3,794 lines in v1 and 4,402 in v2.

    Source gen_phi_primes_fib_midisv2.py

  • The same audit recorded 110 top-level functions in v2.

    Source gen_phi_primes_fib_midisv2.py

  • Theory names in the v2 code: Narmour 11, Lerdahl 2, Tymoczko 3, Euclidean 3, Bjorklund 1

    Source gen_phi_primes_fib_midisv2.py

  • The numeric core is present: the 1.618 and 0.618 constants, Fibonacci and prime-weighted accents

    Source gen_phi_primes_fib_midisv2.py

  • The requirements file lists MIDIUtil 1.2.1 or later. The v2 script imports mido and pretty_midi separately.

    Source requirements.txt, gen_phi_primes_fib_midisv2.py

  • The README is a v5.0 whitepaper: seed determinism, per-layer sub-seeding and a manifest audit of seed, bpm, bars, profile, scale and event counts

    Source README.md

MOONSUGAR / AI

AI consultant

Services, budgets and the next step

MOONSUGAR / AI / UAE · English · USD

Ask about services and budgets

The AI assistant can explain services and starting budgets, and help you prepare questions for the founder.

This is AI, not the founder. Answers use the website and may contain mistakes. A person confirms scope, price and timing.

Talk to the founder

The model is DeepSeek V4.1 Flash. OpenRouter and DeepInfra process the text for replies. Questions and replies are stored on the Moonsugar server for up to 30 days and may be read by the site owner. We do not sell conversations. Do not send passwords, credentials, documents, personal data or NDA material. Clear conversation deletes your history on this site. No enquiry is sent automatically.