melodyTransP: Create a list of Probability transition matrices for the DTMC...

Description Usage Arguments Details Value

View source: R/markov_minimalism.R

Description

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.

Usage

1
melodyTransP(num_voices, rep_probs, state_lengths)

Arguments

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

Details

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.

Value

list of matrices


shill1729/synthesizer documentation built on July 9, 2020, 12:52 a.m.