Skip to content

yanastaciocubas/quantum-music-composer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Quantum Music Composer

Quantum Music Composer is an open-source project that explores the intersection of quantum-inspired algorithms, Peruvian huayno rhythms, and jazz harmony.
It generates melodies using a quantum-inspired random walk, applies Andean pentatonic scales and huayno rhythmic structures, and harmonizes them with ii–V–I jazz progressions.
The system outputs MIDI files, ready to be used in digital audio workstations (DAWs) or notation software.


πŸ“– Table of Contents


✨ Features

  • Quantum-inspired random walk to generate melodic contours.
  • Huayno rhythmic cells in 2/4 time with characteristic upbeat accents.
  • Jazz harmonic framework with ii–V–I cycles and optional swing.
  • Optional Markov learner to adapt melodic transitions from an external MIDI corpus.
  • MIDI export for playback, editing, and orchestration in any DAW.
  • CLI interface with configurable parameters (tempo, key, mode, swing, bars).

πŸ“‚ Project Structure

quantum-music-composer/
β”œβ”€ README.md # Project documentation
β”œβ”€ LICENSE # License information
β”œβ”€ requirements.txt # Python dependencies
β”œβ”€ src/ # Core source code
β”‚ β”œβ”€ quantum_walk.py # Quantum-inspired random walk generator
β”‚ β”œβ”€ scales_rhythm.py # Huayno scale definitions and rhythm templates
β”‚ β”œβ”€ harmony.py # Jazz harmonic progressions
β”‚ β”œβ”€ learner.py # Markov chain learner for MIDI corpus
β”‚ β”œβ”€ composer.py # Composition pipeline
β”‚ └─ cli.py # Command-line interface
β”œβ”€ examples/ # Example configurations and outputs
β”‚ β”œβ”€ demo_config.json
β”‚ └─ output_demo.mid
└─ data/ # Optional training data
└─ midi_corpus/

About

Experimental music generator that combines quantum-inspired random walks, Peruvian huayno rhythms, and jazz harmony. Outputs MIDI files for use in DAWs or notation software.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages