RPR TimeMap2 timeToBeats
From CockosWiki
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR TimeMap2 timeToBeats
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR TimeMap2 timeToBeats
Contents |
TimeMap2_timeToBeats()
double TimeMap2_timeToBeats(ReaProject* proj, double tpos, int* measures, int* cml, double* fullbeats, int* cdenom)
convert a time into beats.
if measures is non-NULL, measures will be set to the measure count, return value will be beats since measure.
if cml is non-NULL, will be set to current measure length in beats (i.e. time signature numerator)
if fullbeats is non-NULL, and measures is non-NULL, fullbeats will get the full beat count (same value returned if measures is NULL).
if cdenom is non-NULL, will be set to the current time signature denominator.
Parameters
ReaProject* proj, double tpos, int* measures, int* cml, double* fullbeats, int* cdenom
Returns
An array, containing double ReaProject* proj, double tpos, int* measures, int* cml, double* fullbeats, int* cdenom
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 above this line may be overwritten.)
Stuff
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR TimeMap2 timeToBeats
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR TimeMap2 timeToBeats