sander-wood
commited on
Commit
•
2b022b6
1
Parent(s):
84f5910
Update README.md
Browse files
README.md
CHANGED
@@ -23,15 +23,15 @@ A noteworthy aspect is the copyright status. All tunes in the dataset are in the
|
|
23 |
|
24 |
Inspired by [CTRL](https://huggingface.co/ctrl), we incorporate control codes into [TunesFormer](https://huggingface.co/sander-wood/tunesformer) to represent musical forms. These codes, positioned ahead of the ABC notation, enable users to specify the structures of the generated tunes. The following control codes are introduced:
|
25 |
|
26 |
-
- **
|
27 |
|
28 |
-
- **
|
29 |
|
30 |
-
- **E:edit distance similarity**:
|
31 |
```
|
32 |
eds(c,p) = 1 - lev(c,p) / max(|c|,|p|)
|
33 |
```
|
34 |
-
where $|c|$ and $|p|$ are the string lengths of the two sections.
|
35 |
|
36 |
## Copyright Disclaimer
|
37 |
This dataset is for research use only and not for commercial purposes. We believe all data in this dataset is in the public domain. If you own the copyright to any musical composition in the IrishMAN dataset and have concerns, please contact us at [email protected]. We will address your concerns and take appropriate action if needed.
|
|
|
23 |
|
24 |
Inspired by [CTRL](https://huggingface.co/ctrl), we incorporate control codes into [TunesFormer](https://huggingface.co/sander-wood/tunesformer) to represent musical forms. These codes, positioned ahead of the ABC notation, enable users to specify the structures of the generated tunes. The following control codes are introduced:
|
25 |
|
26 |
+
- **S:number of sections**: determines the number of sections in the entire melody. It counts on several symbols that can be used to represent section boundaries: `[|`, `||`, `|]`, `|:`, `::`, and `:|`. In our dataset, the range is 1 to 8 (e.g., `S:1` for a single-section melody, and `S:8` for a melody with eight sections).
|
27 |
|
28 |
+
- **B:number of bars**: specifies the desired number of bars within a section. It counts on the bar symbol `|`. In our dataset, the range is 1 to 32 (e.g., `B:1` for a one-bar section, and `B:32` for a section with 32 bars).
|
29 |
|
30 |
+
- **E:edit distance similarity**: controls the similarity level between the current section $c$ and a previous section $p$ in the melody. It is based on the Levenshtein distance $lev(c,p)$ , quantifying the difference between sections for creating variations or contrasts. Mathematically, it can be expressed as:
|
31 |
```
|
32 |
eds(c,p) = 1 - lev(c,p) / max(|c|,|p|)
|
33 |
```
|
34 |
+
where $|c|$ and $|p|$ are the string lengths of the two sections. It is discretized into 11 levels, ranging from no match at all to an exact match (e.g., `E:0` for no similarity, and `E:10` for an exact match).
|
35 |
|
36 |
## Copyright Disclaimer
|
37 |
This dataset is for research use only and not for commercial purposes. We believe all data in this dataset is in the public domain. If you own the copyright to any musical composition in the IrishMAN dataset and have concerns, please contact us at [email protected]. We will address your concerns and take appropriate action if needed.
|