Logo Search packages:      
Sourcecode: rosegarden version File versions  Download package

Accidental Rosegarden::Pitch::getDisplayAccidental ( const Key key  )  const

Return the accidental that should be used to display this pitch in a given key. For example, if the pitch is F-sharp in a key in which F has a sharp, NoAccidental will be returned. (This is in contrast to getAccidental, which would return Sharp.) This obviously can't take into account things like which accidentals have already been displayed in the bar, etc.

Definition at line 1642 of file NotationTypes.cpp.

Referenced by getAccidental(), getNoteInScale(), and isDiatonicInKey().

    return getDisplayAccidental(key, UseKey);

Generated by  Doxygen 1.6.0   Back to index