Generate deep minimal house basslines powered by the latest OpenAI models.
- Python 3.9+
- Create and activate a virtual environment (optional but recommended)
- Install dependencies:
pip install -r requirements.txtstreamlit run app.pyEnter your OpenAI API key in the sidebar, provide a creative prompt, and click Generate MIDI.
The app will stream the model output, convert it into a .mid file, and render a piano-roll preview. You can download the MIDI directly from the interface.
export OPENAI_API_KEY="sk-..."
python cli.py "Funky minimal-house bassline in A minor with syncopated groove" \
--output my_bassline.mid \
--model gpt-4.1The script will save my_bassline.mid in the current directory.