< Back to IRCAM Forum

markov chain reminder

Dear Friends

it’s been a while since I’ve used OM for the generation of 2nd order Markov chains (melody and rhythm) from a midi file or from a list of intervals or durations. Can someone help jog my memory

All best wishes

Steve

Hope this helps :

MARKOV2

Generates a sequence of length long from a markovian matrix written in the list l, where prim is the first element
of the resulting sequence.
In the list l the transition is considered as made from the element of the line to the element of the column.
The list l is a double list of the form:
((1 2 3 4) (5 6 7 8 ) (9 10 11 12) (13 14 15 16 ))
where each sublist corresponds to a row. For example, the element a34, that is, the third row and fourth column,
is element 12. In the case where this matrix is a markov matrix, element a34 corresponds to a transition from the
element with index 3 to the element with index 4.

Best K

Dear Karim

thank you so much for your swift reply. I really appreciate it. I understand some of what you say. I am just not sure of how things are connected. Any way you could point me to a patch example?

All best wishes

Steve

Hi,

From the posted description I think (despite its name) markov2 produces first-order markov sequences. I’d appreciate a second-order example, too :slight_smile:

M