Questions about buffer~ printmod message?
How can I access the printmod message output within the max patch, instead of writing it to console? Also what data is the printmod message outputting? Is it time in ms, tics, from when does it start counting? Or is it a time stamp (like hourminsecms)?
I am trying to make the ability to write time stamps from a buffer, so as I am recording into a buffer I can click a button and it will make a time stamp of how far into the buffer the recording is, and then add to a list of time stamps. I am currently thinking the best way would be using printmod~ to subtract the printmod value from when time stamp button is pressed by the printmod value from when the recording to the buffer was started.
As I am typing this I am starting to think maybe it would be easier to use the [time] object instead of print mod, but it is probably good to learn more about the printmod message anyway.
Thanks for help!
printmodtime message to buffer~ prints it's last modification system time in ms as int, look at cpuclock help file to check it.
You can grab that into patch using console object,
with set textfiter to match buffer~ in general or
your specific buffer, like for exampe
textfiter buffer~ MyBuff
-------
but ... using that message for recording time stamps makes no sense.
if you want to use system time, than rather cpuclock directly,
when recording starts, grab current time for offset, and add time stamps.
date objects outputs absolute time, and that only in seconds,
which might be not fine grained enough ?
if you want fine grained absoute time, you can combine time
output of date object with restarted clocker at 1 sec interval
to grab miliseconds

but for elapsed recording time, this is my prefered way :
