Plugins: Division & Tick
This page:
https://musescore.github.io/MuseScore_PluginAPI_Docs/plugins/html/tickl…
describes that the division value is defined as the number of ticks in a quarter note, and that the value of division is a read only property of the PluginAPI object.
How is the value of division set in the score and what is the formula for its value?
Comments
A quarter note is always 480 ticks
In reply to A quarter note is always 480… by elsewhere
As long as the mscx file has
that it ;-)
In reply to As long as the mscx file has… by Jojo-Schmitz
And that goes to the heart of my question. I have seen division in mscx files and now I understand that a quarter note has this number of ticks. However, is division always 480 by definition or is there a formula for its value and a possibility of it ever being other than 480?
In reply to And that goes to the heart… by yonah_ag
It hasn't changes since the very first version of MuseScore, and is unlikely to vever change.
Back in the day, before the implementation of
fraction
, there were discissions and attempts to change itI believe these 480 stem from MIDI
In reply to It hasn't changes since the… by Jojo-Schmitz
Thanks
In reply to It hasn't changes since the… by Jojo-Schmitz
It's also baked into MusicXML, but - MusicXMl does allow you to override it. I think on import this all still gets converted to base-480, as probably a ton of things would go wrong if not. But actually, MuseScore barely uses this internally anymore, not since 3.1 or so - durations are represented using actual fractions. But I guess that's no represented in the plugin API.
In reply to It's also baked into… by Marc Sabatella
The plugin API gives both fraction wrappers and ticks. For my current plugin development ticks are ideal.