Exemplo n.º 1
0
bool canHammerOnOrPullOff(const Voice &voice, int position, const Note &note)
{
    const Note *nextNote = getNextNote(voice, position, note.getString());
    return nextNote && nextNote->getFretNumber() != note.getFretNumber();
}
Exemplo n.º 2
0
bool canTieNote(const Voice &voice, int position, const Note &note)
{
    const Note *prevNote = getPreviousNote(voice, position, note.getString());
    return prevNote && prevNote->getFretNumber() == note.getFretNumber();
}