class Snap

Time 'snapping'. More...

Full nameTSE3::Util::Snap
Definition#include <Snap.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

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.

See also: Clock, TimeSigTrack

 Snap (TSE3::TimeSigTrack *t)

Snap

The Snap object defaults to snapping to the previous bar.

Parameters:
tTSE3::TimeSigTrack to use. Specifying zero will provide no snap at all.

void  setTimeSigTrack (TSE3::TimeSigTrack *t)

setTimeSigTrack

Changes the TSE3::TimeSigTrack to use.

Parameters:
tTSE3::TimeSigTrack to use. Specifying zero will provide no snap at all.

TSE3::Clock  snap ()

snap

[const]

Returns the current snap value. A value of -1 means snap to the previous bar.

See also: setSnap

void  setSnap (TSE3::Clock s)

setSnap

Sets the snap value.

See also: snap

TSE3::Clock  operator() (TSE3::Clock c)

operator()

[const]

Perform a 'snap': return the snapped value of the given Clock.