MuseScore  3.4
Music composition and notation
Classes | Namespaces | Macros | Enumerations | Functions | Variables
mscore.h File Reference
#include "config.h"
#include "style.h"
Include dependency graph for mscore.h:

Go to the source code of this file.

Classes

struct  Ms::MScoreError
 
class  Ms::MPaintDevice
 
struct  Ms::MScore
 

Namespaces

 Ms
 
 

Macros

#define MSC_VERSION   "3.01"
 
#define VOICES   4
 

Enumerations

enum  Ms::BracketType : signed char {
  Ms::BracketType::NORMAL, Ms::BracketType::BRACE, Ms::BracketType::SQUARE, Ms::BracketType::LINE,
  Ms::BracketType::NO_BRACKET = -1
}
 
enum  Ms::PlaceText : char { Ms::PlaceText::AUTO, Ms::PlaceText::ABOVE, Ms::PlaceText::BELOW, Ms::PlaceText::LEFT }
 
enum  Ms::TransposeDirection : char { Ms::TransposeDirection::UP, Ms::TransposeDirection::DOWN, Ms::TransposeDirection::CLOSEST }
 
enum  Ms::TransposeMode : char { Ms::TransposeMode::BY_KEY, Ms::TransposeMode::BY_INTERVAL, Ms::TransposeMode::DIATONICALLY }
 
enum  Ms::SelectType : char { Ms::SelectType::SINGLE, Ms::SelectType::RANGE, Ms::SelectType::ADD }
 
enum  Ms::AccidentalVal : signed char {
  Ms::AccidentalVal::SHARP2 = 2, Ms::AccidentalVal::SHARP = 1, Ms::AccidentalVal::NATURAL = 0, Ms::AccidentalVal::FLAT = -1,
  Ms::AccidentalVal::FLAT2 = -2
}
 
enum  Ms::KeySigNatural : char { Ms::KeySigNatural::NONE = 0, Ms::KeySigNatural::BEFORE = 1, Ms::KeySigNatural::AFTER = 2 }
 
enum  Ms::UpDownMode : char { Ms::UpDownMode::CHROMATIC, Ms::UpDownMode::OCTAVE, Ms::UpDownMode::DIATONIC }
 
enum  Ms::StaffGroup : char { Ms::StaffGroup::STANDARD, Ms::StaffGroup::PERCUSSION, Ms::StaffGroup::TAB }
 
enum  Ms::NoteHeadScheme : char {
  Ms::NoteHeadScheme::HEAD_NORMAL = 0, Ms::NoteHeadScheme::HEAD_PITCHNAME, Ms::NoteHeadScheme::HEAD_PITCHNAME_GERMAN, Ms::NoteHeadScheme::HEAD_SOLFEGE,
  Ms::NoteHeadScheme::HEAD_SOLFEGE_FIXED, Ms::NoteHeadScheme::HEAD_SHAPE_NOTE_4, Ms::NoteHeadScheme::HEAD_SHAPE_NOTE_7_AIKIN, Ms::NoteHeadScheme::HEAD_SHAPE_NOTE_7_FUNK,
  Ms::NoteHeadScheme::HEAD_SHAPE_NOTE_7_WALKER, Ms::NoteHeadScheme::HEAD_SCHEMES
}
 
enum  Ms::BarLineType {
  Ms::BarLineType::NORMAL = 1, Ms::BarLineType::DOUBLE = 2, Ms::BarLineType::START_REPEAT = 4, Ms::BarLineType::END_REPEAT = 8,
  Ms::BarLineType::BROKEN = 0x10, Ms::BarLineType::END = 0x20, Ms::BarLineType::END_START_REPEAT = 0x40, Ms::BarLineType::DOTTED = 0x80
}
 
enum  Ms::IconType : signed char {
  Ms::IconType::NONE = -1, Ms::IconType::ACCIACCATURA, Ms::IconType::APPOGGIATURA, Ms::IconType::GRACE4,
  Ms::IconType::GRACE16, Ms::IconType::GRACE32, Ms::IconType::GRACE8_AFTER, Ms::IconType::GRACE16_AFTER,
  Ms::IconType::GRACE32_AFTER, Ms::IconType::SBEAM, Ms::IconType::MBEAM, Ms::IconType::NBEAM,
  Ms::IconType::BEAM32, Ms::IconType::BEAM64, Ms::IconType::AUTOBEAM, Ms::IconType::FBEAM1,
  Ms::IconType::FBEAM2, Ms::IconType::VFRAME, Ms::IconType::HFRAME, Ms::IconType::TFRAME,
  Ms::IconType::FFRAME, Ms::IconType::MEASURE, Ms::IconType::BRACKETS, Ms::IconType::PARENTHESES
}
 
enum  Ms::MsError {
  Ms::MS_NO_ERROR, Ms::NO_NOTE_SELECTED, Ms::NO_CHORD_REST_SELECTED, Ms::NO_LYRICS_SELECTED,
  Ms::NO_NOTE_REST_SELECTED, Ms::NO_NOTE_SLUR_SELECTED, Ms::NO_STAFF_SELECTED, Ms::NO_NOTE_FIGUREDBASS_SELECTED,
  Ms::CANNOT_INSERT_TUPLET, Ms::CANNOT_SPLIT_TUPLET, Ms::CANNOT_SPLIT_MEASURE_FIRST_BEAT, Ms::CANNOT_SPLIT_MEASURE_TUPLET,
  Ms::NO_DEST, Ms::DEST_TUPLET, Ms::TUPLET_CROSSES_BAR, Ms::DEST_LOCAL_TIME_SIGNATURE,
  Ms::DEST_TREMOLO, Ms::NO_MIME, Ms::DEST_NO_CR, Ms::CANNOT_CHANGE_LOCAL_TIMESIG
}
 

Functions

int Ms::staff2track (int staffIdx)
 
int Ms::track2staff (int voice)
 
int Ms::track2voice (int track)
 
int Ms::trackZeroVoice (int track)
 
constexpr BarLineType Ms::operator| (BarLineType t1, BarLineType t2)
 
constexpr bool Ms::operator & (BarLineType t1, BarLineType t2)
 

Variables

const int Ms::STAFF_GROUP_MAX = int(StaffGroup::TAB) + 1
 

Macro Definition Documentation

◆ MSC_VERSION

#define MSC_VERSION   "3.01"

◆ VOICES

#define VOICES   4