Group Admins

  • Profile picture of Karim
  • Profile picture of Jean


Public Group active 2 days, 8 hours ago

User group for OpenMusic and computer-aided composition. Visit the Forum for discussions.

Problems with Markov Chain

Author 4 Subscribed Users |
Profile photo of LucasQuinamo

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

December 20, 2017 at 14:09 #24731
Profile photo of anders

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.

  1. markov-analyze-from-Patterns-library


December 20, 2017 at 16:17 #24732
Profile photo of ratox

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

December 30, 2017 at 21:45 #24747
Profile photo of perti

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,

  • This reply was modified 3 months, 2 weeks ago by Profile photo of perti perti.
  • This reply was modified 3 months, 2 weeks ago by Profile photo of perti perti.
November 3, 2018 at 23:27 #28188
Profile photo of anders

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.


November 5, 2018 at 09:29 #28191

You must be logged in to reply to this topic.

Log in now