Help Setting up Max for live Device: Markov Chain

William Lawes's icon

Hello, I just started using Max for live to use the device I have attached here, based on the video link. I really liked the result shown in the video using different midi files. However, when I loaded the patch in Max for live the output was simply rapid straight 16th notes, nothing like in the video. Just wanted to ask for some help setting this up correctly...

MarkovChain 2.maxpat
Max Patch

https://www.youtube.com/watch?v=CzNCpuPhYFE&t=2s&ab_channel=FujiKureta

Source Audio's icon

that patch is a copy of a copy of a copy ..... of old
and unefficient as well as uncorrect patch.
I don't remember who started that ....
to start, wrong is capturing of values from midi file stream.
using pack to group 2 values from the incoming stream
gives wrong result.
If you used midi file which last note was C#4, it will hang there.
you load new midi file all in pure C major, and get your first pair as
C#4 C3
when you start first midi file, you get zero and first note ...

then, using seq with 8x speed to borax is really unfficient.
we have detonate object that can spit all midi events, including
pitch, velocity, duration and delta time in no time.

------
here is a patch that demonstrats capturing of midi events
into 4 colls

Max Patch
Copy patch and select New From Clipboard in Max.

I have no time to incude multichannel midi file filtering, etc etc
-----------




William Lawes's icon

Thanks very much for your reply!

From your description, I understand the patch is outdated and not working. I did not understand "we have detonate object that can spit all midi events, including pitch, velocity, duration and delta time in no time."

I tried the patch you shared, I was able to add a midi file to it, but I could not see how to make it play via Max4live. Is this patch an update of the previous?

Source Audio's icon

No, it only shows how to get needed data
correctly and fast from midi file into colls.
if you only want to get that youtube patch
work as is, then post any errors from max console,
maybe you habe problems with java,
because mxj is used to detect list length from coll outputs.
That can be fixed by replacing it with zl.len

William Lawes's icon

Yes the issue seems to have been Java, which I updated. Thank you for your help! It seems to be working now, interesting results using some classical music midi files.

Can anyone recommend other patches like this?

And is there a patch that could do this with multiple voices, such as an ensemble or orchestral midi file?

William Lawes's icon

I have been trying to figure out how to route midi from the patch to Live so I can record the midi output. I have searched everywhere but cannot find how to do this. I'm using windows, can anyone help out with this?

Source Audio's icon

to record midi output you don't need live.
record it into seq object in max.

or make m4live device with that patch

William Lawes's icon

Ok, thank you. I tried a few different things, but can't record. How do I patch these together?

William Lawes's icon

I've included the device here with the seq, I tried several ways to record but nothing worked. How do I patch this together?

Untitled Device.amxd
amxd 114.26 KB

Source Audio's icon

I think we misunderstood each other.
I thought that you ask how to use this in Live, because you did not know how to do it in max.
That's why I suggested to use seq in max patch.
If you anyway use this in Live, than no need to use seq, record output
directy into Live track.
------
if you want to record in max patch without live,
then connect makenote to seq.


William Lawes's icon

Thank you, yes I was asking how to record midi from this patch in live. I receive audio in live from this patch, but when I record to a midi track, it does not record the midi notes. How do I route the midi into live? I must have it set up wrong...