This commit is contained in:
ws 2014-07-15 11:01:24 +02:00
parent b408591fa1
commit a4d6faa2ed

View file

@ -1153,6 +1153,10 @@ void Note::endDrag()
Key key = staff->key(tick);
// determine new pitch of dragged note
int nPitch = line2pitch(nLine, clef, key);
if (!concertPitch()) {
Interval interval = staff->part()->instr()->transpose();
nPitch += interval.chromatic;
}
int tpc1 = pitch2tpc(nPitch, key, Prefer::NEAREST);
int tpc2 = pitch2tpc(nPitch - transposition(), key, Prefer::NEAREST);
// undefined for non-tablature staves