Logo Search packages:      
Sourcecode: rosegarden version File versions

Rosegarden::Note Class Reference

#include <NotationTypes.h>

List of all members.

Detailed Description

The Note class represents note durations only, not pitch or accidental; it's therefore just as relevant to rest events as to note events. You can construct one of these from either.

Definition at line 908 of file NotationTypes.h.

Public Types

typedef int Type

Public Member Functions

EventgetAsNoteEvent (timeT absoluteTime, int pitch) const
 Returned event is on heap; caller takes responsibility for ownership.
EventgetAsRestEvent (timeT absoluteTime) const
 Returned event is on heap; caller takes responsibility for ownership.
int getDots () const
timeT getDuration () const
Type getNoteType () const
 Note (const Note &n)
 Note (Type type, int dots=0)
Noteoperator= (const Note &n)

Static Public Member Functions

static Note getNearestNote (timeT duration, int maxDots=2)

Static Public Attributes

static const Type Breve = 7
static const Type Crotchet = 4
static const Type Demisemiquaver = 1
static const Type DoubleWholeNote = 7
static const Type EighthNote = 3
static const int EventRestSubOrdering = 10
static const std::string EventRestType = "rest"
static const std::string EventType = "note"
static const Type HalfNote = 5
static const Type Hemidemisemiquaver = 0
static const Type Longest = 7
static const Type Minim = 5
static const Type QuarterNote = 4
static const Type Quaver = 3
static const Type Semibreve = 6
static const Type Semiquaver = 2
static const Type Shortest = 0
static const Type SixteenthNote = 2
static const Type SixtyFourthNote = 0
static const Type ThirtySecondNote = 1
static const Type WholeNote = 6

Private Member Functions

timeT getDurationAux () const

Private Attributes

int m_dots
Type m_type

Static Private Attributes

static const timeT m_shortestTime = basePPQ / 16

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index