MIDIMATH Generative Music Through Pure Mathematics by Ericreator / SHC LLC — 2026 ================================================================ WHAT IS MIDIMATH? ----------------- MidiMath is a browser-based generative music composer that uses mathematical algorithms to create original MIDI sequences in real time. It is not powered by artificial intelligence, machine learning, or any form of training data. Every note it produces is derived entirely from mathematical systems — fractals, chaos theory, cellular automata, prime numbers, and more — combined with classical music theory rules you control directly. The result is music that is genuinely original: not remixed, not interpolated, not statistically derived from existing recordings. It is composed, from scratch, by math. WHY MIDIMATH IS DIFFERENT -------------------------- The current landscape of AI music generation (Suno, Udio, MusicLM, etc.) works by training deep neural networks on vast libraries of existing music. Those systems learn to imitate patterns from human recordings. This creates two significant problems: 1. Copyright ambiguity — the output may statistically resemble training data, raising legitimate questions about ownership and originality. 2. Creative homogeneity — outputs tend to converge toward the statistical center of what exists, producing music that sounds "familiar" by design. MidiMath takes a fundamentally different approach. There is no training data. There is no neural network. The algorithms used — Markov chains, fractal recursion, Euclidean distribution, logistic maps — are mathematical processes that generate structure from pure numerical relationships. The music that comes out has never existed before and does not resemble any specific work, because it was not built from any specific works. This is the same philosophical tradition as algorithmic composers like Iannis Xenakis, who used stochastic mathematics to compose in the 1950s, or the procedural systems used in generative art. MidiMath makes that tradition accessible in a browser, in real time, with full musical control. COPYRIGHT & OWNERSHIP — WHAT YOU NEED TO KNOW ---------------------------------------------- Music generated by MidiMath is free for you to use, release, license, or sell. Because MidiMath does not train on or sample any existing works, the output has no copyright entanglement with third-party music. The compositions are produced by mathematical processes you set in motion. You are the creative director of every piece — you chose the algorithm, the key, the scale, the tempo, the complexity, the progression, and the seed. The math executed your musical intent. This stands in contrast to AI-generated music, where copyright status remains legally contested in multiple jurisdictions, and where the source training data may include copyrighted recordings whose rights were never cleared. MidiMath output is yours. Use it freely. Note: As with all generative systems, there is a non-zero (but astronomically small) probability that a sequence could coincidentally resemble an existing work. This is no different from any human composer accidentally writing a melody similar to another. No system can guarantee absolute novelty across all of human music history. What MidiMath guarantees is that it was not built from, trained on, or derived from any existing recording. THE ALGORITHMS -------------- MidiMath implements 13 distinct mathematical generation systems. Each produces a structurally different kind of music. FRACTAL RECURSION Self-similar patterns repeat at multiple scales, the same way a coastline looks similar whether viewed from space or up close. Melodic motifs are recursively embedded within larger phrases, creating music with natural structural depth and coherence. MARKOV CHAINS Probabilistic state transitions model melodic movement as weighted relationships between notes. Each note influences the probability of what comes next. The result feels organic and stylistically consistent, like a melody that has internalized its own grammar. EUCLIDEAN RHYTHMS Bjorklund's algorithm distributes a given number of notes as evenly as possible across a given number of time slots — the same mathematical principle behind many traditional rhythmic patterns found in African, Middle Eastern, and Cuban music. Produces rhythms that feel both precise and natural. CHAOS THEORY (LOGISTIC MAP) The logistic map is a simple equation that produces deterministic chaos: behavior that is fully defined by its starting conditions but appears unpredictable. MidiMath uses it to create melodies that are structured but never repetitive — ordered turbulence. CELLULAR AUTOMATA Conway's Game of Life-style rules evolve a grid of cells over time. The state of each cell at each generation is mapped to pitch and rhythm. Melodies emerge from the interaction of simple local rules, producing complex global patterns that shift and evolve phrase by phrase. STRANGE ATTRACTOR (LORENZ) The Lorenz attractor is a chaotic system that traces a butterfly-shaped path through three-dimensional space, never repeating but always staying within bounds. Its coordinates are mapped to musical parameters, producing melodic lines with a restless, wandering quality. FIBONACCI SEQUENCE The Fibonacci sequence and the golden ratio appear throughout nature — in sunflower spirals, shell proportions, tree branching. MidiMath maps these relationships to pitch intervals and rhythmic timing, creating music with an innately organic feel. SINE WAVE MAPPING Sinusoidal functions are mapped to pitch and rhythm, producing smooth, flowing melodic arcs. Parameters control the frequency, amplitude, and phase of the waves, creating music that ebbs and rises like a tide. PRIME NUMBERS Prime number sequences are irregular but mathematically pure — they follow no repeating cycle. Mapped to note selection and timing, they produce melodies with an angular, unpredictable character that avoids the symmetry of more pattern-driven algorithms. BROWNIAN MOTION A random walk with drift — each note moves up, down, or stays close to its neighbor. The same process models particle diffusion in physics. The result is a melody that wanders naturally, like improvisation, with local coherence but no large-scale plan. L-SYSTEMS (LINDENMAYER SYSTEMS) Recursive grammar rules that were originally developed to model plant growth. Simple production rules are applied repeatedly, expanding a short seed phrase into long, intricate melodic structures. Great for music that feels alive and growing. TURING PATTERNS Alan Turing's reaction-diffusion model for biological pattern formation (the same math behind leopard spots and zebra stripes). Evolving spatial- temporal structures are mapped to musical parameters, creating textures that shift and pulse over time. RANDOM GENERATOR Pure stochastic note generation constrained by scale rules. The simplest algorithm — useful as a baseline, for ambient textures, or to generate starting points for the eraser tool. MUSICAL CONTROLS ---------------- Every algorithm operates within a musical framework you define: KEY & SCALE Set the root note and scale type. Available scales: Major, Minor, Pentatonic, Blues, Phrygian, Chromatic. All generated notes are constrained to your chosen scale. TEMPO 60–200 BPM. Controls playback and MIDI export timing. COMPLEXITY (1–10) Controls the intricacy of the generated pattern. Low complexity produces simple, sparse melodies. High complexity produces dense, intricate sequences. CHORD PROGRESSION Choose from preset progressions or write your own using Roman numeral notation (I, ii, V7, Imaj9, etc.). The generator harmonizes notes relative to the current chord in the progression, producing music that moves through harmonic changes correctly. SEED Every piece is generated from a numerical seed. The same seed with the same settings will always produce the same music — exactly, every time. Seeds make compositions reproducible and shareable: give someone your seed + settings and they can recreate your piece precisely. Step through seeds one at a time or randomize to explore. OCTAVE SHIFT Transpose the entire composition up or down by octave. DURATION (1–16 bars) Controls the length of the generated sequence. DENSITY (1–10) Controls how many notes are placed per unit of time. OCTAVE RANGE (1–10) Controls the vertical spread of pitches — from tight, close-voiced melodies to wide, sprawling lines. CHORDS (0–10) Adds harmonic layering. At 0 the output is purely melodic. Higher values add chord voicings beneath the melody. SWING (0–10) Applies rhythmic swing/shuffle to the timing of notes. CONSONANCE (1–10) Biases note selection toward more or less harmonically stable intervals relative to the current chord. High consonance = resolved, stable sound. Low consonance = tense, dissonant. PHRASE LENGTH Locks the composition to repeat on a 2, 4, or 8 bar phrase boundary, or runs free-form. SUSTAIN Controls note length / overlap multiplier (1x through 8x). TRANSFORMS ---------- Classical compositional techniques applied to any generated sequence: FLIP Y (Inversion) Mirrors all pitches around the central axis — notes that went up now go down by the same interval. A technique used since Bach. FLIP X (Retrograde) Reverses the sequence in time — the last note becomes the first. Another classical technique, common in serial and baroque composition. SIMPLIFY Reduces note density, removing events to create sparser, more spacious versions of the same sequence. ELABORATE Adds passing notes and ornaments, enriching the sequence without changing its fundamental character. TOOLS ----- The toolbar gives you direct, real-time control over composition and playback. PLAY / PAUSE (Space) Starts and stops playback. When not looping, MidiMath automatically advances to the next seed at the end of each sequence, generating a continuous stream of new compositions without any input required. RESTART (N) Regenerates and restarts the current composition from the beginning using the same seed and settings. Useful for re-auditioning a piece or resetting after edits. LOOP (R) Locks playback to repeat the current composition indefinitely rather than advancing to a new seed. Use this when you find something you want to study, record, or export. Loop mode protects your composition from being replaced by the auto-advance. ERASER (E) Activates the eraser tool, which lets you click individual notes in the visualizer to remove them. Use this to surgically edit a generated sequence — strip out a note that clashes, thin a busy passage, or isolate a motif you want to keep. Erased notes are preserved when loop mode is on. SAVE (S) Exports the current composition as a standard .mid file. The filename is taken from the composition name field. All settings (seed, algorithm, tempo, etc.) are embedded in the MIDI metadata so the piece can be fully restored later. LOAD Opens a .mid file exported from MidiMath. Drag and drop is also supported — drop a MidiMath MIDI file anywhere on the app to instantly restore all settings exactly as they were when the file was saved. VOLUME A popup vertical slider controls master playback volume (0–100). Adjustments take effect immediately without interrupting playback. MAGIC PROGRESSION (✨) Generates a musically intelligent chord progression using an internal harmonic scoring system that evaluates tension, resolution, and voice leading. Each click produces a different well-formed progression. A fast way to find harmonic contexts that suit the current algorithm and seed. RANDOM PROGRESSION (🎲) Picks a completely random chord progression. Less constrained than Magic Progression — useful for finding unexpected harmonic combinations. RANDOMIZE ALL (❓) Randomizes every parameter at once: algorithm, seed, key, scale, tempo, complexity, progression, and all fine-tuning values. A single click throws the entire composition into a new configuration. Good for breaking out of a rut or discovering unexpected combinations you would never have dialed in manually. FINE-TUNING ----------- The More Options panel exposes deeper parameters for precise control over the character of a composition. These interact with each other and with the main controls, giving you a wide compositional surface to explore. DURATION (1–16 bars) Sets the total length of the generated sequence before it loops or advances. Shorter durations create tight, loopable phrases. Longer durations allow the algorithm more space to develop, producing pieces with more internal variation and structural arc. OCTAVE RANGE (1–10) Controls the vertical pitch space available to the generator. A range of 1–2 keeps everything in a tight, close-voiced register — useful for bass lines or constrained leads. Higher values give the algorithm room to jump across multiple octaves, creating wide, dramatic melodic leaps. DENSITY (1–10) Controls how many notes are placed per unit of time. Low density produces spacious, minimal sequences with breathing room between notes. High density fills every available slot, creating busy, intricate patterns. Best tuned in combination with Complexity. CHORDS (0–10) At 0 the output is a pure single-voice melody. Increasing this value adds harmonic layers beneath the melody — dyads, triads, and fuller voicings derived from the active chord progression. At high values the output becomes dense, full-textured, and closer to an arrangement than a melody. SWING (0–10) Applies a swing/shuffle offset to the timing of even-numbered notes, pushing them slightly later than their strict grid position. At low values the effect is subtle, adding a laid-back feel. Higher values produce a pronounced shuffle. Works especially well with Euclidean Rhythms and Markov Chain algorithms. CONSONANCE (1–10) Biases note selection toward more or less harmonically stable intervals relative to the current chord. High consonance = notes that resolve comfortably against the chord (thirds, fifths, octaves). Low consonance = more dissonant intervals (seconds, sevenths, tritones). Lowering consonance is the fastest way to add harmonic tension and edge to an otherwise resolved-sounding piece. PHRASE LENGTH (Free / 2 / 4 / 8 bars) When set to a bar value, the generator constrains the composition to repeat cleanly on that phrase boundary. This is essential for music that needs to loop seamlessly — game music, background tracks, or anything being brought into a DAW on a grid. Free mode lets the algorithm run without a boundary constraint, which can produce more natural, through-composed results. SUSTAIN (Off / Low / Med / High) Multiplies note duration (1x, 2x, 4x, 8x). At Off, notes are short and detached — percussive, staccato. Higher sustain settings cause notes to overlap, creating legato lines and pad-like textures. At High the output blurs into a wash of sustained tones, particularly interesting with string and synth instruments. INSTRUMENTS ----------- 28 instruments across 6 categories, rendered in real time using SoundFont synthesis in the browser: Favorites: 8-Bit Lead, Piano, Marimba, Guitar Retro: NES Triangle, NES Pulse, Gameboy, C64 SID Synths: Crystal Bell, Pluck, Soft Lead, FM Keys Pianos: Bright Piano, Electric Piano, Harpsichord Strings: Violin, Cello, Pizzicato, Harp Other: Vibraphone, Music Box, Celesta, Kalimba MIDI EXPORT & IMPORT -------------------- Every composition can be saved as a standard .mid file, compatible with any DAW (Ableton, Logic, FL Studio, GarageBand, Reaper, etc.) or hardware sequencer. The exported MIDI preserves all timing, pitch, velocity, and chord data exactly as heard in the app. MIDI files can also be dragged and dropped back into MidiMath to restore the settings used to generate them — tempo, seed, algorithm, and all parameters are embedded in the file metadata. THE VISUALIZER -------------- A real-time canvas visualizer displays the composition as a piano-roll-style view, with notes colored and sized by pitch and duration. The playback position is shown as a moving line. The visualizer is interactive — notes can be individually erased using the Eraser tool, letting you manually sculpt the generated output. USE CASES --------- Music producers — Rapid MIDI sketch generation; break creative blocks Composers — Explore harmonic and rhythmic territory algorithmically Game developers — Procedural background music with reproducible seeds Film / media — Royalty-free original stems and motifs Music educators — Demonstrate scales, progressions, and compositional techniques interactively Sound designers — Generative texture and pattern sources Hobbyists — Just make interesting sounds TECHNICAL NOTES --------------- - Runs entirely in the browser. No server, no account, no upload. - Generation is client-side JavaScript — works offline after first load. - Audio synthesis uses the SoundFont Player library (soundfont-player). - A silent audio trick is used to bypass the iOS silent switch. - The seeded random number generator (LCG — linear congruential generator) ensures 100% deterministic output for any given seed value. - iOS and Android are fully supported via the PWA meta tags. LICENSE ------- MidiMath — Proprietary Software License Copyright (c) 2026 Straw Hat Creative LLC. All rights reserved. 1. SOFTWARE LICENSE This software and its source code are the proprietary property of Straw Hat Creative LLC. You may not copy, modify, merge, publish, distribute, sublicense, or sell copies of the software or its source code, in whole or in part, without prior written permission from the copyright holder. You are granted a non-exclusive, non-transferable, revocable license to use the hosted version of MidiMath for personal and commercial music production purposes. 2. GENERATED OUTPUT All music, MIDI files, audio, and other creative output generated by you using MidiMath are your property. You may use, sell, license, publish, and distribute your generated output for any purpose, including commercial use, without restriction or attribution. 3. NO WARRANTY THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR PERFORMANCE THEREOF. 4. CONTACT For licensing inquiries, contact Straw Hat Creative LLC. ================================================================ MidiMath — https://midimath.vercel.app Made by Ericreator — https://ericreator.com (c) 2026 Straw Hat Creative LLC ================================================================