#include <NoteModel.h>
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 |
| 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.
| int Note::getDimensions | ( | ) | const [inline] |
Definition at line 39 of file NoteModel.h.
| QString Note::getLabel | ( | ) | const [inline] |
| void Note::toXml | ( | QTextStream & | stream, | |
| QString | indent = "", |
|||
| QString | extraAttributes = "" | |||
| ) | const [inline] |
| 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.
| 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().
1.5.1