Update README.md
Browse files
README.md
CHANGED
|
@@ -105,9 +105,12 @@ from datasets import load_dataset
|
|
| 105 |
dataset = load_dataset('TiMauzi/imslp-midi-by-nc-sa')
|
| 106 |
```
|
| 107 |
|
| 108 |
-
The data in the column `midi` are raw bytes. You may want to use packages like `mido` to analyze them. For example, to view the content of the first MIDI file, you can use a script as follows:
|
| 109 |
|
| 110 |
```python
|
|
|
|
|
|
|
|
|
|
| 111 |
train_data = dataset['train'] # assuming you already loaded the dataset as described
|
| 112 |
|
| 113 |
# Take the first example
|
|
|
|
| 105 |
dataset = load_dataset('TiMauzi/imslp-midi-by-nc-sa')
|
| 106 |
```
|
| 107 |
|
| 108 |
+
The data in the column `midi` are raw bytes. You may want to use [packages like `mido`](https://github.com/mido/mido) to analyze them. For example, to view the content of the first MIDI file, you can use a script as follows:
|
| 109 |
|
| 110 |
```python
|
| 111 |
+
import mido
|
| 112 |
+
import io
|
| 113 |
+
|
| 114 |
train_data = dataset['train'] # assuming you already loaded the dataset as described
|
| 115 |
|
| 116 |
# Take the first example
|