MuseScore  3.4
Music composition and notation
Namespaces | Enumerations | Functions | Variables
pitchspelling.h File Reference
#include "mscore.h"
Include dependency graph for pitchspelling.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Ms
 
 

Enumerations

enum  Ms::Tpc : signed char {
  Ms::TPC_INVALID = -2, Ms::TPC_F_BB, Ms::TPC_C_BB, Ms::TPC_G_BB,
  Ms::TPC_D_BB, Ms::TPC_A_BB, Ms::TPC_E_BB, Ms::TPC_B_BB,
  Ms::TPC_F_B, Ms::TPC_C_B, Ms::TPC_G_B, Ms::TPC_D_B,
  Ms::TPC_A_B, Ms::TPC_E_B, Ms::TPC_B_B, Ms::TPC_F,
  Ms::TPC_C, Ms::TPC_G, Ms::TPC_D, Ms::TPC_A,
  Ms::TPC_E, Ms::TPC_B, Ms::TPC_F_S, Ms::TPC_C_S,
  Ms::TPC_G_S, Ms::TPC_D_S, Ms::TPC_A_S, Ms::TPC_E_S,
  Ms::TPC_B_S, Ms::TPC_F_SS, Ms::TPC_C_SS, Ms::TPC_G_SS,
  Ms::TPC_D_SS, Ms::TPC_A_SS, Ms::TPC_E_SS, Ms::TPC_B_SS,
  Ms::TPC_MIN = TPC_F_BB, Ms::TPC_MAX = TPC_B_SS
}
 
enum  Ms::Prefer : char { Ms::Prefer::FLATS =8, Ms::Prefer::NEAREST =11, Ms::Prefer::SHARPS =13 }
 
enum  Ms::NoteSpellingType : char {
  Ms::NoteSpellingType::STANDARD = 0, Ms::NoteSpellingType::GERMAN, Ms::NoteSpellingType::GERMAN_PURE, Ms::NoteSpellingType::SOLFEGGIO,
  Ms::NoteSpellingType::FRENCH
}
 
enum  Ms::NoteCaseType : signed char { Ms::NoteCaseType::AUTO = -1, Ms::NoteCaseType::CAPITAL = 0, Ms::NoteCaseType::LOWER, Ms::NoteCaseType::UPPER }
 

Functions

int Ms::pitch2tpc (int pitch, Key key, Prefer prefer)
 
int Ms::computeWindow (const std::vector< Note *> &notes, int start, int end)
 
int Ms::tpc (int idx, int pitch, int opt)
 
QString Ms::tpc2name (int tpc, NoteSpellingType noteSpelling, NoteCaseType noteCase, bool explicitAccidental)
 
void Ms::tpc2name (int tpc, NoteSpellingType noteSpelling, NoteCaseType noteCase, QString &s, QString &acc, bool explicitAccidental)
 
void Ms::tpc2name (int tpc, NoteSpellingType noteSpelling, NoteCaseType noteCase, QString &s, int &acc)
 
int Ms::step2tpc (const QString &stepName, AccidentalVal alter)
 
int Ms::step2tpc (int step)
 
int Ms::step2tpc (int step, AccidentalVal alter)
 
int Ms::step2tpcByKey (int step, Key key)
 
int Ms::tpc2pitch (int tpc)
 
int Ms::tpc2step (int tpc)
 
int Ms::tpc2stepByKey (int tpc, Key key, int *pAlter)
 
int Ms::tpc2alterByKey (int tpc, Key key)
 
int Ms::pitch2absStepByKey (int pitch, int tpc, Key key, int *pAlter)
 
int Ms::absStep2pitchByKey (int step, Key key)
 
int Ms::tpc2degree (int tpc, Key key)
 
QString Ms::tpc2stepName (int tpc)
 
bool Ms::tpcIsValid (int val)
 
bool Ms::pitchIsValid (int pitch)
 

Variables

const int Ms::INVALID_PITCH = -1
 
const int Ms::TPC_DELTA_SEMITONE = 7
 
const int Ms::TPC_DELTA_ENHARMONIC = 12
 
const int Ms::PITCH_DELTA_OCTAVE = 12
 
const int Ms::STEP_DELTA_OCTAVE = 7