RPR GetPlayPositionEx

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
(Examples)
(C++)
 
Line 13: Line 13:
===C++===
===C++===
<source lang=cpp>
<source lang=cpp>
 +
void PCursorTo50(COMMAND_T* = NULL)
 +
{
 +
SetHorizPos(GetTrackWnd(), GetPlayPosition(), 0.50);
 +
}
</source>
</source>
 +
===Perl===
===Perl===
<source lang=perl>
<source lang=perl>

Latest revision as of 22:24, 11 February 2010

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR GetPlayPositionEx
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR GetPlayPositionEx

Contents

GetPlayPositionEx()

double GetPlayPosition()
double GetPlayPositionEx(void* proj)

GetPlayPosition() returns the current playback position of the project. This is the time the user is hearing (and the transport shows etc). The value is in seconds.

Parameters

void* proj

Returns

double

Examples

C++

void PCursorTo50(COMMAND_T* = NULL)
{
	SetHorizPos(GetTrackWnd(), GetPlayPosition(), 0.50);
}

Perl

 

Python

 

See Also

play: Master_GetPlayRateAtTime, CSurf_OnPlay, GetPlayPosition, GetPlayPosition2, CSurf_SetPlayState, GetPlayPosition2Ex, GetPlayPositionEx, OnPlayButton, GetPlayState, OnPlayButtonEx, GetPlayStateEx, PlayPreview, PlayTrackPreview, PlayTrackPreview2,

(Section automatically generated, edits may be overwritten.)

Stuff

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR GetPlayPositionEx
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR GetPlayPositionEx