MuseScore Plugins  3.5
Plugins API for MuseScore
Properties | List of all members
FractionWrapper Class Reference

Fraction object available to QML plugins. More...

Inheritance diagram for FractionWrapper:
Inheritance graph
[legend]
Collaboration diagram for FractionWrapper:
Collaboration graph
[legend]

Properties

int numerator
 Fraction numerator.
 
int denominator
 Fraction denominator.
 
int ticks
 MIDI ticks number equal to the number of the whole notes represented by this fraction.
 
QString str
 String representation of this fraction.
 

Detailed Description

Fraction object available to QML plugins.

Use PluginAPI::PluginAPI::fraction to create a fraction for usage within your plugin:

var ts = newElement(Element.TIMESIG);
ts.timesig = fraction(3, 4);

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