Convert between different units of time.
| Name | Type | Opt | Description |
|---|---|---|---|
| time-formats | symbol | opt | Arguments set the time formats to convert between. The first argument sets the input format to expect, and the second argument sets the format to output. These arguments are a shortcut for setting the attributes of this object which do the same thing. Time can be specified in any of the time formats used in Max. |
| int | time-value [int] | The time value passed-in is converted into the output type specified. Where appropriate, the input type will be assessed by checking the in attribute. |
| float | time-value [float] | The time value passed-in is converted into the output type specified. Where appropriate, the input type will be assessed by checking the in attribute. |
| list | time-value [list] | The time value passed-in is converted into the output type specified. Where appropriate, the input type will be assessed by checking the in attribute. |
| anything | time-value [list] | The time value passed-in is converted into the output type specified. Where appropriate, the input type will be assessed by checking the in attribute. |
| Name | Type | g/s | Description |
|---|---|---|---|
| in | symbol | The input format is used to determine the value sent to this object when the value alone is not enough. For example, a simple number could represent milliseconds, hertz, ticks, seconds, etc. This attribute is used to disambiguate such cases. | |
| mode | symbol | There is a notion in the conversion of a "position vs interval" for bars.beats.units time. This refers to the fact that position in the system starts at 1.1.0, whereas an interval of 1.1.0 would mean one bar, one beat and zero units (2400 ticks at 4/4 in the default resolution). | |
| out | symbol | Set the time format to use for output. | |
| transport | symbol | The name of a transport object with which to associate. By default, the master transport is used. |