You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example, the tokens represent the time intervals (`1T`, `2T`), velocities (`VELOCITY_92`, `VELOCITY_110`, etc.), and the note events (`NOTE_ON_74`, `NOTE_OFF_74`, etc.).
@@ -256,8 +256,7 @@ When applying BPE to MIDI data, the process involves several steps to convert th
256
256
Here is an example demonstrating the process:
257
257
258
258
```python
259
-
from midi_trainable_tokenizers import AwesomeMidiTokenizer
260
-
from midi_tokenizers import ExponentialTimeTokenizer
259
+
from midi_tokenizers import ExponentialTimeTokenizer, AwesomeMidiTokenizer
This example demonstrates how to use the `AwesomeMidiTokenizer` to tokenize a sample MIDI data. The tokenizer first needs to be trained on a dataset before it can be used to tokenize new data. The training process uses the `ExponentialTimeTokenizer` as a base tokenizer and trains the BPE tokenizer on the specified dataset. After training, the tokenizer can convert new MIDI data into a sequence of tokens.
@@ -299,7 +298,7 @@ This process ensures efficient encoding of MIDI data with minimal loss of inform
299
298
### BPE MIDI Tokenizer
300
299
Like Awesome Tokenizer, but without converting to unicode and only merges time tokens.
0 commit comments