Transport "units"

Jonatan Ewald's icon

Hi,
I want to create a patch that plays notes from a list like a simple sequencer.
The list of notes should rotate every bar.
I want to be able to have an external clock and start the patch runing through this list at any position of the transport. But I always want the notes to end up in the same place of the bar.
So I think it is difficult to use raw ticks, because they just count endlessly.
So my question is:
What is the resolution of the "units" output from the transport object?
I have looked but not found this anywhere.
It seems like this number goes to zero on every bar so it looks like it could be what I need, but I have not found the number it counts up to anywhere, so I need this to be able to divide it properly...

Jonatan Ewald's icon

I think I figured it out. Units is going from 0 to 479 ticks.
4n - Quarter note - 480 ticks

Max Gardener's icon

Yep. You could also set a phasor~ 1n object to for the length of a measure and then divide it out using a rate~ value > delta~ > <~ -0.5 > edge~ to send the bang messages. The benefit there is that you can do N-tuplets, etc.

Jonatan Ewald's icon

Thanks Max!
I always forget the phasor object but it seems to be used a lot in many patches.
Could you elaborate a bit regarding this?
I think I get the main idea, but some more details and variations would be nice.