< Back to IRCAM Forum

Problems with Markov Chain

Hey! I’m pretty new to OM and Algorithmic composition, so this might be a really noob question but here I am.
I tried creating a Markov Chain analyzes with OM, based on this tutorial:

Well, everything was pretty similar to the tutorial, with the exception of the mf-info function. In the tutorial it has two inlets, in my OM it has only one. I looked at the documentation and it seems that I can create an optional argument to inform a track number. I don’t know if that’s what getting me the error, but everytime I try to evaluate the chain it gives me an error message saying “Error while evaluating the box ANA-MARK: Arithmetic error in < of ((60 0 214 58 2)(72 0 214 58 1)): arguments must be real numbers.”
I really couldn’t get what’s wrong with it so I’m here asking you guys to help me.
And again, sorry for this dumb question =P

Hi Lucas.

You can access the second input using ‘Alt-[rightarrow]’ on the box, to select one track. I beleive this will get rid of the error you see.

Forgive me if i sound like selling soap, but the Patterns-library provides a more direct way to analyze data to achieve markov-tables, and generate new data based on this analysis. Check the attached shot. Anders.

markov-analyze-from-Patterns-library.png

Dear Anders, you don’t sell soaps, this attitude is te good way to go, thanks!

hello anders,

thanks for the pattern library.
I’m not being able to access the second input of p-markov-analyze. not with the previously mentioned alt-right arrow, nor with the usual shift->.
any thoughts? I’m on macOSXHighSierra/om6.12/patterns0.99.3
thanks in advance for any info,
perti

Hi Perti.

p-markov-analyze uses keyword args, so to add inputs, hit “k”, then click on the input to select which argument to the function you want to add.

-anders