Engineering
JazzMate
Reinforcement-learning agent (DQN) that improvises jazz lines over chord progressions and responds to live MIDI input.

JazzMate is a Deep Q-Network agent trained in a custom Gymnasium environment. It generates a solo note by note over a chord progression, and can also follow chords played live on a MIDI controller.
Approach
- Music theory is encoded in the reward function: harmonic fit to the current chord, phrasing, and penalties for repetition.
- Training runs for 200k steps with Stable-Baselines3. The curve above shows episode reward over training.
- Playback goes through FluidSynth with swing and humanised timing.
The repository includes the full report, the slides and the trained model.