Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

TSE3::Util::Snap Class Reference

Time 'snapping'. More...

#include <Snap.h>

Collaboration diagram for TSE3::Util::Snap:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Time 'snapping'.

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.

Author:
Pete Goodliffe
Version:
3.00
See also:
Clock

TimeSigTrack


Constructor & Destructor Documentation

TSE3::Util::Snap::Snap TSE3::TimeSigTrack t  )  [inline]
 

The Snap object defaults to snapping to the previous bar.

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


Member Function Documentation

void TSE3::Util::Snap::setTimeSigTrack TSE3::TimeSigTrack t  )  [inline]
 

Changes the TSE3::TimeSigTrack to use.

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

TSE3::Clock TSE3::Util::Snap::snap  )  const [inline]
 

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

See also:
setSnap

void TSE3::Util::Snap::setSnap TSE3::Clock  s  )  [inline]
 

Sets the snap value.

See also:
snap

TSE3::Clock TSE3::Util::Snap::operator() TSE3::Clock  c  )  const
 

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


The documentation for this class was generated from the following file:
Generated on Wed May 25 14:48:17 2005 for TSE3 by doxygen 1.3.2