two notes tremolo shouldn't work between two chords with different duration
This commit is contained in:
parent
6f4416a0b3
commit
3d2482f5c3
1 changed files with 5 additions and 0 deletions
|
@ -2430,6 +2430,11 @@ Element* Chord::drop(const DropData& data)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
Chord* ch2 = static_cast<Chord*>(s->element(track()));
|
Chord* ch2 = static_cast<Chord*>(s->element(track()));
|
||||||
|
if (ch2->duration() != duration()) {
|
||||||
|
qDebug("no matching chord for second note of tremolo found");
|
||||||
|
delete e;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
t->setChords(this, ch2);
|
t->setChords(this, ch2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue