RPR format timestr len

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
(Examples)
 
(7 intermediate revisions not shown)
Line 1: Line 1:
{{API_Doc_Header}}
{{API_Doc_Header}}
-
= =
+
=format_timestr_len()=
 +
'''void format_timestr_len(double tpos, char* buf, int buflen, double offset, int modeoverride)'''
 +
 
 +
time formatting mode overrides: -1=proj default.
 +
0=time
 +
1=measures:beats + time
 +
2=measures:beats
 +
3=seconds
 +
4=samples
 +
5=h:m:s:f
 +
 
==Parameters==
==Parameters==
 +
double tpos,
 +
char* buf,
 +
int buflen,
 +
double offset, start of where the length will be calculated from
 +
int modeoverride
==Returns==
==Returns==
 +
Nothing
==Examples==
==Examples==
 +
===C++===
 +
<source lang=cpp>
 +
</source>
===Perl===
===Perl===
-
<pre>
+
<source lang=perl>
-
</pre>
+
</source>
===Python===
===Python===
-
<pre>
+
<source lang=python>
-
</pre>
+
</source>
 +
 
==See Also==
==See Also==
 +
{{SeeAlso_time}}
 +
 +
''(Section automatically generated, edits may be overwritten.)''
 +
==Stuff==
==Stuff==
{{API_Doc_Footer}}
{{API_Doc_Footer}}

Latest revision as of 12:26, 28 January 2010

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR format timestr len
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR format timestr len

Contents

format_timestr_len()

void format_timestr_len(double tpos, char* buf, int buflen, double offset, int modeoverride)

time formatting mode overrides: -1=proj default. 0=time 1=measures:beats + time 2=measures:beats 3=seconds 4=samples 5=h:m:s:f

Parameters

double tpos, 
char* buf, 
int buflen, 
double offset, start of where the length will be calculated from
int modeoverride

Returns

Nothing

Examples

C++

 

Perl

 

Python

 

See Also

time: GetProjectTimeSignature, GetProjectTimeSignature2, GetSet_LoopTimeRange, GetSet_LoopTimeRange2, IsInRealTimeAudio, Master_GetPlayRateAtTime, TimeMap2_GetDividedBpmAtTime, TimeMap2_GetNextChangeTime, TimeMap2_QNToTime, TimeMap2_beatsToTime, TimeMap2_timeToBeats, TimeMap2_timeToQN, TimeMap_GetDividedBpmAtTime, TimeMap_QNToTime, TimeMap_timeToQN, UpdateTimeline, format_timestr, format_timestr_len, format_timestr_pos, parse_timestr, parse_timestr_len, parse_timestr_pos,

(Section automatically generated, edits may be overwritten.)

Stuff

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR format timestr len
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR format timestr len

Personal tools