A Java-based random music generator that creates AI-style music using music theory, random algorithms, and MIDI technology.
Simply put, it's like having a computer help you write songs! 🎵
- Melody Generation: Creates harmonious melodies based on scale theory
- Chord Progressions: Supports major, minor, and diminished triads
- Bass Lines: Auto-generates bass parts
- Multiple Scales: Major, minor, pentatonic, and blues scales
- MIDI Export: Standard format compatible with all music software
- Java 11+
- Maven 3.6+
git clone <repository-url>
cd random-music-generator
./run-cli.sh
After starting, you'll see a menu with options to:
- Generate random music
- Adjust parameters (melody, harmony, rhythm complexity)
- Change scales
- Create simple melodies
- View current settings
random-music-generator/
├── src/main/java/com/musicgenerator/
│ ├── Note.java # handles individual notes
│ ├── Chord.java # creates and manages chords
│ ├── MusicTheory.java # music theory helpers
│ ├── MusicGenerator.java # the main music generator
│ ├── MusicalPiece.java # holds the complete music
│ ├── MidiExporter.java # exports to MIDI files
│ └── MusicGeneratorApp.java # command line interface
├── pom.xml, run-cli.sh, demo.sh, config.properties
└── README.md
✅ Core music generation working ✅ Command line interface stable ✅ No external dependencies ✅ Cross-platform compatible
Feel free to submit issues and pull requests!
MIT License
Enjoy creating AI music! 🎶
Need help? Check QUICKSTART.md