File size: 3,599 Bytes
77d623b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
---
license: mit
task_categories:
- text-generation
language:
- en
tags:
- music
- audio
- commodore-64
- sid
- chiptune
size_categories:
- 100M<n<1B
---

# SID Music Dataset

Register dumps from 2,418 Commodore 64 SID files for training music generation models.
9000 frames for each file, corresponding to 3 minutes of the sid file.

## Dataset Description

- **Source**: [HVSC](https://hvsc.c64.org/) (High Voltage SID Collection)
- **Size**: 1GB of register dump sequences
- **Format**: Hex-encoded SID register states at 50Hz
- **Songs**: 2,410 files from 15 legendary composers

## Composers Included

| Composer | Songs |
|----------|-------|
| DRAX (Thomas Mogensen) | 1042 |
| Laxity (Thomas E. Petersen) | 274 |
| Jeroen Tel | 163 |
| Thomas Detert | 162 |
| Reyn Ouwehand | 124 |
| David Whittaker | 98 |
| Ben Daglish | 86 |
| Johannes Bjerregaard | 84 |
| Rob Hubbard | 78 |
| Jonathan Dunn | 67 |
| Matt Gray | 47 |
| Charles Deenen | 46 |
| Chris Hülsbeck | 42 |
| Mark Cooksey | 39 |
| Martin Galway | 34 |
| **Total** | **2,418** |


## Data Format

Each frame is 25 SID registers encoded as 50 hex characters:
```
B0080005410A306011C0064108200016800D41082000B4031F
B0084005410A30601100074108200016C00D41082000B4031F
B0088005410A30601140074108200016000E41082000B4031F
...
<end>
```

- 50 hex characters = 25 bytes (SID registers $D400-$D418)
- `<end>` marks song boundaries
- 50 frames = 1 second of audio

## Register Layout
```
Bytes 0-6:   Voice 1 (freq, pulse width, control, envelope)
Bytes 7-13:  Voice 2
Bytes 14-20: Voice 3
Bytes 21-24: Filter + Volume
```
## Usage

### Quick Start with SidGPT
```bash
# Clone SidGPT
git clone https://github.com/M64GitHub/SidGPT
cd SidGPT
pip install torch numpy tqdm

# Download this dataset
wget https://huggingface.co/datasets/M64/sid-music/resolve/main/training.txt.gz
gunzip training.txt.gz
mv training.txt training/data/sid/input.txt

# Tokenize & Train
cd training/data/sid && python prepare.py && cd ../..
python train.py config/train_sid.py
```

### Or Use Pre-trained Model

Skip training entirely:
- [SID-GPT 25M Model](https://huggingface.co/M64/sid-gpt-25m)

### Manual / Custom Training

If using your own training setup:

1. **Download**: `training.txt.gz` (~100MB compressed, ~1GB uncompressed)
2. **Format**: Character-level, 22-token vocabulary
3. **Tokenize**: Map characters to indices:
```python
   vocab = ['\n', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 
            'A', 'B', 'C', 'D', 'E', 'F', '<', '>', 'd', 'e', 'n']
   char_to_idx = {c: i for i, c in enumerate(vocab)}
```
4. **Train**: Any GPT/transformer architecture works. Recommended:
   - Block size: 1020+ tokens (20+ frames context)
   - Character-level prediction (no BPE)

### Pre-trained Model

Skip training and use the pre-trained model directly:
- [SID-GPT 25M](https://huggingface.co/M64/sid-gpt-25m)

### Statistics

- Total characters: ~1,000,000,000
- Vocabulary: 22 tokens (`0-9`, `A-F`, `<`, `>`, `d`, `e`, `n`, `\n`)
- Average song length: 9000 frames (~ 3 minutes)

## License

MIT License. 

Original SID files from HVSC are © their respective composers.
This dataset contains derived register dumps for research purposes.

## Citation
```bibtex
@misc{sidmusicdataset2026,
  author = {Mario Schallner},
  title = {SID Music Dataset: C64 Register Dumps for ML},
  year = {2026},
  publisher = {Hugging Face},
  url = {https://huggingface.co/datasets/M64/sid-music}
}
```

## Related

- [SID-GPT Model](https://huggingface.co/M64/sid-gpt-25m)
- [SidGPT GitHub](https://github.com/M64GitHub/SidGPT)
- [HVSC](https://hvsc.c64.org/)