fix #251301: wrong octave in status display for transposing instruments

This commit is contained in:
Marc Sabatella 2017-09-12 08:37:40 -06:00
parent 3319f3a1fa
commit e4f97af954

View file

@ -767,7 +767,7 @@ int Note::tpc() const
QString Note::tpcUserName(bool explicitAccidental) const
{
QString pitchName = tpc2name(tpc(), NoteSpellingType::STANDARD, NoteCaseType::AUTO, explicitAccidental);
QString octaveName = QString::number((pitch() / 12) - 1);
QString octaveName = QString::number((epitch() / 12) - 1);
return pitchName + (explicitAccidental ? " " : "") + octaveName;
}