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

char Rosegarden::Pitch::getNoteName ( const Key key  )  const

Return the note name for this pitch, as a single character in the range A to G. (This is a reference value that should not normally be shown directly to the user, for i18n reasons.)

Definition at line 1670 of file NotationTypes.cpp.

References getHeightOnStaff(), and getNoteForIndex().

Referenced by getAsString().

    int index = (getHeightOnStaff(Clef(Clef::Treble), key) + 72) % 7;
    return getNoteForIndex(index);

Generated by  Doxygen 1.6.0   Back to index