svcore
1.9
|
FlexiNoteModel -- a concrete IntervalModel for notes. More...
#include <FlexiNoteModel.h>
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 |
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.
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.
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] |
Definition at line 69 of file FlexiNoteModel.h.
References duration, frame, RealTime::frame2RealTime(), label, level, RealTime::toString(), and value.
long FlexiNote::frame |
Definition at line 51 of file FlexiNoteModel.h.
Referenced by FlexiNote::Comparator::operator()(), FlexiNote::OrderComparator::operator()(), toDelimitedDataString(), and toXml().
float FlexiNote::value |
Definition at line 52 of file FlexiNoteModel.h.
Referenced by FlexiNote::Comparator::operator()(), toDelimitedDataString(), and toXml().
Definition at line 53 of file FlexiNoteModel.h.
Referenced by FlexiNote::Comparator::operator()(), toDelimitedDataString(), and toXml().
float FlexiNote::level |
Definition at line 54 of file FlexiNoteModel.h.
Referenced by FlexiNoteModel::getSetDataCommand(), FlexiNote::Comparator::operator()(), toDelimitedDataString(), and toXml().
QString FlexiNote::label |
Definition at line 55 of file FlexiNoteModel.h.
Referenced by getLabel(), FlexiNoteModel::getSetDataCommand(), FlexiNote::Comparator::operator()(), toDelimitedDataString(), and toXml().