rewire~ "samples" start position

mcQ's icon

im using rewire~ to control REAPER, and it has a message it can use called "position" to set the start position in samples. i cant figure out how many samples equal one bar, and it seems to be related also to the set tempo, (more samples per bar for a higher tempo) so is there a formula or an object that can do this?

pid's icon

[translate] object, and [sampstoms~] and [mstosamps~] objects