Description Usage Arguments Details Value
View source: R/markov_minimalism.R
Populate the probability-transition matrices for the DTMCs representing which melody repeats and randomly switches from. The diagonals are constant, and the non-diagonal entries have equal weight.
1 | melodyTransP(num_voices, rep_probs, state_lengths)
|
num_voices |
number of voices, a positive integer, in the musical piece |
rep_probs |
the vector of probabilities representing chances to repeat current melody |
state_lengths |
the size of the state space per voice, i.e. the number of allotted melodies |
See the paper for more details, but essential staying in the same state has high chance, while jumping to any other melody has a lower but equal chance, as any other distinct melody.
list of matrices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.