Difference between revisions of "TimecodeToMA2TCTime"

From Moving Light Assistant
Jump to: navigation, search
(Added Page.)
 
m
 
Line 2: Line 2:
 
:''timecodeString is a string. This is a timecode string, i.e. 10.00.03.15''
 
:''timecodeString is a string. This is a timecode string, i.e. 10.00.03.15''
 
:''fpsString is a string. This is the timecode base the timecodeString is in, i.e. 24, 25, 29.97, 30 or 100''
 
:''fpsString is a string. This is the timecode base the timecodeString is in, i.e. 24, 25, 29.97, 30 or 100''
:''Returns a integer. This is the value of the timecodeString string in 30ths of a second''
+
:''Returns an integer. This is the value of the timecodeString string in 30ths of a second''
 
'''This function is only available in MLA v1.3 onwards.'''
 
'''This function is only available in MLA v1.3 onwards.'''
  

Latest revision as of 15:17, 20 February 2017

TimecodeToMA2TCTime( timecodeString, fpsString )

timecodeString is a string. This is a timecode string, i.e. 10.00.03.15
fpsString is a string. This is the timecode base the timecodeString is in, i.e. 24, 25, 29.97, 30 or 100
Returns an integer. This is the value of the timecodeString string in 30ths of a second

This function is only available in MLA v1.3 onwards.

This function is used to convert a timecode string into an integer value that the grandMA2 console understands. The integer value is the timecode string as a value of 30ths of a second. The timecode string can have any separator between the hours, minutes, seconds and frames, as long as there is a separator.

Code Example...
a = FormattedTimeToSeconds("00.00.05.00", "25")

The variable a would be assigned the value 150