This is very useful in composition and will hopefully spark some interest in markov chain melodies. I do like your layout style, highlighting, and commenting. Understandable at a glance.
One issue: I think vanilla [matrix] may be deprecated, it certainly seems to have disappeared from my patches after going up to 0.39.2-t4 and I think the new namespace is prefixed mtx_
Cheers, a.
On Tue, 15 Aug 2006 00:57:48 -0400 "Alexandre Quessy" listes@sourcelibre.com wrote:
Hi all,
I just rewrote an abstraction for creating markov chains using a matrix storing the probabilties to get every other states in the finite state machine. Probabilities are caclulated on the sum of every float of every row. A row corresponds to a state (actually, its probabilities to obtain every state next). See wikipedia.org for mathematics behind it.
It is available at http://alexandre.quessy.net/?q=node/43 only at the moment.
This kind of system can be used for weighted random between several effects in an installation, or to build melodies of chord changes, for instance. It uses zexy and iemmatrix. Ah, it is GPL, let say.
Cheers,
Alexandre Quessy http://alexandre.quessy.net
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list