Path to the checkpoint directory.
Disposes model from (GPU) memory.
Load model weights.
Optional pre-loaded weights for testing.
Returns whether or not the model has been initialized.
Given a button number with optional sampling temperature and seed, evaluates Piano Genie to produce a piano key note {0, 1, ... 87}. This is the simplest access point for Piano Genie, designed to be called by your application in real time (it keeps track of time internally).
Button number (one of {0, 1, 2, 3, 4, 5, 6, 7}).
Temperature. From 0 to 1, goes from argmax to random.
Random seed. Use a fixed number to get reproducible output.
Given a button number and a list of piano keys, evaluates Piano Genie to produce a piano key note {0, 1, ..., 87}. Use this if you would like to restrict Piano Genie's outputs to a subset of the keys (e.g. a particular scale or range of the piano). For example, if you wanted to restrict Piano Genie's outputs to be C major from middle C to one octave above, you would pass [39, 41, 43, 44, 46, 48, 50, 51] as the list.
Button number (one of {0, 1, 2, 3, 4, 5, 6, 7}).
Subset of keys restricting possible note outputs.
Temperature. From 0 to 1, goes from argmax to random.
Random seed. Use a fixed number to get reproducible output.
Overrides the model's internal clock with a designated time. Mainly used to test the model, but can also be used to remove user control over note timing or to run preprogrammed sequences through the model.
Amount of elapsed time in seconds since previous note.
Overrides the model's state for its last output. Mainly used to test the model, but can also be used in combination with custom sampling behavior.
Previous piano key sampled from the model logits.
Sets the family of the chord for subsequent predictions (e.g. Aug=3).
Chord family.
Sets the key signature for subsequent predictions (e.g. D=3).
Key signature.
Generated using TypeDoc
Piano Genie constructor.