Help : Ml.* objects
Hey,
Hope you're all having a good Christmas.
I'm using the Ml.* max pack and I'm utilizing the Markov object to make a melody generator for a college assignment but I can't work out for the life of me how to stop this error?
Basically, the user inputs a chord, and it makes a new melody using the notes given.
So I have a zl.len that defines the length of the list which is the number of states, then I send the 'observations' into a coll object that stores them as indexed (state 0, midi value x and so on)
The markov object then calls upon the coll object to output the correct observation based on the states and probabilities.
But I am adding possibilities for the user to add notes from a chosen scale onto the 'list' of midi notes for more generation.
I control this using a live dial and once I change the 'growth amount' I get the following error message?
ml.markov: must call Build or set Transitions before new states can be generated.
I have tried to trigger the build message using a bang after the live dial and also trigger the transitions but it still gives me this error for how many times I bang the Markov object using a sequencer until it fixes itself.
It's basically real-time changing the length of the list and as such the amount of states.
But I can't find what exactly is fixing it after approx. 1 bar in Ableton.
And I need it to be streamlined so when one changes this parameter, it just automatically fixes itself straight away to avoid midi dropout.
The device is a max4live device but if you want to just use the max one could just send a random list into the zl.group object at the top and change the metro to go on its own.