Plugin Utilities
A collection of functions useful for plugin development.
Functions:
selectionStat(score)
Description: Get information about the current selection:
- startStaffIdx (Number)
- staves (Number)
- cursor (Cursor)
- ticks (Number)
- firstMeasure (Measure)
- lastMeasure (Measure)
- totalMeasures (Number)
A selection is required. No selection throws an Error.
printMembers(object, preamble, maxDepth = 1)
Description: Print the key-value pairs on an object.
freqToMidi(freq)
Description: Converts a frequency to a midi pitch.
API compatibility
3.x
Plugin categories
Other
Code repository