Melodia is a Python-based tool for generating musical compositions using algorithmic techniques. It leverages machine learning and deep learning to create unique and creative musical pieces with control over notes, durations, instruments, and articulations. 🎹
- 🎼 Generate unique musical compositions using your own MIDI files
- 🤖 LSTM networks for learning complex musical patterns
- 🎵 Control over musical elements:
- Notes and chords
- Duration patterns
- Instrument selection
- Articulation styles
- 🎛️ Adjustable generation parameters
- 💾 Save and load trained models
- Clone this repository:
git clone https://github.com/caseybarajas33/melodia.git
- Navigate to the cloned repository:
cd melodia
- Install dependencies:
pip install -r requirements.txt
-
Place your MIDI training files in the
data
directory. -
Train the model:
python train.py
-
Generate music with custom parameters:
python play.py --length 500 --temperature 1.0 --output output.mid
--length
: Number of notes to generate (default: 500)--temperature
: Controls randomness (0.1-2.0, default: 1.0)- Lower values = more conservative/predictable
- Higher values = more experimental/random
--output
: Output MIDI filename (default: output.mid)
This project is licensed under the MIT License. See the LICENSE file for details.