#include <TPitch.h>
Inheritance diagram for TPitch:
Public Types | |
enum | { undefined = 0, C = 1, D, E, F, G, A, B, last = B, diatonicSteps = last } |
Public Member Functions | |
virtual void | accept (TScoreVisitor &visitor) |
int | getStep () const |
float | getAlter () const |
int | getOctave () const |
void | setStep (int step) |
void | setAlter (float alter) |
void | setOctave (int oct) |
TPitch & | operator++ (int) |
the ++ operator adds a sharp | |
TPitch & | operator-- (int) |
the -- operator adds a flat | |
TPitch & | operator+= (int n) |
TPitch & | operator+= (unsigned int n) |
adds n diatonic steps to the pitch field and update the octave when necessary | |
TPitch & | operator-= (int n) |
TPitch & | operator-= (unsigned int n) |
substracts n diatonic steps to the pitch field and update the octave when necessary | |
unsigned short | MIDIPitch () const |
returns the corresponding MIDI pitch | |
Static Public Member Functions | |
const string | xmlpitch (int d) |
convert a numeric pitch to a MusicXML string | |
int | xmlpitch (const string str) |
convert a MusicXML string to a numeric pitch | |
Protected Attributes | |
int | fStep |
float | fAlter |
int | fOctave |
Friends | |
EXP friend SMARTP< TPitch > | newPitch () |