svcore  1.9
FlexiNote Struct Reference

FlexiNoteModel -- a concrete IntervalModel for notes. More...

#include <FlexiNoteModel.h>

List of all members.

Classes

struct  Comparator
struct  OrderComparator

Public Member Functions

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

Public Attributes

long frame
float value
int duration
float level
QString label

Detailed Description

FlexiNoteModel -- a concrete IntervalModel for notes.

Extension of the NoteModel for more flexible note interaction. The original NoteModel rationale is given below, will need to be updated for FlexiNoteModel:

Note type for use in a sparse model. All we mean by a "note" is something that has an onset time, a single value, a duration, and a level. 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 42 of file FlexiNoteModel.h.


Constructor & Destructor Documentation

FlexiNote::FlexiNote ( long  _frame) [inline]

Definition at line 45 of file FlexiNoteModel.h.

FlexiNote::FlexiNote ( long  _frame,
float  _value,
int  _duration,
float  _level,
QString  _label 
) [inline]

Definition at line 46 of file FlexiNoteModel.h.


Member Function Documentation

int FlexiNote::getDimensions ( ) const [inline]

Definition at line 49 of file FlexiNoteModel.h.

QString FlexiNote::getLabel ( ) const [inline]

Definition at line 57 of file FlexiNoteModel.h.

References label.

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

Definition at line 59 of file FlexiNoteModel.h.

References duration, XmlExportable::encodeEntities(), frame, label, level, and value.

QString FlexiNote::toDelimitedDataString ( QString  delimiter,
int  sampleRate 
) const [inline]

Member Data Documentation


The documentation for this struct was generated from the following file: