#include <Snap.h>
Collaboration diagram for TSE3::Util::Snap:

Public Member Functions | |
| Snap (TSE3::TimeSigTrack *t) | |
| void | setTimeSigTrack (TSE3::TimeSigTrack *t) |
| TSE3::Clock | snap () const |
| void | setSnap (TSE3::Clock s) |
| TSE3::Clock | operator() (TSE3::Clock c) const |
Time 'snapping' services: snapping a given time to the next lowest point at a given resolution.
This class uses the TimeSigTrack class to work out where bars start/stop.
|
|
The Snap object defaults to snapping to the previous bar.
|
|
|
Changes the TSE3::TimeSigTrack to use.
|
|
|
Returns the current snap value. A value of -1 means snap to the previous bar.
|
|
|
Sets the snap value.
|
|
|
Perform a 'snap': return the snapped value of the given Clock. |
1.3.2