I found the following, it looks like I need to scan the annotations() of a
segment,
find the ones of type Element::Type::FIGURED_BASS.
FiguredBass * FiguredBass::addFiguredBassToSegment(Segment * seg, int track,
int extTicks, bool * pNew)
{
int endTick; // where this FB is
initially assumed to end
int staff = track / VOICES; // convert track to staff
track = staff * VOICES; // first track for this
staff
// scan segment annotations for an existing FB element in the same
staff
FiguredBass* fb = 0;
for (Element* e : seg->annotations()) {
if (e->type() == Element::Type::FIGURED_BASS && (e->track() /
VOICES) == staff) {
// an FB already exists in segment: re-use it
fb = static_cast<FiguredBass*>(e);
*pNew = false;
endTick = seg->tick() + fb->ticks();
break;
}
}
--
View this message in context:
http://dev-list.musescore.org/programmatic-access-of-figured-bass-tp7579343p7579344.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer