poisson_chords: Generate a chord progression driven by a Poisson process and...

Description Usage Arguments Value

View source: R/poisson_chords.R

Description

Simulate chord changes where the number of chord changes follows a Poisson process, and the transitions of chords follow a given Markov jump chain.

Usage

 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
)

Arguments

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

Value

vector


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