Example #1
0
void Chord::ResetAccidList()
{
    m_accidList.clear();
    ListOfObjects* childList = this->GetList(this); //make sure it's initialized
    for (ListOfObjects::reverse_iterator it = childList->rbegin(); it != childList->rend(); it++) {
        Note *note = dynamic_cast<Note*>(*it);
        if (note->m_drawingAccid != NULL) {
            m_accidList.push_back(note);
        }
    }
}
bool DurationInterface::IsLastInBeam( LayerElement *noteOrRest )
{
    Beam *beam = dynamic_cast<Beam*>( noteOrRest->GetFirstParent( BEAM, MAX_BEAM_DEPTH ) );
    if ( !beam ) {
        return false;
    }
    ListOfObjects *notesOrRests = beam->GetList( beam );
    ListOfObjects::reverse_iterator iter = notesOrRests->rbegin();
    if ( *iter == noteOrRest ) {
        return true;
    }
    return false;    
    
}