Note Struct Reference

#include <NoteModel.h>

List of all members.


Detailed Description

Note type for use in a SparseModel or SparseValueModel.

All we mean by a "note" is something that has an onset time, a single value, and a duration. Like other points, it can also have a label. With this point type, the model can be thought of as representing a simple MIDI-type piano roll, except that the y coordinates (values) do not have to be discrete integers.

Definition at line 32 of file NoteModel.h.

Public Member Functions

 Note (long _frame)
 Note (long _frame, float _value, size_t _duration, float _level, QString _label)
int getDimensions () const
QString getLabel () const
void toXml (QTextStream &stream, QString indent="", QString extraAttributes="") const
QString toDelimitedDataString (QString delimiter, size_t sampleRate) const

Public Attributes

long frame
float value
size_t duration
float level
QString label

Classes

struct  Comparator
struct  OrderComparator


Constructor & Destructor Documentation

Note::Note ( long  _frame  )  [inline]

Definition at line 35 of file NoteModel.h.

Note::Note ( long  _frame,
float  _value,
size_t  _duration,
float  _level,
QString  _label 
) [inline]

Definition at line 36 of file NoteModel.h.


Member Function Documentation

int Note::getDimensions (  )  const [inline]

Definition at line 39 of file NoteModel.h.

QString Note::getLabel (  )  const [inline]

Definition at line 47 of file NoteModel.h.

References label.

void Note::toXml ( QTextStream &  stream,
QString  indent = "",
QString  extraAttributes = "" 
) const [inline]

Definition at line 49 of file NoteModel.h.

References duration, frame, label, level, and value.

QString Note::toDelimitedDataString ( QString  delimiter,
size_t  sampleRate 
) const [inline]

Definition at line 58 of file NoteModel.h.

References duration, frame, RealTime::frame2RealTime(), label, level, RealTime::toString(), and value.


Member Data Documentation

long Note::frame

Definition at line 41 of file NoteModel.h.

Referenced by NoteLayer::editOpen(), NoteLayer::getFeatureDescription(), NoteLayer::moveSelection(), Note::OrderComparator::operator()(), Note::Comparator::operator()(), toDelimitedDataString(), and toXml().

float Note::value

Definition at line 42 of file NoteModel.h.

Referenced by NoteLayer::getFeatureDescription(), Note::Comparator::operator()(), toDelimitedDataString(), and toXml().

size_t Note::duration

Definition at line 43 of file NoteModel.h.

Referenced by NoteLayer::getFeatureDescription(), Note::Comparator::operator()(), toDelimitedDataString(), and toXml().

float Note::level

Definition at line 44 of file NoteModel.h.

Referenced by Note::Comparator::operator()(), toDelimitedDataString(), and toXml().

QString Note::label

Definition at line 45 of file NoteModel.h.

Referenced by NoteLayer::getFeatureDescription(), getLabel(), Note::Comparator::operator()(), toDelimitedDataString(), and toXml().


The documentation for this struct was generated from the following file:
Generated on Wed Feb 20 15:45:34 2008 for SonicVisualiser by  doxygen 1.5.1