Commit
·
0ce468a
1
Parent(s):
a194856
Update README.md
Browse files
README.md
CHANGED
@@ -12,7 +12,20 @@ should probably proofread and complete it, then remove this comment. -->
|
|
12 |
|
13 |
# music-generation
|
14 |
|
15 |
-
This model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
## Model description
|
18 |
|
|
|
12 |
|
13 |
# music-generation
|
14 |
|
15 |
+
This model a trained from scratch version of [distilgpt2](https://huggingface.co/distilgpt2) on a dataset where the text represents musical notes. The [dataset](https://www.kaggle.com/datasets/soumikrakshit/classical-music-midi) consists of one stream of notes from MIDI files (the stream with most notes), where all of the melodies were transposed either to C major or A minor. Also, the BPM of the song is ignored, the duration of each note is based on its quarter length.
|
16 |
+
|
17 |
+
Each element in the melody is represented by a series of letters and numbers with the following structure.
|
18 |
+
* For a note: ns[pitch of the note as a string]s[duration]
|
19 |
+
* Examples: nsC4s0p25, nsF7s1p0,
|
20 |
+
* For a rest: rs[duration]:
|
21 |
+
* Examples: rs0p5, rs1q6
|
22 |
+
* For a chord: cs[number of notes in chord]s[pitches of chords separated by "s"]s[duration]
|
23 |
+
|
24 |
+
The following special symbols are replaced in the strings by the following:
|
25 |
+
* . = p
|
26 |
+
* / = q
|
27 |
+
* # =
|
28 |
+
* - = t
|
29 |
|
30 |
## Model description
|
31 |
|