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

char Rosegarden::Pitch::getNoteForIndex ( int  index  )  [static]

Return a note name corresponding to the given note index, which must be in the range 0-6 with 0 for C, 1 for D etc.

Definition at line 1757 of file NotationTypes.cpp.

Referenced by getNoteName().

    if (index < 0 || index > 6) return 'C'; // error, really
    return "CDEFGAB"[index];

Generated by  Doxygen 1.6.0   Back to index