#include <TimeContextC.h>
Public Methods | |
TimeContextC (PajaTypes::int32 i32BeatsPerMin, PajaTypes::int32 i32QNotesPerBeat, PajaTypes::int32 i32EditAccuracy) | |
Default constructor (used internally). | |
virtual | ~TimeContextC () |
Default destructor (used internally). | |
virtual PajaTypes::float64 | convert_fps_to_time (PajaTypes::float64 f64Time, PajaTypes::float64 f64FPS) |
Converts time in FPS timecode to Demopaja timecode. | |
virtual PajaTypes::float64 | convert_time_to_fps (PajaTypes::float64 f64FpsTime, PajaTypes::float64 f64FPS) |
Converts time in Demopaja timecode to FPS timecode. | |
virtual PajaTypes::int32 | get_beats_per_min () const |
Returns beats per minute (BPM). | |
virtual PajaTypes::int32 | get_qnotes_per_beat () const |
Returns quarter notes per beat. | |
virtual PajaTypes::int32 | get_edit_accuracy () const |
Returns edit accuracy. | |
virtual PajaTypes::uint32 | get_frame_id () const |
Returns unique ID for a frame. | |
virtual void | set_frame_id (PajaTypes::uint32 ui32ID) |
Sets the frame ID, used internally. |
Time context is helper class which provides the timing information to the effect plugin class. There are also couple of methods which helps converting timing information provided in FPS form to the Demopaja time and back.
This class is implemented by the system.
|
Default constructor (used internally).
|
|
Default destructor (used internally).
|
|
Converts time in FPS timecode to Demopaja timecode.
|
|
Converts time in Demopaja timecode to FPS timecode.
|
|
Returns beats per minute (BPM).
|
|
Returns edit accuracy.
|
|
Returns unique ID for a frame. Each time a frame is rendered the ID is incremented. The frame ID can be used to determine if a frame is rerendered, even the evaluation time has not changed. |
|
Returns quarter notes per beat.
|
|
Sets the frame ID, used internally.
|