13 #ifndef __PITCHSPELLING_H__ 14 #define __PITCHSPELLING_H__ 40 enum Tpc :
signed char {
72 extern int computeWindow(
const std::vector<Note*>& notes,
int start,
int end);
73 extern int tpc(
int idx,
int pitch,
int opt);
99 inline bool pitchIsValid(
int pitch) {
return pitch >= 0 && pitch <= 127; }
const int TPC_DELTA_SEMITONE
Definition: pitchspelling.h:51
AccidentalVal
Definition: mscore.h:147
Definition: pitchspelling.h:42
QString tpc2stepName(int tpc)
Definition: pitchspelling.cpp:338
Definition: pitchspelling.h:44
const int STEP_DELTA_OCTAVE
Definition: pitchspelling.h:55
Definition: pitchspelling.h:44
Definition: pitchspelling.h:43
Definition: pitchspelling.h:46
Definition: pitchspelling.h:44
Definition: pitchspelling.h:46
Definition: pitchspelling.h:46
const int PITCH_DELTA_OCTAVE
Definition: pitchspelling.h:54
int tpc2pitch(int tpc)
Definition: pitchspelling.cpp:185
Definition: pitchspelling.h:42
int tpc2stepByKey(int tpc, Key key, int *pAlter)
Definition: pitchspelling.cpp:113
NoteCaseType
Definition: pitchspelling.h:68
int step2tpc(int step, AccidentalVal alter)
Definition: pitchspelling.cpp:42
NoteSpellingType
Definition: pitchspelling.h:67
Definition: pitchspelling.h:42
Definition: pitchspelling.h:42
Definition: pitchspelling.h:46
int tpc2degree(int tpc, Key key)
Definition: pitchspelling.cpp:799
Definition: pitchspelling.h:47
Definition: pitchspelling.h:43
bool pitchIsValid(int pitch)
Definition: pitchspelling.h:99
Definition: pitchspelling.h:45
int pitch2absStepByKey(int pitch, int tpc, Key key, int *pAlter)
Definition: pitchspelling.cpp:745
bool tpcIsValid(int val)
Definition: pitchspelling.cpp:33
Definition: aeolus.cpp:26
Definition: pitchspelling.h:42
Definition: pitchspelling.h:41
int pitch2tpc(int pitch, Key key, Prefer prefer)
Definition: pitchspelling.cpp:732
Definition: pitchspelling.h:44
Prefer
Definition: pitchspelling.h:66
Definition: pitchspelling.h:45
Definition: pitchspelling.h:43
Tpc
Definition: pitchspelling.h:40
Definition: pitchspelling.h:43
Definition: pitchspelling.h:46
Definition: pitchspelling.h:45
Definition: pitchspelling.h:46
Definition: pitchspelling.h:43
QString tpc2name(int tpc, NoteSpellingType noteSpelling, NoteCaseType noteCase, bool explicitAccidental)
Definition: pitchspelling.cpp:230
Definition: pitchspelling.h:42
Definition: pitchspelling.h:44
int tpc2step(int tpc)
Definition: pitchspelling.cpp:97
Definition: pitchspelling.h:44
const int INVALID_PITCH
Definition: pitchspelling.h:24
int step2tpcByKey(int step, Key key)
Definition: pitchspelling.cpp:82
int tpc(int idx, int pitch, int opt)
Definition: pitchspelling.cpp:539
Definition: pitchspelling.h:45
Definition: pitchspelling.h:45
int tpc2alterByKey(int tpc, Key key)
Definition: pitchspelling.cpp:221
int computeWindow(const std::vector< Note *> ¬es, int start, int end)
Definition: pitchspelling.cpp:557
Definition: pitchspelling.h:43
const int TPC_DELTA_ENHARMONIC
Definition: pitchspelling.h:52
Definition: pitchspelling.h:45
Definition: pitchspelling.h:42
int absStep2pitchByKey(int step, Key key)
Definition: pitchspelling.cpp:777
Definition: pitchspelling.h:48
Definition: pitchspelling.h:46
Definition: pitchspelling.h:43
Definition: pitchspelling.h:45
Definition: pitchspelling.h:44