svcore  1.9
FlexiNote Struct Reference

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
 

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() [1/2]

FlexiNote::FlexiNote ( long  _frame)
inline

Definition at line 45 of file FlexiNoteModel.h.

◆ FlexiNote() [2/2]

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

Definition at line 46 of file FlexiNoteModel.h.

Member Function Documentation

◆ getDimensions()

int FlexiNote::getDimensions ( ) const
inline

Definition at line 49 of file FlexiNoteModel.h.

◆ getLabel()

QString FlexiNote::getLabel ( ) const
inline

Definition at line 57 of file FlexiNoteModel.h.

References label.

◆ toXml()

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.

◆ toDelimitedDataString()

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

Member Data Documentation

◆ frame

◆ value

float FlexiNote::value

◆ duration

int FlexiNote::duration

◆ level

float FlexiNote::level

◆ label


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