Description Usage Arguments Value
View source: R/poisson_chords.R
Simulate chord changes where the number of chord changes follows a Poisson process, and the transitions of chords follow a given Markov jump chain.
1 2 3 4 5 6 7 8 9 10 11 | poisson_chords(
t,
lambda,
chord_states,
P,
initial_chord,
harmonics = c(1, 0.5, 0.2, 0.1),
n = 4,
bpm = 120,
sampleRate = 48000
)
|
t |
duration of total progression in measures |
lambda |
mean number of chord changes per measure |
chord_states |
state space for chords |
P |
probability transition matrix for chord changes |
initial_chord |
initial chord distribution |
harmonics |
harmonics for the chords |
n |
number of beats per measure |
bpm |
the beats per minute |
sampleRate |
sample rate |
vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.