Tokenizers

This module provides methods to encode symbolic music in order to train Sequence models.

The parent class in the EncodeBase class. The tokenizers are:

  • MMMTokenizer: Multi-Track Music Machine tokenizer.

Basic Encoding

EncodeBase()

Multi-Track Music Machine

This submodule contains the implementation of the MMM encoding:

[1] Ens, J., & Pasquier, P. (2020). Flexible generation with the multi-track music machine. In Proceedings of the 21st International Society for Music Information Retrieval Conference, ISMIR.

[2]

TokenizerArguments()

MMMTokenizerArguments([prev_tokens, ...])

prev_tokens: str

MMMTokenizer([file, args])

This class presents methods to compute the Multi-Track Music Machine Encoding.

REMITokenizerArguments([prev_tokens, ...])

This is the REMI arguments class.

REMITokenizer(file[, args])

This class presents methods to compute the REMI Encoding.