change quantize on metro
Is it possible to change the @quantize value of a metro by sending it a message ?
Basically, i need to make a synced metro which could (quickly/permanently) change its synced time but keep perfectly synced to Live.
Using a single metro does fit to Live tempo but is not synced…
thanks a lot raja
but now that i learned this, i realize it doesn’t solve my problem ….
I need to make a changing metro, but as i said before, the "metro" object always fits to live’s tempo but doesn’t stay perfectly in sync with Live’s own metronome… Don’t really know how to do this. I tried to use transport, plugsync~, but they don’t have their ‘own’ tick and are only dependent on live’s one.
Any idea ? thanx again
hi tep, i dont use M4L, but you may want to consider simply using milliseconds rather than quantize messages. If there is a way to get Live’s BPM (which there absolutely has to be), then you can find out how long a quarternote is n milliseconds through the object [!/ 60000]. Then you can divide that by any value for subdivision MS values.
here’s an example that demonstrates this along with quarternote quantization, useful for changing metro values in a live performance setting:
----------begin_max5_patcher---------- 966.3ocyYs0SaCCE941eEd4woBD6XmK6MlFH0WZ0Fk8vlPSootkL0jfZb03h fe6yWRJkAM0MWLiGbpcbN467ct5vC86YMM6VZtE3SfeB506g985IWRrPuh48 rRBuMZYXtbaVQYIIzTl0.08XzaYx0GO5jwmed4xyyRY4w2SE2BZercwx2rhl ye3PVbV5uVQiXp27QX9N.t9hQ6hAvUEOS55j3zkTl70Cedwr0rxU2H9PVz0w oK1RztBw4IGg1xWCzeKgGOSB9ro+9HDYavmFlHAu0oqhCWZItwi86KFFzPh5 qWd52lb12FMdxY.9uGMY3ONcxvwiJ23x3TZT15T4tQ0hOINBEE4B6BBUJODY aJEErCJEaFJ8hK+7WF98gWvYQv3yAawv0gTaF+.wJlQYC1GA4ztDzz0LVVpk 9JBrBEAhjZPfxfuY7szCna46TIa1c2PURwZZX5BKvUuyJSPf.9NpTLUqK9cf pjR+CWzuxucYV3rDZdN2aw1pwNkUo9RSoCQlLzoxrfvJ7H2EwzMjBtSoDjiz W.hjgqtnJIEaiQJz6mEF8za5ziN3TQdRCNFqtrY7MifCrZOS3Ge5PLcnCNyj uzZggpfZzwjca5f90vzkGuHke6ZY.EttgKnuhSjEgQ.Oe9E.oa4GGaU3tr9u qjkft6fe7d2i24klaA+Ez94COrF9Kj56uLnCJQDcWzR5S7hU1cqKS.QQQdhK jfpxFBwFNjhksXwRZ6zHfp1e.VidZb1oxDK5irEMxLvTv7lWsCs+pc9PMBAp SK.RGed.vbd461kbl2sN9XUKgDjFDScZCnADB+Q45gQ7KHxKD6ph6Cps12EI FOA.Ota8LbUmhFoQHimYcL1AkjPYqx5TNQ0PYY8T2p7VbqaRjVs540bIRadD jSUIPjEKQpuwDtRNoN8VHBdD0aFz9kc5d+kROE0grp1gAaTGFCjaUcnaW79y r57eUl0ObBv0l+W2ldUwNp1NwU2uY6jbUJZ4oM9mu2sDbh0eIUkmsdUTo7J+ zHfmQ3LZNKNU9oW2ZSNuXOWGOaFMc6iomDO6lLdfbAF1gcSWH4pAhftFERXM fjuQQjiNjjQQjNNRBqFzXHxSGNx1nPRGRx6vLaPanrKNj5Sf5g1LyDwg1GFX 8wBzgJxMR71LqgXMPGrZ33gNvV2FPBpAjLX.gsFrDwnrDQCDgMKI4nYt0Cfj PAp7Dx1WUgkxIl.p35.Umh+0cNOOy.U0gFNBUqZVlMd.pEO4a1HBhtXxf7ju NXJvr7j1Xxb7DRmT9MAR7IO1+ufPjhin -----------end_max5_patcher-----------
metro 4n @quantize 4n @active 1
Is the same as Live’s metronome.
Hopefully that should be enough to get you going.
thank you people,
i know i am not very clear about what i’m trying to achieve (though the example of Comfortable works in Max, but doesn’t stay synced in M4L)
The idea is : let’s say in a bar i want a metro to jump from 8n to 4n to 1n to 16n to …. and always be sync with Max.
Dunno how to do it … Once i change a value in metro, the sync is lost. I mean, the metro follows Live’s tempo of course, but it doesn’t fit to the metronome anymore. There’s an offset.
Sorry to insist !
you don’t say if you link your metro object to a transport object, to get Live’s timing. Or d’you use another mean?
I’m away from my testing computer right now so I can have a look at this in the morning.
In the meantime
Why not have a bunch of metros running at different rates, and switch between them.
What you’ll actually end up with in the long run is a step sequencer, have a look at the internals of the Step Sequencer device.