About this project

Piano Music Generator is a browser-based tool that generates classical piano compositions using a rule-based system rather than a trained AI model. It uses a seeded random generator to determine form, harmony, and melodic contour, ensuring that the same seed always produces the same piece. Key capabilities include: - Musical Generation: Supports 20 different styles (e.g., Nocturne, Waltz, Blues) and various keys/modes (Major, Minor, Dorian, etc.). - Export Options: Pieces can be exported as MIDI, MusicXML, WAV, or MP3. - Audio Engine: Features 17 different voices, including a Salamander grand piano, various orchestral instruments, and chiptune synthesizers. - Compositional Logic: Implements specific musical rules for harmony (using figured-bass suffixes), melody (passing/neighbor notes and rhythmic motifs), and performance (tempo curves and simulated pedal). - Interface: Includes a piano roll view, a "Falling notes" visualization, and the ability to independently re-roll the melody or accompaniment while keeping the harmony constant.