13 #ifndef __PLUGIN_API_FRACTION_H__ 14 #define __PLUGIN_API_FRACTION_H__ 16 #include "libmscore/fraction.h" 44 Q_PROPERTY(QString
str READ toString)
50 void setFraction(Fraction _f) { f = _f; }
56 Ms::Fraction fraction()
const {
return f; }
57 int numerator()
const {
return f.numerator(); }
59 int ticks()
const {
return f.ticks(); }
60 QString toString()
const {
return f.toString(); }
74 QQmlEngine::setObjectOwnership(w, QQmlEngine::JavaScriptOwnership);
QString str
String representation of this fraction.
Definition: fraction.h:44
int ticks
MIDI ticks number equal to the number of the whole notes represented by this fraction.
Definition: fraction.h:42
Definition: cursor.cpp:30
int numerator
Fraction numerator.
Definition: fraction.h:35
int denominator
Fraction denominator.
Definition: fraction.h:37
Fraction object available to QML plugins.
Definition: fraction.h:32