seq start with ableton help

thapelo's icon

Sup guys

Please help, ive tried aimlessly to create a seq object that will play a midi file in tempo with my ableton project. I need it to start playing the midi file when i press play in ableton and it should also play in tempo.

Please assist me

Thanks

thapelo's icon

Anyone?

Christopher Dobrian's icon

You should be able to do what you want. In order to match the tempo of your sequence to the tempo of your Ableton set, you will need to know the ratio between the tempo of your Ableton song and the tempo of the MIDI file you're trying to play.

To set the playback tempo of your sequence, read about the argument to the 'start' message to seq. To start it at the correct time, read about the timepoint object.

thapelo's icon

Thanks chris

For the tempo cant i get it from the transport object and feed it to a tick? The problem though is that with a tick i would need to use a start -1 and automate that

Stephane Morisse's icon

I thought you could play a midi file directly in Live, but I may be wrong.

thapelo's icon

You can but im trying to play multiple midi files in my max intrument

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Why is that a problem? You can do something along these lines.

thapelo's icon

Thanks chris

this works, although at 60bpm after a while it goes off tempo.

can you please explain how this metro works

"metro @interval 20 ticks @quantize 20 ticks"

Christopher Dobrian's icon

In transport terms, a "tick" is equal to 1/480 of a quarter note. (In seq terms, it's equal to 1/48 of a second.) So in Max's timing syntax, 20 ticks = 1/24 of a quarter note (which, at a metronome tempo of 120 beats per minute is the same as 148 of a second). The interval attribute sets the periodicity of the metro, and the quantize attribute snaps (qunatizes) the metro's output to a particular division of the transport's beat tempo (in this case, to the nearest 1/24 of a beat).

thapelo's icon

Thanks for all your help chris will do the reading you suggested and see if i can get this right. Im close cause the midi file plays almost at the correct tempo, its just slightly off and the longer it plays the more off it becomes so need to do some tweaking.