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

Accidental Rosegarden::Pitch::getAccidental ( bool  useSharps  )  const

Return the accidental for this pitch using a bool to prefer sharps over flats if there is any doubt. This is the accidental that would be used to display this pitch outside of the context of any key; that is, it may duplicate an accidental actually in the current key. This should not be used if you need to get an explicit accidental returned for E#, Fb, B# or Cb.

This version of the function exists to avoid breaking old code.

Definition at line 1619 of file NotationTypes.cpp.

References getDisplayAccidental().

Referenced by getAsString(), and transpose().

    return getDisplayAccidental(Key("C major"), 
            useSharps ? UseSharps : UseFlats);

Generated by  Doxygen 1.6.0   Back to index