File size: 1,262 Bytes
fcd0ac3
a554f96
 
 
 
fcd0ac3
 
 
 
a554f96
 
 
 
 
 
 
fcd0ac3
 
a554f96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
title: Multitrack MIDI Composer
emoji: 🎹
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 6.3.0
app_file: app.py
pinned: false
license: mit
short_description: AI MIDI generation with two transformer models
tags:
  - midi
  - music-generation
  - audio
  - cpu
---

# Multitrack MIDI Composer

AI-powered MIDI music generation with **two transformer models** to choose from.

## Models

### Multitrack Generator (Genre-based)
- Genre-based multi-instrument composition
- Uses `juancopi81/lmd-8bars-2048-epochs40_v4` transformer
- Builds music instrument by instrument
- Supports: ROCK, POP, JAZZ, ELECTRONIC, R&B/SOUL

### SkyTNT MIDI Model (Instrument-based)
- Uses `skytnt/midi-model` via ONNX (CPU optimized)
- Select specific instruments and drum kits
- Event-based generation with fine-grained control
- Supports all General MIDI instruments

## Features

- Pure Python audio synthesis (py-meltysynth)
- In-browser audio playback
- MIDI file export
- Piano roll visualization
- CPU-only (no GPU needed)

## Requirements

- CPU-only deployment
- ~500MB model downloads on first use
- ~6MB SoundFont file included

## Credits

- Multitrack Generator: Dr. Tristan Behrens
- SkyTNT Model: [skytnt/midi-model](https://github.com/SkyTNT/midi-model)