MuseScore  3.4
Music composition and notation
Public Types | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
Ms::Score Class Reference

#include <score.h>

Inheritance diagram for Ms::Score:
Inheritance graph
[legend]
Collaboration diagram for Ms::Score:
Collaboration graph
[legend]

Public Types

enum  FileError : char {
  FileError::FILE_NO_ERROR, FileError::FILE_ERROR, FileError::FILE_NOT_FOUND, FileError::FILE_OPEN_ERROR,
  FileError::FILE_BAD_FORMAT, FileError::FILE_UNKNOWN_TYPE, FileError::FILE_NO_ROOTFILE, FileError::FILE_TOO_OLD,
  FileError::FILE_TOO_NEW, FileError::FILE_OLD_300_FORMAT, FileError::FILE_CORRUPTED, FileError::FILE_USER_ABORT,
  FileError::FILE_IGNORE_ERROR
}
 

Signals

void posChanged (POS, unsigned)
 
void playlistChanged ()
 

Public Member Functions

 Score ()
 
 Score (MasterScore *, bool forcePartStyle=true)
 
 Score (MasterScore *, const MStyle &)
 
 Score (const Score &)=delete
 
Scoreoperator= (const Score &)=delete
 
virtual ~Score ()
 
Scoreclone ()
 
virtual bool isMaster () const
 
virtual bool readOnly () const
 
virtual QList< Excerpt * > & excerpts ()
 
virtual const QList< Excerpt * > & excerpts () const
 
virtual ElementType type () const override
 
void rebuildBspTree ()
 
bool noStaves () const
 
void insertPart (Part *, int)
 
void removePart (Part *)
 
void insertStaff (Staff *, int)
 
void cmdRemoveStaff (int staffIdx)
 
void removeStaff (Staff *)
 
void addMeasure (MeasureBase *, MeasureBase *)
 
void readStaff (XmlReader &)
 
bool read (XmlReader &)
 
Excerptexcerpt ()
 
void setExcerpt (Excerpt *e)
 
SystemcollectSystem (LayoutContext &)
 
void layoutSystemElements (System *system, LayoutContext &lc)
 
void getNextMeasure (LayoutContext &)
 
void cmdRemovePart (Part *)
 
void cmdAddTie (bool addToChord=false)
 
void cmdToggleTie ()
 
void cmdAddOttava (OttavaType)
 
void cmdAddStretch (qreal)
 
void cmdResetNoteAndRestGroupings ()
 
void cmdResetAllPositions ()
 
void cmdDoubleDuration ()
 
void cmdHalfDuration ()
 
void cmdIncDurationDotted ()
 
void cmdDecDurationDotted ()
 
void cmdToggleLayoutBreak (LayoutBreak::Type)
 
void addRemoveBreaks (int interval, bool lock)
 
bool transpose (Note *n, Interval, bool useSharpsFlats)
 
void transposeKeys (int staffStart, int staffEnd, const Fraction &tickStart, const Fraction &tickEnd, const Interval &, bool useInstrument=false, bool flip=false)
 
bool transpose (TransposeMode mode, TransposeDirection, Key transposeKey, int transposeInterval, bool trKeys, bool transposeChordNames, bool useDoubleSharpsFlats)
 
bool appendMeasuresFromScore (Score *score, const Fraction &startTick, const Fraction &endTick)
 
bool appendScore (Score *, bool addPageBreak=false, bool addSectionBreak=true)
 
void write (XmlWriter &, bool onlySelection)
 
void writeMovement (XmlWriter &, bool onlySelection)
 
QList< Staff * > & staves ()
 
const QList< Staff * > & staves () const
 
int nstaves () const
 
int ntracks () const
 
int staffIdx (const Part *) const
 Return index for the first staff of part. More...
 
Staffstaff (int n) const
 
Measurepos2measure (const QPointF &, int *staffIdx, int *pitch, Segment **, QPointF *offset) const
 
void dragPosition (const QPointF &, int *staffIdx, Segment **) const
 
void undoAddElement (Element *element)
 
void undoAddCR (ChordRest *element, Measure *, const Fraction &tick)
 
void undoRemoveElement (Element *element)
 
void undoChangeSpannerElements (Spanner *spanner, Element *startElement, Element *endElement)
 
void undoChangeElement (Element *oldElement, Element *newElement)
 
void undoChangePitch (Note *note, int pitch, int tpc1, int tpc2)
 
void undoChangeFretting (Note *note, int pitch, int string, int fret, int tpc1, int tpc2)
 
void spellNotelist (std::vector< Note *> &notes)
 
void undoChangeTpc (Note *note, int tpc)
 
void undoChangeChordRestLen (ChordRest *cr, const TDuration &)
 
void undoTransposeHarmony (Harmony *, int, int)
 
void undoExchangeVoice (Measure *measure, int val1, int val2, int staff1, int staff2)
 
void undoRemovePart (Part *part, int idx)
 
void undoInsertPart (Part *part, int idx)
 
void undoRemoveStaff (Staff *staff)
 
void undoInsertStaff (Staff *staff, int idx, bool createRests=true)
 
void undoChangeInvisible (Element *, bool)
 
void undoChangeTuning (Note *, qreal)
 
void undoChangeUserMirror (Note *, MScore::DirectionH)
 
void undoChangeKeySig (Staff *ostaff, const Fraction &tick, KeySigEvent)
 
void undoChangeClef (Staff *ostaff, Element *, ClefType st)
 
bool undoPropertyChanged (Element *e, Pid t, const QVariant &st, PropertyFlags ps=PropertyFlags::NOSTYLE)
 
void undoPropertyChanged (ScoreElement *, Pid, const QVariant &v, PropertyFlags ps=PropertyFlags::NOSTYLE)
 
virtual UndoStackundoStack () const
 
void undo (UndoCommand *, EditData *=0) const
 
void undoRemoveMeasures (Measure *, Measure *)
 
void undoAddBracket (Staff *staff, int level, BracketType type, int span)
 
void undoRemoveBracket (Bracket *)
 
void undoInsertTime (const Fraction &tick, const Fraction &len)
 
void undoChangeStyleVal (Sid idx, const QVariant &v)
 
void undoChangePageNumberOffset (int po)
 
NotesetGraceNote (Chord *, int pitch, NoteType type, int len)
 Create a grace note in front of a normal note. More...
 
SegmentsetNoteRest (Segment *, int track, NoteVal nval, Fraction, Direction stemDirection=Direction::AUTO, bool forceAccidental=false, bool rhythmic=false)
 
void changeCRlen (ChordRest *cr, const TDuration &)
 
void changeCRlen (ChordRest *cr, const Fraction &, bool fillWithRest=true)
 
void createCRSequence (const Fraction &f, ChordRest *cr, const Fraction &tick)
 
Fraction makeGap (Segment *, int track, const Fraction &, Tuplet *, bool keepChord=false)
 
bool makeGap1 (const Fraction &baseTick, int staffIdx, const Fraction &len, int voiceOffset[VOICES])
 
bool makeGapVoice (Segment *seg, int track, Fraction len, const Fraction &tick)
 
RestaddRest (const Fraction &tick, int track, TDuration, Tuplet *)
 
RestaddRest (Segment *seg, int track, TDuration d, Tuplet *)
 
ChordaddChord (const Fraction &tick, TDuration d, Chord *oc, bool genTie, Tuplet *tuplet)
 
ChordRestaddClone (ChordRest *cr, const Fraction &tick, const TDuration &d)
 
RestsetRest (const Fraction &tick, int track, const Fraction &, bool useDots, Tuplet *tuplet, bool useFullMeasureRest=true)
 
void upDown (bool up, UpDownMode)
 Increment/decrement pitch of note by one or by an octave. More...
 
void upDownDelta (int pitchDelta)
 Add the delta to the pitch of note. More...
 
ChordRestsearchNote (const Fraction &tick, int track) const
 
void addArticulation (SymId)
 Add attribute attr to all selected notes/rests. More...
 
bool addArticulation (Element *, Articulation *atr)
 
void toggleAccidental (AccidentalType, const EditData &ed)
 
void changeAccidental (AccidentalType)
 Change accidental to subtype idx for all selected notes. More...
 
void changeAccidental (Note *oNote, Ms::AccidentalType)
 Change accidental to subtype for note note. More...
 
void addElement (Element *)
 Add element to its parent. More...
 
void removeElement (Element *)
 Remove element from its parent. More...
 
NoteaddPitch (NoteVal &, bool addFlag)
 
void addPitch (int pitch, bool addFlag, bool insert)
 
NoteaddTiedMidiPitch (int pitch, bool addFlag, Chord *prevChord)
 
NoteaddMidiPitch (int pitch, bool addFlag)
 
NoteaddNote (Chord *, NoteVal &noteVal, bool forceAccidental=false)
 
NoteVal noteValForPosition (Position pos, AccidentalType at, bool &error)
 
void deleteItem (Element *)
 
void deleteMeasures (MeasureBase *firstMeasure, MeasureBase *lastMeasure)
 
void cmdDeleteSelection ()
 
void cmdFullMeasureRest ()
 
void putNote (const QPointF &, bool replace, bool insert)
 
void insertChord (const Position &)
 
void localInsertChord (const Position &)
 
void globalInsertChord (const Position &)
 
void cloneVoice (int strack, int dtrack, Segment *sf, const Fraction &lTick, bool link=true, bool spanner=true)
 
void repitchNote (const Position &pos, bool replace)
 
void regroupNotesAndRests (const Fraction &startTick, const Fraction &endTick, int track)
 
bool checkTimeDelete (Segment *, Segment *)
 
void timeDelete (Measure *, Segment *, const Fraction &)
 
void startCmd ()
 Start a GUI command by clearing the redraw area and starting a user-visible undo. More...
 
void endCmd (bool rollback=false)
 End a GUI command by (if undo) ending a user-visble undo and (always) updating the redraw area. More...
 
void update ()
 
void undoRedo (bool undo, EditData *)
 
void cmdRemoveTimeSig (TimeSig *)
 
void cmdAddTimeSig (Measure *, int staffIdx, TimeSig *, bool local)
 
virtual void setUpdateAll ()
 
void setLayoutAll (int staff=-1, const Element *e=nullptr)
 
void setLayout (const Fraction &tick, int staff, const Element *e=nullptr)
 
void setLayout (const Fraction &tick1, const Fraction &tick2, int staff1, int staff2, const Element *e=nullptr)
 
virtual CmdStatecmdState ()
 
virtual const CmdStatecmdState () const
 
virtual void addLayoutFlags (LayoutFlags)
 
virtual void setInstrumentsChanged (bool)
 
void addRefresh (const QRectF &)
 
void cmdRelayout ()
 
void cmdToggleAutoplace (bool all)
 
bool playNote () const
 
void setPlayNote (bool v)
 
bool playChord () const
 
void setPlayChord (bool v)
 
bool selectionChanged () const
 
void setSelectionChanged (bool val)
 
void deleteLater (ScoreElement *e)
 
void deletePostponed ()
 
void changeVoice (int)
 
void colorItem (Element *)
 
QList< Part * > & parts ()
 
const QList< Part * > & parts () const
 
void appendPart (Part *p)
 
void updateStaffIndex ()
 
void sortStaves (QList< int > &dst)
 
bool showInvisible () const
 
bool showUnprintable () const
 
bool showFrames () const
 
bool showPageborders () const
 
bool markIrregularMeasures () const
 
bool showInstrumentNames () const
 
bool showVBox () const
 
void setShowInvisible (bool v)
 
void setShowUnprintable (bool v)
 
void setShowFrames (bool v)
 
void setShowPageborders (bool v)
 
void setMarkIrregularMeasures (bool v)
 
void setShowInstrumentNames (bool v)
 
void setShowVBox (bool v)
 
bool saveFile (QFileInfo &info)
 
bool saveFile (QIODevice *f, bool msczFormat, bool onlySelection=false)
 
bool saveCompressedFile (QFileInfo &, bool onlySelection)
 
bool saveCompressedFile (QFileDevice *, QFileInfo &, bool onlySelection, bool createThumbnail=true)
 
void print (QPainter *printer, int page)
 
ChordRestgetSelectedChordRest () const
 
QSet< ChordRest * > getSelectedChordRests () const
 
void getSelectedChordRest2 (ChordRest **cr1, ChordRest **cr2) const
 
void select (Element *obj, SelectType=SelectType::SINGLE, int staff=0)
 
void selectSimilar (Element *e, bool sameStaff)
 
void selectSimilarInRange (Element *e)
 
void deselect (Element *obj)
 
void deselectAll ()
 
void updateSelection ()
 
ElementgetSelectedElement () const
 
const Selectionselection () const
 
Selectionselection ()
 
SelectionFilterselectionFilter ()
 
void setSelection (const Selection &s)
 
Fraction pos ()
 
Measuretick2measure (const Fraction &tick) const
 
Measuretick2measureMM (const Fraction &tick) const
 
MeasureBasetick2measureBase (const Fraction &tick) const
 
Segmenttick2segment (const Fraction &tick, bool first, SegmentType st, bool useMMrest=false) const
 
Segmenttick2segment (const Fraction &tick) const
 
Segmenttick2segment (const Fraction &tick, bool first) const
 
Segmenttick2segmentMM (const Fraction &tick, bool first, SegmentType st) const
 
Segmenttick2segmentMM (const Fraction &tick) const
 
Segmenttick2segmentMM (const Fraction &tick, bool first) const
 
Segmenttick2leftSegment (const Fraction &tick) const
 return the segment at this tick position if any or the first segment before this tick position More...
 
Segmenttick2rightSegment (const Fraction &tick) const
 return the segment at this tick position if any or the first segment after this tick position More...
 
void fixTicks ()
 This is needed after. More...
 
void rebuildTempoAndTimeSigMaps (Measure *m)
 updates tempomap and time sig map for a measure More...
 
ElementnextElement ()
 
ElementprevElement ()
 
void cmd (const QAction *, EditData &)
 
int fileDivision (int t) const
 
void setFileDivision (int t)
 
QString importedFilePath () const
 
void setImportedFilePath (const QString &filePath)
 
bool dirty () const
 
ScoreContentState state () const
 
void setCreated (bool val)
 
bool created () const
 
bool savedCapture () const
 
bool saved () const
 
void setSaved (bool v)
 
void setSavedCapture (bool v)
 
bool printing () const
 
void setPrinting (bool val)
 
void setAutosaveDirty (bool v)
 
bool autosaveDirty () const
 
virtual bool playlistDirty () const
 
virtual void setPlaylistDirty ()
 
void spell ()
 
void spell (int startStaff, int endStaff, Segment *startSegment, Segment *endSegment)
 
void spell (Note *)
 
Fraction nextSeg (const Fraction &tick, int track)
 
virtual MStylestyle ()
 
virtual const MStylestyle () const
 
void setStyle (const MStyle &s)
 
bool loadStyle (const QString &, bool ign=false)
 
bool saveStyle (const QString &)
 
QVariant styleV (Sid idx) const
 
Spatium styleS (Sid idx) const
 
qreal styleP (Sid idx) const
 
QString styleSt (Sid idx) const
 
bool styleB (Sid idx) const
 
qreal styleD (Sid idx) const
 
int styleI (Sid idx) const
 
void setStyleValue (Sid sid, QVariant value)
 
QString getTextStyleUserName (Tid tid)
 
qreal spatium () const
 
void setSpatium (qreal v)
 
bool genCourtesyTimesig () const
 
bool genCourtesyClef () const
 
Fraction playPos () const
 
void setPlayPos (const Fraction &tick)
 
Fraction loopInTick () const
 
Fraction loopOutTick () const
 
void setLoopInTick (const Fraction &tick)
 
void setLoopOutTick (const Fraction &tick)
 
Fraction pos (POS pos) const
 
void setPos (POS pos, Fraction tick)
 
bool noteEntryMode () const
 
void setNoteEntryMode (bool val)
 
NoteEntryMethod noteEntryMethod () const
 
void setNoteEntryMethod (NoteEntryMethod m)
 
bool usingNoteEntryMethod (NoteEntryMethod m)
 
Fraction inputPos () const
 
int inputTrack () const
 
const InputStateinputState () const
 
InputStateinputState ()
 
void setInputState (const InputState &st)
 
void setInputTrack (int t)
 
void spatiumChanged (qreal oldValue, qreal newValue)
 
void styleChanged ()
 
void cmdPaste (const QMimeData *ms, MuseScoreView *view, Fraction scale=Fraction(1, 1))
 
bool pasteStaff (XmlReader &, Segment *dst, int staffIdx, Fraction scale=Fraction(1, 1))
 
void readAddConnector (ConnectorInfoReader *info, bool pasteMode) override
 
void pasteSymbols (XmlReader &e, ChordRest *dst)
 
void renderMidi (EventMap *events, const SynthesizerState &synthState)
 
void renderMidi (EventMap *events, bool metronome, bool expandRepeats, const SynthesizerState &synthState)
 
BeatType tick2beatType (const Fraction &tick)
 
int mscVersion () const
 
void setMscVersion (int v)
 
void addLyrics (const Fraction &tick, int staffIdx, const QString &)
 
void updateSwing ()
 
void createPlayEvents (Measure *start=nullptr, Measure *end=nullptr)
 
void updateCapo ()
 
void updateVelo ()
 
void updateChannel ()
 
void cmdConcertPitchChanged (bool, bool)
 
virtual TempoMaptempomap () const
 
virtual TimeSigMapsigmap () const
 
void setTempo (Segment *, qreal)
 
void setTempo (const Fraction &tick, qreal bps)
 
void removeTempo (const Fraction &tick)
 
void setPause (const Fraction &tick, qreal seconds)
 
qreal tempo (const Fraction &tick) const
 
bool defaultsRead () const
 
void setDefaultsRead (bool b)
 
TextgetText (Tid subtype)
 
bool isPalette () const
 
void setPaletteMode (bool palette)
 
void lassoSelect (const QRectF &)
 
void lassoSelectEnd ()
 
PagesearchPage (const QPointF &) const
 
QList< System * > searchSystem (const QPointF &p) const
 
MeasuresearchMeasure (const QPointF &p) const
 
bool getPosition (Position *pos, const QPointF &, int voice) const
 
void cmdDeleteTuplet (Tuplet *, bool replaceWithRest)
 
MeasuregetCreateMeasure (const Fraction &tick)
 
void adjustBracketsDel (int sidx, int eidx)
 
void adjustBracketsIns (int sidx, int eidx)
 
void adjustKeySigs (int sidx, int eidx, KeyList km)
 
MeasuresearchLabel (const QString &s, Measure *startMeasure=nullptr, Measure *endMeasure=nullptr)
 
MeasuresearchLabelWithinSectionFirst (const QString &s, Measure *sectionStartMeasure, Measure *sectionEndMeasure)
 
virtual const RepeatListrepeatList () const
 
qreal utick2utime (int tick) const
 
int utime2utick (qreal utime) const
 
void nextInputPos (ChordRest *cr, bool)
 
void cmdMirrorNoteHead ()
 
qreal loWidth () const
 
qreal loHeight () const
 
virtual int npages () const
 
virtual int pageIdx (Page *page) const
 
virtual const QList< Page * > & pages () const
 
virtual QList< Page * > & pages ()
 
const QList< System * > & systems () const
 
QList< System * > & systems ()
 
MeasureBaseListmeasures ()
 
bool checkHasMeasures () const
 
MeasureBasefirst () const
 
MeasureBasefirstMM () const
 
MeasureBaselast () const
 
Ms::MeasurefirstMeasure () const
 
Ms::MeasurefirstMeasureMM () const
 
Ms::MeasurelastMeasure () const
 
Ms::MeasurelastMeasureMM () const
 
MeasureBasemeasure (int idx) const
 
MeasurecrMeasure (int idx) const
 
Fraction endTick () const
 
SegmentfirstSegment (SegmentType s) const
 
SegmentfirstSegmentMM (SegmentType s) const
 
SegmentlastSegment () const
 
void connectTies (bool silent=false)
 Rebuild tie connections. More...
 
qreal point (const Spatium sp) const
 
void scanElements (void *data, void(*func)(void *, Element *), bool all=true)
 
void scanElementsInRange (void *data, void(*func)(void *, Element *), bool all=true)
 
int fileDivision () const
 division of current loading *.msc file More...
 
void splitStaff (int staffIdx, int splitPoint)
 
QString tmpName () const
 
void setTmpName (const QString &s)
 
bool processMidiInput ()
 
LyricsaddLyrics ()
 
FiguredBassaddFiguredBass ()
 
void expandVoice (Segment *s, int track)
 
void expandVoice ()
 
ElementselectMove (const QString &cmd)
 
Elementmove (const QString &cmd)
 
void cmdEnterRest (const TDuration &d)
 
void cmdAddInterval (int, const std::vector< Note *> &)
 
void cmdCreateTuplet (ChordRest *, Tuplet *)
 
void removeAudio ()
 
void doLayout ()
 
void doLayoutRange (const Fraction &, const Fraction &)
 
void layoutLinear (bool layoutAll, LayoutContext &lc)
 
void layoutChords1 (Segment *segment, int staffIdx)
 
qreal layoutChords2 (std::vector< Note *> &notes, bool up)
 
void layoutChords3 (std::vector< Note *> &, const Staff *, Segment *)
 
SynthesizerStatesynthesizerState ()
 
void setSynthesizerState (const SynthesizerState &s)
 
void updateHairpin (Hairpin *)
 
void removeHairpin (Hairpin *)
 
MasterScoremasterScore () const
 
void setMasterScore (MasterScore *s)
 
void createRevision ()
 
void writeSegments (XmlWriter &xml, int strack, int etrack, Segment *sseg, Segment *eseg, bool, bool)
 
const QMap< QString, QString > & metaTags () const
 
QMap< QString, QString > & metaTags ()
 
void setMetaTags (const QMap< QString, QString > &t)
 
QString metaTag (const QString &tag) const
 
void setMetaTag (const QString &tag, const QString &val)
 
void cmdSplitMeasure (ChordRest *)
 
void splitMeasure (Segment *)
 
void cmdJoinMeasure (Measure *, Measure *)
 
int pageNumberOffset () const
 
void setPageNumberOffset (int v)
 
QString mscoreVersion () const
 
int mscoreRevision () const
 
void setMscoreVersion (const QString &val)
 
void setMscoreRevision (int val)
 
uint currentLayerMask () const
 
void setCurrentLayer (int val)
 
int currentLayer () const
 
QString * layerTags ()
 
QString * layerTagComments ()
 
QList< Layer > & layer ()
 
const QList< Layer > & layer () const
 
bool tagIsValid (uint tag) const
 
void addViewer (MuseScoreView *v)
 
void removeViewer (MuseScoreView *v)
 
const QList< MuseScoreView * > & getViewer () const
 
LayoutMode layoutMode () const
 
void setLayoutMode (LayoutMode lm)
 
bool floatMode () const
 
bool pageMode () const
 
bool lineMode () const
 
bool systemMode () const
 
TupletsearchTuplet (XmlReader &e, int id)
 
void cmdSelectAll ()
 
void cmdSelectSection ()
 
void respace (std::vector< ChordRest *> *elements)
 
void transposeSemitone (int semitone)
 
void insertMeasure (ElementType type, MeasureBase *, bool createEmptyMeasures=false)
 
Audioaudio () const
 
void setAudio (Audio *a)
 
PlayMode playMode () const
 
void setPlayMode (PlayMode v)
 
int linkId ()
 
void linkId (int)
 
int getLinkId () const
 
QList< Score * > scoreList ()
 
bool switchLayer (const QString &s)
 
void appendPart (const QString &)
 
void appendMeasures (int)
 
const std::multimap< int, Spanner * > & spanner () const
 
SpannerMapspannerMap ()
 
bool isSpannerStartEnd (const Fraction &tick, int track) const
 
void removeSpanner (Spanner *)
 
void addSpanner (Spanner *)
 
void cmdAddSpanner (Spanner *spanner, const QPointF &pos, bool firstStaffOnly=false)
 
void cmdAddSpanner (Spanner *spanner, int staffIdx, Segment *startSegment, Segment *endSegment)
 
void checkSpanner (const Fraction &startTick, const Fraction &lastTick)
 
const std::set< Spanner * > unmanagedSpanners ()
 
void addUnmanagedSpanner (Spanner *)
 
void removeUnmanagedSpanner (Spanner *)
 
HairpinaddHairpin (HairpinType, const Fraction &tickStart, const Fraction &tickEnd, int track)
 
HairpinaddHairpin (HairpinType, ChordRest *cr1, ChordRest *cr2=nullptr, bool toCr2End=true)
 
ChordRestfindCR (Fraction tick, int track) const
 
ChordRestfindCRinStaff (const Fraction &tick, int staffIdx) const
 
void insertTime (const Fraction &tickPos, const Fraction &tickLen)
 
ScoreFontscoreFont () const
 
void setScoreFont (ScoreFont *f)
 
qreal noteHeadWidth () const
 
void setNoteHeadWidth (qreal n)
 
QList< int > uniqueStaves () const
 
void transpositionChanged (Part *, Interval, Fraction tickStart={ 0, 1 }, Fraction tickEnd={ -1, 1 })
 
void moveUp (ChordRest *)
 
void moveDown (ChordRest *)
 
ElementupAlt (Element *)
 
NoteupAltCtrl (Note *) const
 
ElementdownAlt (Element *)
 
NotedownAltCtrl (Note *) const
 
ElementfirstElement (bool frame=true)
 
ElementlastElement (bool frame=true)
 
int nmeasures () const
 
bool hasLyrics ()
 
bool hasHarmonies ()
 
int lyricCount ()
 
int harmonyCount ()
 
QString extractLyrics ()
 
int keysig ()
 
int duration ()
 
void cmdInsertClef (Clef *clef, ChordRest *cr)
 
void cmdExplode ()
 explodes contents of top selected staff into subsequent staves More...
 
void cmdImplode ()
 implodes contents of selected staves into top staff for single staff, merge voices More...
 
void cmdSlashFill ()
 fills selected region with slashes More...
 
void cmdSlashRhythm ()
 converts rhythms in selected region to slashes More...
 
void cmdResequenceRehearsalMarks ()
 resequences rehearsal marks within a range selection or, if nothing is selected, the entire score More...
 
void cmdExchangeVoice (int, int)
 
void cmdRemoveEmptyTrailingMeasures ()
 
void setAccessibleInfo (QString s)
 
QString accessibleInfo () const
 
QImage createThumbnail ()
 
QString createRehearsalMarkText (RehearsalMark *current) const
 
QString nextRehearsalMarkText (RehearsalMark *previous, RehearsalMark *current) const
 
bool sanityCheck (const QString &name=QString())
 Check that voice 1 is complete Check that voices > 1 contains less than measure duration. More...
 
bool checkKeys ()
 check that key map is in sync with actual keys More...
 
bool checkClefs ()
 check that clef map is in sync with actual clefs More...
 
void switchToPageMode ()
 
virtual QVariant getProperty (Pid) const override
 
virtual bool setProperty (Pid, const QVariant &) override
 
virtual QVariant propertyDefault (Pid) const override
 
virtual QQueue< MidiInputEvent > * midiInputQueue ()
 
virtual std::list< MidiInputEvent > * activeMidiPitches ()
 
virtual QString title () const
 
void cmdTimeDelete ()
 
void localTimeDelete ()
 
void globalTimeDelete ()
 
bool isTopScore () const
 
TextheaderText () const
 
TextfooterText () const
 
void setHeaderText (Text *t)
 
void setFooterText (Text *t)
 
void cmdAddPitch (int note, bool addFlag, bool insert)
 
void forAllLyrics (std::function< void(Lyrics *)> f)
 
SystemgetNextSystem (LayoutContext &)
 
void hideEmptyStaves (System *system, bool isFirstSystem)
 
void layoutLyrics (System *)
 
void createBeams (Measure *)
 
- Public Member Functions inherited from Ms::ScoreElement
 ScoreElement (Score *s)
 
 ScoreElement (const ScoreElement &se)
 
virtual ~ScoreElement ()
 
Scorescore () const
 
MasterScoremasterScore () const
 
virtual void setScore (Score *s)
 
const char * name () const
 
virtual QString userName () const
 
virtual void resetProperty (Pid id)
 
QVariant propertyDefault (Pid pid, Tid tid) const
 
virtual bool sizeIsSpatiumDependent () const
 
virtual void reset ()
 
virtual Pid propertyId (const QStringRef &xmlName) const
 
virtual QString propertyUserValue (Pid) const
 
virtual void initElementStyle (const ElementStyle *)
 
virtual const ElementStylestyledProperties () const
 
virtual PropertyFlagspropertyFlagsList () const
 
virtual PropertyFlags propertyFlags (Pid) const
 
bool isStyled (Pid pid) const
 
QVariant styleValue (Pid, Sid) const
 
void setPropertyFlags (Pid, PropertyFlags)
 
virtual Sid getPropertyStyle (Pid) const
 
bool readProperty (const QStringRef &, XmlReader &, Pid)
 
void readProperty (XmlReader &, Pid)
 
bool readStyledProperty (XmlReader &e, const QStringRef &tag)
 
virtual void undoChangeProperty (Pid id, const QVariant &, PropertyFlags ps)
 
void undoChangeProperty (Pid id, const QVariant &)
 
void undoResetProperty (Pid id)
 
void undoPushProperty (Pid)
 
void writeProperty (XmlWriter &xml, Pid id) const
 
void writeStyledProperties (XmlWriter &) const
 
QList< ScoreElement * > linkList () const
 
void linkTo (ScoreElement *)
 
void unlink ()
 
bool isLinked (ScoreElement *)
 return true if se is different and linked to this element More...
 
virtual void undoUnlink ()
 
int lid () const
 
LinkedElementslinks () const
 
void setLinks (LinkedElements *le)
 
bool isNote () const
 
bool isRest () const
 
bool isChord () const
 
bool isBarLine () const
 
bool isArticulation () const
 
bool isFermata () const
 
bool isMarker () const
 
bool isClef () const
 
bool isKeySig () const
 
bool isTimeSig () const
 
bool isMeasure () const
 
bool isTempoText () const
 
bool isBreath () const
 
bool isHBox () const
 
bool isVBox () const
 
bool isTBox () const
 
bool isFBox () const
 
bool isTie () const
 
bool isSlur () const
 
bool isGlissando () const
 
bool isGlissandoSegment () const
 
bool isSystemDivider () const
 
bool isRehearsalMark () const
 
bool isHarmony () const
 
bool isVolta () const
 
bool isJump () const
 
bool isOttava () const
 
bool isLayoutBreak () const
 
bool isSegment () const
 
bool isTremolo () const
 
bool isSystem () const
 
bool isLyrics () const
 
bool isStem () const
 
bool isBeam () const
 
bool isHook () const
 
bool isStemSlash () const
 
bool isSlurSegment () const
 
bool isTieSegment () const
 
bool isSpacer () const
 
bool isStaffLines () const
 
bool isAmbitus () const
 
bool isBracket () const
 
bool isInstrumentChange () const
 
bool isStaffTypeChange () const
 
bool isHairpin () const
 
bool isHairpinSegment () const
 
bool isBend () const
 
bool isTremoloBar () const
 
bool isRepeatMeasure () const
 
bool isTuplet () const
 
bool isNoteDot () const
 
bool isDynamic () const
 
bool isInstrumentName () const
 
bool isAccidental () const
 
bool isTextLine () const
 
bool isTextLineSegment () const
 
bool isPedal () const
 
bool isPedalSegment () const
 
bool isOttavaSegment () const
 
bool isLedgerLine () const
 
bool isIcon () const
 
bool isVoltaSegment () const
 
bool isNoteLine () const
 
bool isTrill () const
 
bool isTrillSegment () const
 
bool isLetRing () const
 
bool isLetRingSegment () const
 
bool isVibrato () const
 
bool isPalmMute () const
 
bool isPalmMuteSegment () const
 
bool isVibratoSegment () const
 
bool isSymbol () const
 
bool isFSymbol () const
 
bool isFingering () const
 
bool isNoteHead () const
 
bool isLyricsLine () const
 
bool isLyricsLineSegment () const
 
bool isFiguredBass () const
 
bool isStaffState () const
 
bool isArpeggio () const
 
bool isImage () const
 
bool isChordLine () const
 
bool isFretDiagram () const
 
bool isPage () const
 
bool isText () const
 
bool isMeasureNumber () const
 
bool isStaffText () const
 
bool isSystemText () const
 
bool isBracketItem () const
 
bool isScore () const
 
bool isStaff () const
 
bool isPart () const
 
bool isBagpipeEmbellishment () const
 
bool isLasso () const
 
bool isSticking () const
 
virtual bool isElement () const
 
bool isChordRest () const
 
bool isDurationElement () const
 
bool isSlurTieSegment () const
 
bool isSLineSegment () const
 
bool isBox () const
 
bool isVBoxBase () const
 
bool isMeasureBase () const
 
bool isTextBase () const
 
bool isTextLineBaseSegment () const
 
bool isLineSegment () const
 
bool isSpannerSegment () const
 
bool isBSymbol () const
 
bool isTextLineBase () const
 
bool isSLine () const
 
bool isSpanner () const
 
bool isStaffTextBase () const
 

Static Public Member Functions

static void onElementDestruction (Element *se)
 
static std::vector< Note * > cmdTieNoteList (const Selection &selection, bool noteEntryMode)
 
static void collectMatch (void *data, Element *e)
 
static void collectNoteMatch (void *data, Element *e)
 
static constexpr double defaultTempo ()
 
- Static Public Member Functions inherited from Ms::ScoreElement
static ElementType name2type (const QStringRef &, bool silent=false)
 
static ElementType name2type (const QString &s)
 
static const char * name (ElementType)
 

Protected Member Functions

void createPlayEvents (Chord *)
 
void createGraceNotesPlayEvents (const Fraction &tick, Chord *chord, int &ontime, int &trailtime)
 
void cmdPitchUp ()
 
void cmdPitchDown ()
 
void cmdPitchUpOctave ()
 
void cmdPitchDownOctave ()
 
void cmdPadNoteIncreaseTAB (const EditData &ed)
 
void cmdPadNoteDecreaseTAB (const EditData &ed)
 
void cmdToggleMmrest ()
 
void cmdToggleHideEmpty ()
 
void cmdSetVisible ()
 
void cmdUnsetVisible ()
 
virtual Movementsmovements ()
 
virtual const Movementsmovements () const
 
- Protected Member Functions inherited from Ms::ScoreElement
virtual int getPropertyFlagsIdx (Pid id) const
 

Protected Attributes

int _fileDivision
 division of current loading *.msc file More...
 
LayoutMode _layoutMode { LayoutMode::PAGE }
 
SynthesizerState _synthesizerState
 
- Protected Attributes inherited from Ms::ScoreElement
const ElementStyle_elementStyle { &emptyStyle }
 
PropertyFlags_propertyFlagsList { 0 }
 
LinkedElements_links { 0 }
 

Private Member Functions

ChordRestnextMeasure (ChordRest *element, bool selectBehavior=false, bool mmRest=false)
 
ChordRestprevMeasure (ChordRest *element, bool mmRest=false)
 
void cmdSetBeamMode (Beam::Mode)
 
void cmdResetStyle ()
 
void cmdFlip ()
 
NotegetSelectedNote ()
 
ChordRestupStaff (ChordRest *cr)
 
ChordRestdownStaff (ChordRest *cr)
 
ChordRestnextTrack (ChordRest *cr)
 
ChordRestprevTrack (ChordRest *cr)
 
void padToggle (Pad n, const EditData &ed)
 
void addTempo ()
 
void addMetronome ()
 
void cmdResetBeamMode ()
 
void cmdInsertClef (ClefType)
 
void cmdAddGrace (NoteType, int)
 adds grace note of specified type to selected notes More...
 
void removeChordRest (ChordRest *cr, bool clearSegment)
 
void cmdMoveRest (Rest *, Direction)
 
void cmdMoveLyrics (Lyrics *, Direction)
 
void cmdIncDecDuration (int nSteps, bool stepDotted=false)
 
void cmdAddBracket ()
 
void cmdAddParentheses ()
 
void resetUserStretch ()
 
void createMMRest (Measure *, Measure *, const Fraction &)
 
void beamGraceNotes (Chord *, bool)
 
void checkSlurs ()
 
void checkScore ()
 
bool rewriteMeasures (Measure *fm, Measure *lm, const Fraction &, int staffIdx)
 
bool rewriteMeasures (Measure *fm, const Fraction &ns, int staffIdx)
 
void swingAdjustParams (Chord *, int &, int &, int, int)
 
bool isSubdivided (ChordRest *, int)
 
void addAudioTrack ()
 
QList< FractionsplitGapToMeasureBoundaries (ChordRest *, Fraction)
 
void pasteChordRest (ChordRest *cr, const Fraction &tick, const Interval &)
 
void selectSingle (Element *e, int staffIdx)
 
void selectAdd (Element *e)
 
void selectRange (Element *e, int staffIdx)
 
void cmdAddPitch (const EditData &, int note, bool addFlag, bool insert)
 insert note or add note to chord More...
 
void cmdAddFret (int fret)
 insert note with given fret on current string More...
 
void cmdToggleVisible ()
 
void putNote (const Position &, bool replace)
 
void resetSystems (bool layoutAll, LayoutContext &lc)
 
void collectLinearSystem (LayoutContext &lc)
 
void resetTempo ()
 
void resetTempoRange (const Fraction &tick1, const Fraction &tick2)
 
void deleteSpannersFromRange (const Fraction &t1, const Fraction &t2, int trackStart, int trackEnd, const SelectionFilter &filter)
 Deletes spanners in the given range that match the given selection filter. More...
 
void deleteAnnotationsFromRange (Segment *segStart, Segment *segEnd, int trackStart, int trackEnd, const SelectionFilter &filter)
 Deletes annotations in the given range that match the given selection filter. More...
 
ChordRestdeleteRange (Segment *segStart, Segment *segEnd, int trackStart, int trackEnd, const SelectionFilter &filter)
 Deletes elements in the given range that match the given selection filter. More...
 
void update (bool resetCmdState)
 

Private Attributes

int _linkId { 0 }
 
MasterScore_masterScore { 0 }
 
QList< MuseScoreView * > viewer
 
Excerpt_excerpt { 0 }
 
QString _mscoreVersion
 
int _mscoreRevision
 
QString _layerTags [32]
 
QString _layerTagComments [32]
 
QList< Layer_layer
 
int _currentLayer { 0 }
 
ScoreFont_scoreFont
 
int _pageNumberOffset { 0 }
 Offset for page numbers. More...
 
UpdateState _updateState
 
MeasureBaseList _measures
 
QList< Part * > _parts
 
QList< Staff * > _staves
 
SpannerMap _spanner
 
std::set< Spanner * > _unmanagedSpanner
 
QList< Page * > _pages
 
QList< System * > _systems
 
InputState _is
 
MStyle _style
 
bool _created { false }
 file is never saved, has generated name More...
 
QString _tmpName
 auto saved with this name if not empty More...
 
QString _importedFilePath
 
bool _showInvisible { true }
 
bool _showUnprintable { true }
 
bool _showFrames { true }
 
bool _showPageborders { false }
 
bool _markIrregularMeasures { true }
 
bool _showInstrumentNames { true }
 
bool _showVBox { true }
 
bool _printing { false }
 True if we are drawing to a printer. More...
 
bool _autosaveDirty { true }
 
bool _savedCapture { false }
 True if we saved an image capture. More...
 
bool _saved { false }
 True if project was already saved; only on first save a backup file will be created, subsequent saves will not overwrite the backup file. More...
 
bool _defaultsRead { false }
 defaults were read at MusicXML import, allow export of defaults in convertermode More...
 
bool _isPalette { false }
 
int _mscVersion { MSCVERSION }
 version of current loading *.msc file More...
 
QMap< QString, QString > _metaTags
 
Selection _selection
 
SelectionFilter _selectionFilter
 
Audio_audio { 0 }
 
PlayMode _playMode { PlayMode::SYNTHESIZER }
 
qreal _noteHeadWidth { 0.0 }
 
QString accInfo
 information used by the screen-reader More...
 

Static Private Attributes

static std::set< Score * > validScores
 
static constexpr double _defaultTempo = 2.0
 

Friends

class ChangeSynthesizerState
 
class Chord
 

Member Enumeration Documentation

◆ FileError

enum Ms::Score::FileError : char
strong
Enumerator
FILE_NO_ERROR 
FILE_ERROR 
FILE_NOT_FOUND 
FILE_OPEN_ERROR 
FILE_BAD_FORMAT 
FILE_UNKNOWN_TYPE 
FILE_NO_ROOTFILE 
FILE_TOO_OLD 
FILE_TOO_NEW 
FILE_OLD_300_FORMAT 
FILE_CORRUPTED 
FILE_USER_ABORT 
FILE_IGNORE_ERROR 

Constructor & Destructor Documentation

◆ Score() [1/4]

Ms::Score::Score ( )

◆ Score() [2/4]

Ms::Score::Score ( MasterScore parent,
bool  forcePartStyle = true 
)

◆ Score() [3/4]

Ms::Score::Score ( MasterScore parent,
const MStyle s 
)

◆ Score() [4/4]

Ms::Score::Score ( const Score )
delete

◆ ~Score()

Ms::Score::~Score ( )
virtual

Member Function Documentation

◆ accessibleInfo()

QString Ms::Score::accessibleInfo ( ) const
inline

◆ activeMidiPitches()

std::list< MidiInputEvent > * Ms::Score::activeMidiPitches ( )
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ addArticulation() [1/2]

void Ms::Score::addArticulation ( SymId  attr)

Add attribute attr to all selected notes/rests.

Called from padToggle() to add note prefix/accent.

◆ addArticulation() [2/2]

bool Ms::Score::addArticulation ( Element el,
Articulation atr 
)

◆ addAudioTrack()

void Ms::Score::addAudioTrack ( )
private

◆ addChord()

Chord * Ms::Score::addChord ( const Fraction tick,
TDuration  d,
Chord oc,
bool  genTie,
Tuplet tuplet 
)

◆ addClone()

ChordRest * Ms::Score::addClone ( ChordRest cr,
const Fraction tick,
const TDuration d 
)

◆ addElement()

void Ms::Score::addElement ( Element element)

Add element to its parent.

Several elements (clef, keysig, timesig) need special handling, as they may cause changes throughout the score.

◆ addFiguredBass()

FiguredBass * Ms::Score::addFiguredBass ( )

◆ addHairpin() [1/2]

Hairpin * Ms::Score::addHairpin ( HairpinType  t,
const Fraction tickStart,
const Fraction tickEnd,
int  track 
)

◆ addHairpin() [2/2]

Hairpin * Ms::Score::addHairpin ( HairpinType  type,
ChordRest cr1,
ChordRest cr2 = nullptr,
bool  toCr2End = true 
)

◆ addLayoutFlags()

void Ms::Score::addLayoutFlags ( LayoutFlags  f)
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ addLyrics() [1/2]

void Ms::Score::addLyrics ( const Fraction tick,
int  staffIdx,
const QString &  txt 
)

◆ addLyrics() [2/2]

Lyrics * Ms::Score::addLyrics ( )

◆ addMeasure()

void Ms::Score::addMeasure ( MeasureBase m,
MeasureBase pos 
)

◆ addMetronome()

void Ms::Score::addMetronome ( )
private

◆ addMidiPitch()

Note * Ms::Score::addMidiPitch ( int  pitch,
bool  addFlag 
)

◆ addNote()

Note * Ms::Score::addNote ( Chord chord,
NoteVal noteVal,
bool  forceAccidental = false 
)

◆ addPitch() [1/2]

Note * Ms::Score::addPitch ( NoteVal nval,
bool  addFlag 
)

◆ addPitch() [2/2]

void Ms::Score::addPitch ( int  pitch,
bool  addFlag,
bool  insert 
)

◆ addRefresh()

void Ms::Score::addRefresh ( const QRectF &  r)

◆ addRemoveBreaks()

void Ms::Score::addRemoveBreaks ( int  interval,
bool  lock 
)

◆ addRest() [1/2]

Rest * Ms::Score::addRest ( const Fraction tick,
int  track,
TDuration  d,
Tuplet tuplet 
)

◆ addRest() [2/2]

Rest * Ms::Score::addRest ( Segment seg,
int  track,
TDuration  d,
Tuplet tuplet 
)

◆ addSpanner()

void Ms::Score::addSpanner ( Spanner s)

◆ addTempo()

void Ms::Score::addTempo ( )
private

◆ addTiedMidiPitch()

Note * Ms::Score::addTiedMidiPitch ( int  pitch,
bool  addFlag,
Chord prevChord 
)

◆ addUnmanagedSpanner()

void Ms::Score::addUnmanagedSpanner ( Spanner s)

◆ addViewer()

void Ms::Score::addViewer ( MuseScoreView v)
inline

◆ adjustBracketsDel()

void Ms::Score::adjustBracketsDel ( int  sidx,
int  eidx 
)

◆ adjustBracketsIns()

void Ms::Score::adjustBracketsIns ( int  sidx,
int  eidx 
)

◆ adjustKeySigs()

void Ms::Score::adjustKeySigs ( int  sidx,
int  eidx,
KeyList  km 
)

◆ appendMeasures()

void Ms::Score::appendMeasures ( int  n)

◆ appendMeasuresFromScore()

bool Ms::Score::appendMeasuresFromScore ( Score score,
const Fraction startTick,
const Fraction endTick 
)

◆ appendPart() [1/2]

void Ms::Score::appendPart ( Part p)

◆ appendPart() [2/2]

void Ms::Score::appendPart ( const QString &  name)

◆ appendScore()

bool Ms::Score::appendScore ( Score score,
bool  addPageBreak = false,
bool  addSectionBreak = true 
)

◆ audio()

Audio* Ms::Score::audio ( ) const
inline

◆ autosaveDirty()

bool Ms::Score::autosaveDirty ( ) const
inline

◆ beamGraceNotes()

void Ms::Score::beamGraceNotes ( Chord mainNote,
bool  after 
)
private

◆ changeAccidental() [1/2]

void Ms::Score::changeAccidental ( AccidentalType  idx)

Change accidental to subtype idx for all selected notes.

◆ changeAccidental() [2/2]

void Ms::Score::changeAccidental ( Note note,
Ms::AccidentalType  accidental 
)

Change accidental to subtype for note note.

◆ changeCRlen() [1/2]

void Ms::Score::changeCRlen ( ChordRest cr,
const TDuration d 
)

◆ changeCRlen() [2/2]

void Ms::Score::changeCRlen ( ChordRest cr,
const Fraction dstF,
bool  fillWithRest = true 
)

◆ changeVoice()

void Ms::Score::changeVoice ( int  voice)

◆ checkClefs()

bool Ms::Score::checkClefs ( )

check that clef map is in sync with actual clefs

◆ checkHasMeasures()

bool Ms::Score::checkHasMeasures ( ) const

◆ checkKeys()

bool Ms::Score::checkKeys ( )

check that key map is in sync with actual keys

◆ checkScore()

void Ms::Score::checkScore ( )
private

◆ checkSlurs()

void Ms::Score::checkSlurs ( )
private

◆ checkSpanner()

void Ms::Score::checkSpanner ( const Fraction startTick,
const Fraction lastTick 
)

◆ checkTimeDelete()

bool Ms::Score::checkTimeDelete ( Segment startSegment,
Segment endSegment 
)

◆ clone()

Score * Ms::Score::clone ( )

◆ cloneVoice()

void Ms::Score::cloneVoice ( int  strack,
int  dtrack,
Segment sf,
const Fraction lTick,
bool  link = true,
bool  spanner = true 
)

◆ cmd()

void Ms::Score::cmd ( const QAction *  a,
EditData ed 
)

◆ cmdAddBracket()

void Ms::Score::cmdAddBracket ( )
private

◆ cmdAddFret()

void Ms::Score::cmdAddFret ( int  fret)
private

insert note with given fret on current string

◆ cmdAddGrace()

void Ms::Score::cmdAddGrace ( NoteType  graceType,
int  duration 
)
private

adds grace note of specified type to selected notes

◆ cmdAddInterval()

void Ms::Score::cmdAddInterval ( int  val,
const std::vector< Note *> &  nl 
)

◆ cmdAddOttava()

void Ms::Score::cmdAddOttava ( OttavaType  type)

◆ cmdAddParentheses()

void Ms::Score::cmdAddParentheses ( )
private

◆ cmdAddPitch() [1/2]

void Ms::Score::cmdAddPitch ( const EditData ed,
int  note,
bool  addFlag,
bool  insert 
)
private

insert note or add note to chord

◆ cmdAddPitch() [2/2]

void Ms::Score::cmdAddPitch ( int  note,
bool  addFlag,
bool  insert 
)

◆ cmdAddSpanner() [1/2]

void Ms::Score::cmdAddSpanner ( Spanner spanner,
const QPointF &  pos,
bool  firstStaffOnly = false 
)

◆ cmdAddSpanner() [2/2]

void Ms::Score::cmdAddSpanner ( Spanner spanner,
int  staffIdx,
Segment startSegment,
Segment endSegment 
)

◆ cmdAddStretch()

void Ms::Score::cmdAddStretch ( qreal  val)

◆ cmdAddTie()

void Ms::Score::cmdAddTie ( bool  addToChord = false)

◆ cmdAddTimeSig()

void Ms::Score::cmdAddTimeSig ( Measure fm,
int  staffIdx,
TimeSig ts,
bool  local 
)

◆ cmdConcertPitchChanged()

void Ms::Score::cmdConcertPitchChanged ( bool  flag,
bool   
)

◆ cmdCreateTuplet()

void Ms::Score::cmdCreateTuplet ( ChordRest ocr,
Tuplet tuplet 
)

◆ cmdDecDurationDotted()

void Ms::Score::cmdDecDurationDotted ( )
inline

◆ cmdDeleteSelection()

void Ms::Score::cmdDeleteSelection ( )

◆ cmdDeleteTuplet()

void Ms::Score::cmdDeleteTuplet ( Tuplet tuplet,
bool  replaceWithRest 
)

◆ cmdDoubleDuration()

void Ms::Score::cmdDoubleDuration ( )
inline

◆ cmdEnterRest()

void Ms::Score::cmdEnterRest ( const TDuration d)

◆ cmdExchangeVoice()

void Ms::Score::cmdExchangeVoice ( int  s,
int  d 
)

◆ cmdExplode()

void Ms::Score::cmdExplode ( )

explodes contents of top selected staff into subsequent staves

◆ cmdFlip()

void Ms::Score::cmdFlip ( )
private

◆ cmdFullMeasureRest()

void Ms::Score::cmdFullMeasureRest ( )

◆ cmdHalfDuration()

void Ms::Score::cmdHalfDuration ( )
inline

◆ cmdImplode()

void Ms::Score::cmdImplode ( )

implodes contents of selected staves into top staff for single staff, merge voices

◆ cmdIncDecDuration()

void Ms::Score::cmdIncDecDuration ( int  nSteps,
bool  stepDotted = false 
)
private

◆ cmdIncDurationDotted()

void Ms::Score::cmdIncDurationDotted ( )
inline

◆ cmdInsertClef() [1/2]

void Ms::Score::cmdInsertClef ( ClefType  type)
private

◆ cmdInsertClef() [2/2]

void Ms::Score::cmdInsertClef ( Clef clef,
ChordRest cr 
)

◆ cmdJoinMeasure()

void Ms::Score::cmdJoinMeasure ( Measure m1,
Measure m2 
)

◆ cmdMirrorNoteHead()

void Ms::Score::cmdMirrorNoteHead ( )

◆ cmdMoveLyrics()

void Ms::Score::cmdMoveLyrics ( Lyrics lyrics,
Direction  dir 
)
private

◆ cmdMoveRest()

void Ms::Score::cmdMoveRest ( Rest rest,
Direction  dir 
)
private

◆ cmdPadNoteDecreaseTAB()

void Ms::Score::cmdPadNoteDecreaseTAB ( const EditData ed)
protected

◆ cmdPadNoteIncreaseTAB()

void Ms::Score::cmdPadNoteIncreaseTAB ( const EditData ed)
protected

◆ cmdPaste()

void Ms::Score::cmdPaste ( const QMimeData *  ms,
MuseScoreView view,
Fraction  scale = Fraction(1, 1) 
)

◆ cmdPitchDown()

void Ms::Score::cmdPitchDown ( )
protected

◆ cmdPitchDownOctave()

void Ms::Score::cmdPitchDownOctave ( )
protected

◆ cmdPitchUp()

void Ms::Score::cmdPitchUp ( )
protected

◆ cmdPitchUpOctave()

void Ms::Score::cmdPitchUpOctave ( )
protected

◆ cmdRelayout()

void Ms::Score::cmdRelayout ( )

◆ cmdRemoveEmptyTrailingMeasures()

void Ms::Score::cmdRemoveEmptyTrailingMeasures ( )

◆ cmdRemovePart()

void Ms::Score::cmdRemovePart ( Part part)

◆ cmdRemoveStaff()

void Ms::Score::cmdRemoveStaff ( int  staffIdx)

◆ cmdRemoveTimeSig()

void Ms::Score::cmdRemoveTimeSig ( TimeSig ts)

◆ cmdResequenceRehearsalMarks()

void Ms::Score::cmdResequenceRehearsalMarks ( )

resequences rehearsal marks within a range selection or, if nothing is selected, the entire score

◆ cmdResetAllPositions()

void Ms::Score::cmdResetAllPositions ( )

◆ cmdResetBeamMode()

void Ms::Score::cmdResetBeamMode ( )
private

◆ cmdResetNoteAndRestGroupings()

void Ms::Score::cmdResetNoteAndRestGroupings ( )

◆ cmdResetStyle()

void Ms::Score::cmdResetStyle ( )
private

◆ cmdSelectAll()

void Ms::Score::cmdSelectAll ( )

◆ cmdSelectSection()

void Ms::Score::cmdSelectSection ( )

◆ cmdSetBeamMode()

void Ms::Score::cmdSetBeamMode ( Beam::Mode  mode)
private

◆ cmdSetVisible()

void Ms::Score::cmdSetVisible ( )
protected

◆ cmdSlashFill()

void Ms::Score::cmdSlashFill ( )

fills selected region with slashes

◆ cmdSlashRhythm()

void Ms::Score::cmdSlashRhythm ( )

converts rhythms in selected region to slashes

◆ cmdSplitMeasure()

void Ms::Score::cmdSplitMeasure ( ChordRest cr)

◆ cmdState() [1/2]

CmdState & Ms::Score::cmdState ( )
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ cmdState() [2/2]

const CmdState & Ms::Score::cmdState ( ) const
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ cmdTieNoteList()

std::vector< Note * > Ms::Score::cmdTieNoteList ( const Selection selection,
bool  noteEntryMode 
)
static

◆ cmdTimeDelete()

void Ms::Score::cmdTimeDelete ( )

◆ cmdToggleAutoplace()

void Ms::Score::cmdToggleAutoplace ( bool  all)

◆ cmdToggleHideEmpty()

void Ms::Score::cmdToggleHideEmpty ( )
protected

◆ cmdToggleLayoutBreak()

void Ms::Score::cmdToggleLayoutBreak ( LayoutBreak::Type  type)

◆ cmdToggleMmrest()

void Ms::Score::cmdToggleMmrest ( )
protected

◆ cmdToggleTie()

void Ms::Score::cmdToggleTie ( )

◆ cmdToggleVisible()

void Ms::Score::cmdToggleVisible ( )
private

◆ cmdUnsetVisible()

void Ms::Score::cmdUnsetVisible ( )
protected

◆ collectLinearSystem()

void Ms::Score::collectLinearSystem ( LayoutContext lc)
private

◆ collectMatch()

void Ms::Score::collectMatch ( void *  data,
Element e 
)
static

◆ collectNoteMatch()

void Ms::Score::collectNoteMatch ( void *  data,
Element e 
)
static

◆ collectSystem()

System * Ms::Score::collectSystem ( LayoutContext lc)

◆ colorItem()

void Ms::Score::colorItem ( Element element)

◆ connectTies()

void Ms::Score::connectTies ( bool  silent = false)

Rebuild tie connections.

◆ createBeams()

void Ms::Score::createBeams ( Measure measure)

◆ createCRSequence()

void Ms::Score::createCRSequence ( const Fraction f,
ChordRest cr,
const Fraction tick 
)

◆ created()

bool Ms::Score::created ( ) const
inline

◆ createGraceNotesPlayEvents()

void Ms::Score::createGraceNotesPlayEvents ( const Fraction tick,
Chord chord,
int &  ontime,
int &  trailtime 
)
protected

◆ createMMRest()

void Ms::Score::createMMRest ( Measure m,
Measure lm,
const Fraction len 
)
private

◆ createPlayEvents() [1/2]

void Ms::Score::createPlayEvents ( Chord chord)
protected

◆ createPlayEvents() [2/2]

void Ms::Score::createPlayEvents ( Measure start = nullptr,
Measure end = nullptr 
)

◆ createRehearsalMarkText()

QString Ms::Score::createRehearsalMarkText ( RehearsalMark current) const

◆ createRevision()

void Ms::Score::createRevision ( )

◆ createThumbnail()

QImage Ms::Score::createThumbnail ( )

◆ crMeasure()

Measure * Ms::Score::crMeasure ( int  idx) const

◆ currentLayer()

int Ms::Score::currentLayer ( ) const
inline

◆ currentLayerMask()

uint Ms::Score::currentLayerMask ( ) const
inline

◆ defaultsRead()

bool Ms::Score::defaultsRead ( ) const
inline

◆ defaultTempo()

static constexpr double Ms::Score::defaultTempo ( )
inlinestatic

◆ deleteAnnotationsFromRange()

void Ms::Score::deleteAnnotationsFromRange ( Segment s1,
Segment s2,
int  track1,
int  track2,
const SelectionFilter filter 
)
private

Deletes annotations in the given range that match the given selection filter.

◆ deleteItem()

void Ms::Score::deleteItem ( Element el)

◆ deleteLater()

void Ms::Score::deleteLater ( ScoreElement e)
inline

◆ deleteMeasures()

void Ms::Score::deleteMeasures ( MeasureBase firstMeasure,
MeasureBase lastMeasure 
)

◆ deletePostponed()

void Ms::Score::deletePostponed ( )

◆ deleteRange()

ChordRest * Ms::Score::deleteRange ( Segment s1,
Segment s2,
int  track1,
int  track2,
const SelectionFilter filter 
)
private

Deletes elements in the given range that match the given selection filter.

Returns
A chord/rest inside the selected range that can be used to establish a selection after this deletion operation.

◆ deleteSpannersFromRange()

void Ms::Score::deleteSpannersFromRange ( const Fraction t1,
const Fraction t2,
int  track1,
int  track2,
const SelectionFilter filter 
)
private

Deletes spanners in the given range that match the given selection filter.

◆ deselect()

void Ms::Score::deselect ( Element obj)

◆ deselectAll()

void Ms::Score::deselectAll ( )
inline

◆ dirty()

bool Ms::Score::dirty ( ) const

◆ doLayout()

void Ms::Score::doLayout ( )

◆ doLayoutRange()

void Ms::Score::doLayoutRange ( const Fraction st,
const Fraction et 
)

◆ downAlt()

Element * Ms::Score::downAlt ( Element element)

◆ downAltCtrl()

Note * Ms::Score::downAltCtrl ( Note note) const

◆ downStaff()

ChordRest * Ms::Score::downStaff ( ChordRest cr)
private

◆ dragPosition()

void Ms::Score::dragPosition ( const QPointF &  p,
int *  staffIdx,
Segment **  seg 
) const

◆ duration()

int Ms::Score::duration ( )

◆ endCmd()

void Ms::Score::endCmd ( bool  rollback = false)

End a GUI command by (if undo) ending a user-visble undo and (always) updating the redraw area.

◆ endTick()

Fraction Ms::Score::endTick ( ) const

◆ excerpt()

Excerpt* Ms::Score::excerpt ( )
inline

◆ excerpts() [1/2]

QList< Excerpt * > & Ms::Score::excerpts ( )
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ excerpts() [2/2]

const QList< Excerpt * > & Ms::Score::excerpts ( ) const
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ expandVoice() [1/2]

void Ms::Score::expandVoice ( Segment s,
int  track 
)

◆ expandVoice() [2/2]

void Ms::Score::expandVoice ( )

◆ extractLyrics()

QString Ms::Score::extractLyrics ( )

◆ fileDivision() [1/2]

int Ms::Score::fileDivision ( int  t) const
inline

◆ fileDivision() [2/2]

int Ms::Score::fileDivision ( ) const
inline

division of current loading *.msc file

◆ findCR()

ChordRest * Ms::Score::findCR ( Fraction  tick,
int  track 
) const

◆ findCRinStaff()

ChordRest * Ms::Score::findCRinStaff ( const Fraction tick,
int  staffIdx 
) const

◆ first()

MeasureBase * Ms::Score::first ( ) const

◆ firstElement()

Element * Ms::Score::firstElement ( bool  frame = true)

◆ firstMeasure()

Measure * Ms::Score::firstMeasure ( ) const

◆ firstMeasureMM()

Measure * Ms::Score::firstMeasureMM ( ) const

◆ firstMM()

MeasureBase * Ms::Score::firstMM ( ) const

◆ firstSegment()

Segment * Ms::Score::firstSegment ( SegmentType  s) const

◆ firstSegmentMM()

Segment * Ms::Score::firstSegmentMM ( SegmentType  s) const

◆ fixTicks()

void Ms::Score::fixTicks ( )

This is needed after.

  • inserting or removing a measure
  • changing the sigmap
  • after inserting/deleting time (changes the sigmap)

◆ floatMode()

bool Ms::Score::floatMode ( ) const
inline

◆ footerText()

Text* Ms::Score::footerText ( ) const
inline

◆ forAllLyrics()

void Ms::Score::forAllLyrics ( std::function< void(Lyrics *)>  f)

◆ genCourtesyClef()

bool Ms::Score::genCourtesyClef ( ) const
inline

◆ genCourtesyTimesig()

bool Ms::Score::genCourtesyTimesig ( ) const
inline

◆ getCreateMeasure()

Measure * Ms::Score::getCreateMeasure ( const Fraction tick)

◆ getLinkId()

int Ms::Score::getLinkId ( ) const
inline

◆ getNextMeasure()

void Ms::Score::getNextMeasure ( LayoutContext lc)

◆ getNextSystem()

System * Ms::Score::getNextSystem ( LayoutContext lc)

◆ getPosition()

bool Ms::Score::getPosition ( Position pos,
const QPointF &  p,
int  voice 
) const

◆ getProperty()

QVariant Ms::Score::getProperty ( Pid  ) const
overridevirtual

Implements Ms::ScoreElement.

◆ getSelectedChordRest()

ChordRest * Ms::Score::getSelectedChordRest ( ) const

◆ getSelectedChordRest2()

void Ms::Score::getSelectedChordRest2 ( ChordRest **  cr1,
ChordRest **  cr2 
) const

◆ getSelectedChordRests()

QSet< ChordRest * > Ms::Score::getSelectedChordRests ( ) const

◆ getSelectedElement()

Element* Ms::Score::getSelectedElement ( ) const
inline

◆ getSelectedNote()

Note * Ms::Score::getSelectedNote ( )
private

◆ getText()

Text * Ms::Score::getText ( Tid  subtype)

◆ getTextStyleUserName()

QString Ms::Score::getTextStyleUserName ( Tid  tid)

◆ getViewer()

const QList<MuseScoreView*>& Ms::Score::getViewer ( ) const
inline

◆ globalInsertChord()

void Ms::Score::globalInsertChord ( const Position pos)

◆ globalTimeDelete()

void Ms::Score::globalTimeDelete ( )

◆ harmonyCount()

int Ms::Score::harmonyCount ( )

◆ hasHarmonies()

bool Ms::Score::hasHarmonies ( )

◆ hasLyrics()

bool Ms::Score::hasLyrics ( )

◆ headerText()

Text* Ms::Score::headerText ( ) const
inline

◆ hideEmptyStaves()

void Ms::Score::hideEmptyStaves ( System system,
bool  isFirstSystem 
)

◆ importedFilePath()

QString Ms::Score::importedFilePath ( ) const
inline

◆ inputPos()

Fraction Ms::Score::inputPos ( ) const

◆ inputState() [1/2]

const InputState& Ms::Score::inputState ( ) const
inline

◆ inputState() [2/2]

InputState& Ms::Score::inputState ( )
inline

◆ inputTrack()

int Ms::Score::inputTrack ( ) const
inline

◆ insertChord()

void Ms::Score::insertChord ( const Position pos)

◆ insertMeasure()

void Ms::Score::insertMeasure ( ElementType  type,
MeasureBase measure,
bool  createEmptyMeasures = false 
)

◆ insertPart()

void Ms::Score::insertPart ( Part part,
int  idx 
)

◆ insertStaff()

void Ms::Score::insertStaff ( Staff staff,
int  ridx 
)

◆ insertTime()

void Ms::Score::insertTime ( const Fraction tickPos,
const Fraction tickLen 
)

◆ isMaster()

virtual bool Ms::Score::isMaster ( ) const
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ isPalette()

bool Ms::Score::isPalette ( ) const
inline

◆ isSpannerStartEnd()

bool Ms::Score::isSpannerStartEnd ( const Fraction tick,
int  track 
) const

◆ isSubdivided()

bool Ms::Score::isSubdivided ( ChordRest chord,
int  swingUnit 
)
private

◆ isTopScore()

bool Ms::Score::isTopScore ( ) const

◆ keysig()

int Ms::Score::keysig ( )

◆ lassoSelect()

void Ms::Score::lassoSelect ( const QRectF &  bbox)

◆ lassoSelectEnd()

void Ms::Score::lassoSelectEnd ( )

◆ last()

MeasureBase * Ms::Score::last ( ) const

◆ lastElement()

Element * Ms::Score::lastElement ( bool  frame = true)

◆ lastMeasure()

Measure * Ms::Score::lastMeasure ( ) const

◆ lastMeasureMM()

Measure * Ms::Score::lastMeasureMM ( ) const

◆ lastSegment()

Segment * Ms::Score::lastSegment ( ) const

◆ layer() [1/2]

QList<Layer>& Ms::Score::layer ( )
inline

◆ layer() [2/2]

const QList<Layer>& Ms::Score::layer ( ) const
inline

◆ layerTagComments()

QString* Ms::Score::layerTagComments ( )
inline

◆ layerTags()

QString* Ms::Score::layerTags ( )
inline

◆ layoutChords1()

void Ms::Score::layoutChords1 ( Segment segment,
int  staffIdx 
)

◆ layoutChords2()

qreal Ms::Score::layoutChords2 ( std::vector< Note *> &  notes,
bool  up 
)

◆ layoutChords3()

void Ms::Score::layoutChords3 ( std::vector< Note *> &  notes,
const Staff staff,
Segment segment 
)

◆ layoutLinear()

void Ms::Score::layoutLinear ( bool  layoutAll,
LayoutContext lc 
)

◆ layoutLyrics()

void Ms::Score::layoutLyrics ( System system)

◆ layoutMode()

LayoutMode Ms::Score::layoutMode ( ) const
inline

◆ layoutSystemElements()

void Ms::Score::layoutSystemElements ( System system,
LayoutContext lc 
)

◆ lineMode()

bool Ms::Score::lineMode ( ) const
inline

◆ linkId() [1/2]

int Ms::Score::linkId ( )

◆ linkId() [2/2]

void Ms::Score::linkId ( int  val)

◆ loadStyle()

bool Ms::Score::loadStyle ( const QString &  fn,
bool  ign = false 
)

◆ localInsertChord()

void Ms::Score::localInsertChord ( const Position pos)

◆ localTimeDelete()

void Ms::Score::localTimeDelete ( )

◆ loHeight()

qreal Ms::Score::loHeight ( ) const

◆ loopInTick()

Fraction Ms::Score::loopInTick ( ) const
inline

◆ loopOutTick()

Fraction Ms::Score::loopOutTick ( ) const
inline

◆ loWidth()

qreal Ms::Score::loWidth ( ) const

◆ lyricCount()

int Ms::Score::lyricCount ( )

◆ makeGap()

Fraction Ms::Score::makeGap ( Segment segment,
int  track,
const Fraction _sd,
Tuplet tuplet,
bool  keepChord = false 
)

◆ makeGap1()

bool Ms::Score::makeGap1 ( const Fraction baseTick,
int  staffIdx,
const Fraction len,
int  voiceOffset[VOICES] 
)

◆ makeGapVoice()

bool Ms::Score::makeGapVoice ( Segment seg,
int  track,
Fraction  len,
const Fraction tick 
)

◆ markIrregularMeasures()

bool Ms::Score::markIrregularMeasures ( ) const
inline

◆ masterScore()

MasterScore* Ms::Score::masterScore ( ) const
inline

◆ measure()

MeasureBase * Ms::Score::measure ( int  idx) const

◆ measures()

MeasureBaseList* Ms::Score::measures ( )
inline

◆ metaTag()

QString Ms::Score::metaTag ( const QString &  tag) const

◆ metaTags() [1/2]

const QMap<QString, QString>& Ms::Score::metaTags ( ) const
inline

◆ metaTags() [2/2]

QMap<QString, QString>& Ms::Score::metaTags ( )
inline

◆ midiInputQueue()

QQueue< MidiInputEvent > * Ms::Score::midiInputQueue ( )
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ move()

Element * Ms::Score::move ( const QString &  cmd)

◆ moveDown()

void Ms::Score::moveDown ( ChordRest cr)

◆ movements() [1/2]

Movements * Ms::Score::movements ( )
inlineprotectedvirtual

Reimplemented in Ms::MasterScore.

◆ movements() [2/2]

const Movements * Ms::Score::movements ( ) const
inlineprotectedvirtual

Reimplemented in Ms::MasterScore.

◆ moveUp()

void Ms::Score::moveUp ( ChordRest cr)

◆ mscoreRevision()

int Ms::Score::mscoreRevision ( ) const
inline

◆ mscoreVersion()

QString Ms::Score::mscoreVersion ( ) const
inline

◆ mscVersion()

int Ms::Score::mscVersion ( ) const
inline

◆ nextElement()

Element * Ms::Score::nextElement ( )

◆ nextInputPos()

void Ms::Score::nextInputPos ( ChordRest cr,
bool  doSelect 
)

◆ nextMeasure()

ChordRest * Ms::Score::nextMeasure ( ChordRest element,
bool  selectBehavior = false,
bool  mmRest = false 
)
private

◆ nextRehearsalMarkText()

QString Ms::Score::nextRehearsalMarkText ( RehearsalMark previous,
RehearsalMark current 
) const

◆ nextSeg()

Fraction Ms::Score::nextSeg ( const Fraction tick,
int  track 
)

◆ nextTrack()

ChordRest * Ms::Score::nextTrack ( ChordRest cr)
private

◆ nmeasures()

int Ms::Score::nmeasures ( ) const

◆ noStaves()

bool Ms::Score::noStaves ( ) const
inline

◆ noteEntryMethod()

NoteEntryMethod Ms::Score::noteEntryMethod ( ) const
inline

◆ noteEntryMode()

bool Ms::Score::noteEntryMode ( ) const
inline

◆ noteHeadWidth()

qreal Ms::Score::noteHeadWidth ( ) const
inline

◆ noteValForPosition()

NoteVal Ms::Score::noteValForPosition ( Position  pos,
AccidentalType  at,
bool &  error 
)

◆ npages()

virtual int Ms::Score::npages ( ) const
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ nstaves()

int Ms::Score::nstaves ( ) const
inline

◆ ntracks()

int Ms::Score::ntracks ( ) const
inline

◆ onElementDestruction()

void Ms::Score::onElementDestruction ( Element se)
static

◆ operator=()

Score& Ms::Score::operator= ( const Score )
delete

◆ padToggle()

void Ms::Score::padToggle ( Pad  n,
const EditData ed 
)
private

◆ pageIdx()

virtual int Ms::Score::pageIdx ( Page page) const
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ pageMode()

bool Ms::Score::pageMode ( ) const
inline

◆ pageNumberOffset()

int Ms::Score::pageNumberOffset ( ) const
inline

◆ pages() [1/2]

virtual const QList<Page*>& Ms::Score::pages ( ) const
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ pages() [2/2]

virtual QList<Page*>& Ms::Score::pages ( )
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ parts() [1/2]

QList<Part*>& Ms::Score::parts ( )
inline

◆ parts() [2/2]

const QList<Part*>& Ms::Score::parts ( ) const
inline

◆ pasteChordRest()

void Ms::Score::pasteChordRest ( ChordRest cr,
const Fraction tick,
const Interval srcTranspose 
)
private

◆ pasteStaff()

bool Ms::Score::pasteStaff ( XmlReader e,
Segment dst,
int  staffIdx,
Fraction  scale = Fraction(1, 1) 
)

◆ pasteSymbols()

void Ms::Score::pasteSymbols ( XmlReader e,
ChordRest dst 
)

◆ playChord()

bool Ms::Score::playChord ( ) const
inline

◆ playlistChanged

void Ms::Score::playlistChanged ( )
signal

◆ playlistDirty()

bool Ms::Score::playlistDirty ( ) const
virtual

Reimplemented in Ms::MasterScore.

◆ playMode()

PlayMode Ms::Score::playMode ( ) const
inline

◆ playNote()

bool Ms::Score::playNote ( ) const
inline

◆ playPos()

Fraction Ms::Score::playPos ( ) const
inline

◆ point()

qreal Ms::Score::point ( const Spatium  sp) const
inline

◆ pos() [1/2]

Fraction Ms::Score::pos ( )

◆ pos() [2/2]

Fraction Ms::Score::pos ( POS  pos) const
inline

◆ pos2measure()

Measure * Ms::Score::pos2measure ( const QPointF &  p,
int *  staffIdx,
int *  pitch,
Segment **  seg,
QPointF *  offset 
) const

◆ posChanged

void Ms::Score::posChanged ( POS  ,
unsigned   
)
signal

◆ prevElement()

Element * Ms::Score::prevElement ( )

◆ prevMeasure()

ChordRest * Ms::Score::prevMeasure ( ChordRest element,
bool  mmRest = false 
)
private

◆ prevTrack()

ChordRest * Ms::Score::prevTrack ( ChordRest cr)
private

◆ print()

void Ms::Score::print ( QPainter *  printer,
int  page 
)

◆ printing()

bool Ms::Score::printing ( ) const
inline

◆ processMidiInput()

bool Ms::Score::processMidiInput ( )

◆ propertyDefault()

QVariant Ms::Score::propertyDefault ( Pid  ) const
overridevirtual

Reimplemented from Ms::ScoreElement.

◆ putNote() [1/2]

void Ms::Score::putNote ( const Position p,
bool  replace 
)
private

◆ putNote() [2/2]

void Ms::Score::putNote ( const QPointF &  pos,
bool  replace,
bool  insert 
)

◆ read()

bool Ms::Score::read ( XmlReader e)

◆ readAddConnector()

void Ms::Score::readAddConnector ( ConnectorInfoReader info,
bool  pasteMode 
)
overridevirtual

Reimplemented from Ms::ScoreElement.

◆ readOnly()

bool Ms::Score::readOnly ( ) const
virtual

Reimplemented in Ms::MasterScore.

◆ readStaff()

void Ms::Score::readStaff ( XmlReader e)

◆ rebuildBspTree()

void Ms::Score::rebuildBspTree ( )

◆ rebuildTempoAndTimeSigMaps()

void Ms::Score::rebuildTempoAndTimeSigMaps ( Measure m)

updates tempomap and time sig map for a measure

◆ regroupNotesAndRests()

void Ms::Score::regroupNotesAndRests ( const Fraction startTick,
const Fraction endTick,
int  track 
)

◆ removeAudio()

void Ms::Score::removeAudio ( )

◆ removeChordRest()

void Ms::Score::removeChordRest ( ChordRest cr,
bool  clearSegment 
)
private

◆ removeElement()

void Ms::Score::removeElement ( Element element)

Remove element from its parent.

Several elements (clef, keysig, timesig) need special handling, as they may cause changes throughout the score.

◆ removeHairpin()

void Ms::Score::removeHairpin ( Hairpin h)

◆ removePart()

void Ms::Score::removePart ( Part part)

◆ removeSpanner()

void Ms::Score::removeSpanner ( Spanner s)

◆ removeStaff()

void Ms::Score::removeStaff ( Staff staff)

◆ removeTempo()

void Ms::Score::removeTempo ( const Fraction tick)

◆ removeUnmanagedSpanner()

void Ms::Score::removeUnmanagedSpanner ( Spanner s)

◆ removeViewer()

void Ms::Score::removeViewer ( MuseScoreView v)
inline

◆ renderMidi() [1/2]

void Ms::Score::renderMidi ( EventMap events,
const SynthesizerState synthState 
)

◆ renderMidi() [2/2]

void Ms::Score::renderMidi ( EventMap events,
bool  metronome,
bool  expandRepeats,
const SynthesizerState synthState 
)

◆ repeatList()

const RepeatList & Ms::Score::repeatList ( ) const
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ repitchNote()

void Ms::Score::repitchNote ( const Position pos,
bool  replace 
)

◆ resetSystems()

void Ms::Score::resetSystems ( bool  layoutAll,
LayoutContext lc 
)
private

◆ resetTempo()

void Ms::Score::resetTempo ( )
private

◆ resetTempoRange()

void Ms::Score::resetTempoRange ( const Fraction tick1,
const Fraction tick2 
)
private

◆ resetUserStretch()

void Ms::Score::resetUserStretch ( )
private

◆ respace()

void Ms::Score::respace ( std::vector< ChordRest *> *  elements)

◆ rewriteMeasures() [1/2]

bool Ms::Score::rewriteMeasures ( Measure fm,
Measure lm,
const Fraction ns,
int  staffIdx 
)
private

◆ rewriteMeasures() [2/2]

bool Ms::Score::rewriteMeasures ( Measure fm,
const Fraction ns,
int  staffIdx 
)
private

◆ sanityCheck()

bool Ms::Score::sanityCheck ( const QString &  name = QString())

Check that voice 1 is complete Check that voices > 1 contains less than measure duration.

◆ saveCompressedFile() [1/2]

bool Ms::Score::saveCompressedFile ( QFileInfo &  info,
bool  onlySelection 
)

◆ saveCompressedFile() [2/2]

bool Ms::Score::saveCompressedFile ( QFileDevice *  f,
QFileInfo &  info,
bool  onlySelection,
bool  createThumbnail = true 
)

◆ saved()

bool Ms::Score::saved ( ) const
inline

◆ savedCapture()

bool Ms::Score::savedCapture ( ) const
inline

◆ saveFile() [1/2]

bool Ms::Score::saveFile ( QFileInfo &  info)

◆ saveFile() [2/2]

bool Ms::Score::saveFile ( QIODevice *  f,
bool  msczFormat,
bool  onlySelection = false 
)

◆ saveStyle()

bool Ms::Score::saveStyle ( const QString &  name)

◆ scanElements()

void Ms::Score::scanElements ( void *  data,
void(*)(void *, Element *)  func,
bool  all = true 
)

◆ scanElementsInRange()

void Ms::Score::scanElementsInRange ( void *  data,
void(*)(void *, Element *)  func,
bool  all = true 
)

◆ scoreFont()

ScoreFont* Ms::Score::scoreFont ( ) const
inline

◆ scoreList()

QList< Score * > Ms::Score::scoreList ( )

◆ searchLabel()

Measure * Ms::Score::searchLabel ( const QString &  s,
Measure startMeasure = nullptr,
Measure endMeasure = nullptr 
)

◆ searchLabelWithinSectionFirst()

Measure * Ms::Score::searchLabelWithinSectionFirst ( const QString &  s,
Measure sectionStartMeasure,
Measure sectionEndMeasure 
)

◆ searchMeasure()

Measure * Ms::Score::searchMeasure ( const QPointF &  p) const

◆ searchNote()

ChordRest * Ms::Score::searchNote ( const Fraction tick,
int  track 
) const

◆ searchPage()

Page * Ms::Score::searchPage ( const QPointF &  p) const

◆ searchSystem()

QList< System * > Ms::Score::searchSystem ( const QPointF &  p) const

◆ searchTuplet()

Tuplet * Ms::Score::searchTuplet ( XmlReader e,
int  id 
)

◆ select()

void Ms::Score::select ( Element obj,
SelectType  type = SelectType::SINGLE,
int  staff = 0 
)

◆ selectAdd()

void Ms::Score::selectAdd ( Element e)
private

◆ selection() [1/2]

const Selection& Ms::Score::selection ( ) const
inline

◆ selection() [2/2]

Selection& Ms::Score::selection ( )
inline

◆ selectionChanged()

bool Ms::Score::selectionChanged ( ) const
inline

◆ selectionFilter()

SelectionFilter& Ms::Score::selectionFilter ( )
inline

◆ selectMove()

Element * Ms::Score::selectMove ( const QString &  cmd)

◆ selectRange()

void Ms::Score::selectRange ( Element e,
int  staffIdx 
)
private

◆ selectSimilar()

void Ms::Score::selectSimilar ( Element e,
bool  sameStaff 
)

◆ selectSimilarInRange()

void Ms::Score::selectSimilarInRange ( Element e)

◆ selectSingle()

void Ms::Score::selectSingle ( Element e,
int  staffIdx 
)
private

◆ setAccessibleInfo()

void Ms::Score::setAccessibleInfo ( QString  s)
inline

◆ setAudio()

void Ms::Score::setAudio ( Audio a)
inline

◆ setAutosaveDirty()

void Ms::Score::setAutosaveDirty ( bool  v)
inline

◆ setCreated()

void Ms::Score::setCreated ( bool  val)
inline

◆ setCurrentLayer()

void Ms::Score::setCurrentLayer ( int  val)
inline

◆ setDefaultsRead()

void Ms::Score::setDefaultsRead ( bool  b)
inline

◆ setExcerpt()

void Ms::Score::setExcerpt ( Excerpt e)
inline

◆ setFileDivision()

void Ms::Score::setFileDivision ( int  t)
inline

◆ setFooterText()

void Ms::Score::setFooterText ( Text t)
inline

◆ setGraceNote()

Note * Ms::Score::setGraceNote ( Chord ch,
int  pitch,
NoteType  type,
int  len 
)

Create a grace note in front of a normal note.

  • ch is the chord of the normal note
  • pitch is the pitch of the grace note
  • is the grace note type is the visual duration of the grace note (1/16 or 1/32)

◆ setHeaderText()

void Ms::Score::setHeaderText ( Text t)
inline

◆ setImportedFilePath()

void Ms::Score::setImportedFilePath ( const QString &  filePath)

◆ setInputState()

void Ms::Score::setInputState ( const InputState st)
inline

◆ setInputTrack()

void Ms::Score::setInputTrack ( int  t)
inline

◆ setInstrumentsChanged()

void Ms::Score::setInstrumentsChanged ( bool  v)
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ setLayout() [1/2]

void Ms::Score::setLayout ( const Fraction tick,
int  staff,
const Element e = nullptr 
)
inline

◆ setLayout() [2/2]

void Ms::Score::setLayout ( const Fraction tick1,
const Fraction tick2,
int  staff1,
int  staff2,
const Element e = nullptr 
)
inline

◆ setLayoutAll()

void Ms::Score::setLayoutAll ( int  staff = -1,
const Element e = nullptr 
)
inline

◆ setLayoutMode()

void Ms::Score::setLayoutMode ( LayoutMode  lm)
inline

◆ setLoopInTick()

void Ms::Score::setLoopInTick ( const Fraction tick)
inline

◆ setLoopOutTick()

void Ms::Score::setLoopOutTick ( const Fraction tick)
inline

◆ setMarkIrregularMeasures()

void Ms::Score::setMarkIrregularMeasures ( bool  v)

◆ setMasterScore()

void Ms::Score::setMasterScore ( MasterScore s)
inline

◆ setMetaTag()

void Ms::Score::setMetaTag ( const QString &  tag,
const QString &  val 
)

◆ setMetaTags()

void Ms::Score::setMetaTags ( const QMap< QString, QString > &  t)
inline

◆ setMscoreRevision()

void Ms::Score::setMscoreRevision ( int  val)
inline

◆ setMscoreVersion()

void Ms::Score::setMscoreVersion ( const QString &  val)
inline

◆ setMscVersion()

void Ms::Score::setMscVersion ( int  v)
inline

◆ setNoteEntryMethod()

void Ms::Score::setNoteEntryMethod ( NoteEntryMethod  m)
inline

◆ setNoteEntryMode()

void Ms::Score::setNoteEntryMode ( bool  val)
inline

◆ setNoteHeadWidth()

void Ms::Score::setNoteHeadWidth ( qreal  n)
inline

◆ setNoteRest()

Segment * Ms::Score::setNoteRest ( Segment segment,
int  track,
NoteVal  nval,
Fraction  sd,
Direction  stemDirection = Direction::AUTO,
bool  forceAccidental = false,
bool  rhythmic = false 
)

◆ setPageNumberOffset()

void Ms::Score::setPageNumberOffset ( int  v)
inline

◆ setPaletteMode()

void Ms::Score::setPaletteMode ( bool  palette)
inline

◆ setPause()

void Ms::Score::setPause ( const Fraction tick,
qreal  seconds 
)

◆ setPlayChord()

void Ms::Score::setPlayChord ( bool  v)
inline

◆ setPlaylistDirty()

void Ms::Score::setPlaylistDirty ( )
virtual

Reimplemented in Ms::MasterScore.

◆ setPlayMode()

void Ms::Score::setPlayMode ( PlayMode  v)
inline

◆ setPlayNote()

void Ms::Score::setPlayNote ( bool  v)
inline

◆ setPlayPos()

void Ms::Score::setPlayPos ( const Fraction tick)
inline

◆ setPos()

void Ms::Score::setPos ( POS  pos,
Fraction  tick 
)
inline

◆ setPrinting()

void Ms::Score::setPrinting ( bool  val)
inline

◆ setProperty()

bool Ms::Score::setProperty ( Pid  ,
const QVariant &   
)
overridevirtual

Implements Ms::ScoreElement.

◆ setRest()

Rest * Ms::Score::setRest ( const Fraction tick,
int  track,
const Fraction _l,
bool  useDots,
Tuplet tuplet,
bool  useFullMeasureRest = true 
)

◆ setSaved()

void Ms::Score::setSaved ( bool  v)
inline

◆ setSavedCapture()

void Ms::Score::setSavedCapture ( bool  v)
inline

◆ setScoreFont()

void Ms::Score::setScoreFont ( ScoreFont f)
inline

◆ setSelection()

void Ms::Score::setSelection ( const Selection s)

◆ setSelectionChanged()

void Ms::Score::setSelectionChanged ( bool  val)
inline

◆ setShowFrames()

void Ms::Score::setShowFrames ( bool  v)

◆ setShowInstrumentNames()

void Ms::Score::setShowInstrumentNames ( bool  v)
inline

◆ setShowInvisible()

void Ms::Score::setShowInvisible ( bool  v)

◆ setShowPageborders()

void Ms::Score::setShowPageborders ( bool  v)

◆ setShowUnprintable()

void Ms::Score::setShowUnprintable ( bool  v)

◆ setShowVBox()

void Ms::Score::setShowVBox ( bool  v)
inline

◆ setSpatium()

void Ms::Score::setSpatium ( qreal  v)
inline

◆ setStyle()

void Ms::Score::setStyle ( const MStyle s)

◆ setStyleValue()

void Ms::Score::setStyleValue ( Sid  sid,
QVariant  value 
)
inline

◆ setSynthesizerState()

void Ms::Score::setSynthesizerState ( const SynthesizerState s)

◆ setTempo() [1/2]

void Ms::Score::setTempo ( Segment segment,
qreal  tempo 
)

◆ setTempo() [2/2]

void Ms::Score::setTempo ( const Fraction tick,
qreal  bps 
)

◆ setTmpName()

void Ms::Score::setTmpName ( const QString &  s)
inline

◆ setUpdateAll()

void Ms::Score::setUpdateAll ( )
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ showFrames()

bool Ms::Score::showFrames ( ) const
inline

◆ showInstrumentNames()

bool Ms::Score::showInstrumentNames ( ) const
inline

◆ showInvisible()

bool Ms::Score::showInvisible ( ) const
inline

◆ showPageborders()

bool Ms::Score::showPageborders ( ) const
inline

◆ showUnprintable()

bool Ms::Score::showUnprintable ( ) const
inline

◆ showVBox()

bool Ms::Score::showVBox ( ) const
inline

◆ sigmap()

TimeSigMap * Ms::Score::sigmap ( ) const
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ sortStaves()

void Ms::Score::sortStaves ( QList< int > &  dst)

◆ spanner()

const std::multimap<int, Spanner*>& Ms::Score::spanner ( ) const
inline

◆ spannerMap()

SpannerMap& Ms::Score::spannerMap ( )
inline

◆ spatium()

qreal Ms::Score::spatium ( ) const
inline

◆ spatiumChanged()

void Ms::Score::spatiumChanged ( qreal  oldValue,
qreal  newValue 
)

◆ spell() [1/3]

void Ms::Score::spell ( )

◆ spell() [2/3]

void Ms::Score::spell ( int  startStaff,
int  endStaff,
Segment startSegment,
Segment endSegment 
)

◆ spell() [3/3]

void Ms::Score::spell ( Note note)

◆ spellNotelist()

void Ms::Score::spellNotelist ( std::vector< Note *> &  notes)

◆ splitGapToMeasureBoundaries()

QList< Fraction > Ms::Score::splitGapToMeasureBoundaries ( ChordRest cr,
Fraction  gap 
)
private

◆ splitMeasure()

void Ms::Score::splitMeasure ( Segment segment)

◆ splitStaff()

void Ms::Score::splitStaff ( int  staffIdx,
int  splitPoint 
)

◆ staff()

Staff* Ms::Score::staff ( int  n) const
inline

◆ staffIdx()

int Ms::Score::staffIdx ( const Part part) const

Return index for the first staff of part.

◆ startCmd()

void Ms::Score::startCmd ( )

Start a GUI command by clearing the redraw area and starting a user-visible undo.

◆ state()

ScoreContentState Ms::Score::state ( ) const

◆ staves() [1/2]

QList<Staff*>& Ms::Score::staves ( )
inline

◆ staves() [2/2]

const QList<Staff*>& Ms::Score::staves ( ) const
inline

◆ style() [1/2]

virtual MStyle& Ms::Score::style ( )
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ style() [2/2]

virtual const MStyle& Ms::Score::style ( ) const
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ styleB()

bool Ms::Score::styleB ( Sid  idx) const
inline

◆ styleChanged()

void Ms::Score::styleChanged ( )
virtual

Reimplemented from Ms::ScoreElement.

◆ styleD()

qreal Ms::Score::styleD ( Sid  idx) const
inline

◆ styleI()

int Ms::Score::styleI ( Sid  idx) const
inline

◆ styleP()

qreal Ms::Score::styleP ( Sid  idx) const
inline

◆ styleS()

Spatium Ms::Score::styleS ( Sid  idx) const
inline

◆ styleSt()

QString Ms::Score::styleSt ( Sid  idx) const
inline

◆ styleV()

QVariant Ms::Score::styleV ( Sid  idx) const
inline

◆ swingAdjustParams()

void Ms::Score::swingAdjustParams ( Chord chord,
int &  gateTime,
int &  ontime,
int  swingUnit,
int  swingRatio 
)
private

◆ switchLayer()

bool Ms::Score::switchLayer ( const QString &  s)

◆ switchToPageMode()

void Ms::Score::switchToPageMode ( )

◆ synthesizerState()

SynthesizerState& Ms::Score::synthesizerState ( )
inline

◆ systemMode()

bool Ms::Score::systemMode ( ) const
inline

◆ systems() [1/2]

const QList<System*>& Ms::Score::systems ( ) const
inline

◆ systems() [2/2]

QList<System*>& Ms::Score::systems ( )
inline

◆ tagIsValid()

bool Ms::Score::tagIsValid ( uint  tag) const
inline

◆ tempo()

qreal Ms::Score::tempo ( const Fraction tick) const

◆ tempomap()

TempoMap * Ms::Score::tempomap ( ) const
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ tick2beatType()

BeatType Ms::Score::tick2beatType ( const Fraction tick)

◆ tick2leftSegment()

Segment * Ms::Score::tick2leftSegment ( const Fraction tick) const

return the segment at this tick position if any or the first segment before this tick position

◆ tick2measure()

Measure * Ms::Score::tick2measure ( const Fraction tick) const

◆ tick2measureBase()

MeasureBase * Ms::Score::tick2measureBase ( const Fraction tick) const

◆ tick2measureMM()

Measure * Ms::Score::tick2measureMM ( const Fraction tick) const

◆ tick2rightSegment()

Segment * Ms::Score::tick2rightSegment ( const Fraction tick) const

return the segment at this tick position if any or the first segment after this tick position

◆ tick2segment() [1/3]

Segment * Ms::Score::tick2segment ( const Fraction tick,
bool  first,
SegmentType  st,
bool  useMMrest = false 
) const

◆ tick2segment() [2/3]

Segment * Ms::Score::tick2segment ( const Fraction tick) const

◆ tick2segment() [3/3]

Segment * Ms::Score::tick2segment ( const Fraction tick,
bool  first 
) const

◆ tick2segmentMM() [1/3]

Segment * Ms::Score::tick2segmentMM ( const Fraction tick,
bool  first,
SegmentType  st 
) const

◆ tick2segmentMM() [2/3]

Segment * Ms::Score::tick2segmentMM ( const Fraction tick) const

◆ tick2segmentMM() [3/3]

Segment * Ms::Score::tick2segmentMM ( const Fraction tick,
bool  first 
) const

◆ timeDelete()

void Ms::Score::timeDelete ( Measure m,
Segment startSegment,
const Fraction f 
)

◆ title()

QString Ms::Score::title ( ) const
virtual

Reimplemented in Ms::MasterScore.

◆ tmpName()

QString Ms::Score::tmpName ( ) const
inline

◆ toggleAccidental()

void Ms::Score::toggleAccidental ( AccidentalType  at,
const EditData ed 
)

◆ transpose() [1/2]

bool Ms::Score::transpose ( Note n,
Interval  interval,
bool  useSharpsFlats 
)

◆ transpose() [2/2]

bool Ms::Score::transpose ( TransposeMode  mode,
TransposeDirection  direction,
Key  transposeKey,
int  transposeInterval,
bool  trKeys,
bool  transposeChordNames,
bool  useDoubleSharpsFlats 
)

◆ transposeKeys()

void Ms::Score::transposeKeys ( int  staffStart,
int  staffEnd,
const Fraction tickStart,
const Fraction tickEnd,
const Interval interval,
bool  useInstrument = false,
bool  flip = false 
)

◆ transposeSemitone()

void Ms::Score::transposeSemitone ( int  semitone)

◆ transpositionChanged()

void Ms::Score::transpositionChanged ( Part part,
Interval  oldV,
Fraction  tickStart = { 0, 1 },
Fraction  tickEnd = { -1, 1 } 
)

◆ type()

virtual ElementType Ms::Score::type ( ) const
inlineoverridevirtual

Implements Ms::ScoreElement.

◆ undo()

void Ms::Score::undo ( UndoCommand cmd,
EditData ed = 0 
) const

◆ undoAddBracket()

void Ms::Score::undoAddBracket ( Staff staff,
int  level,
BracketType  type,
int  span 
)

◆ undoAddCR()

void Ms::Score::undoAddCR ( ChordRest element,
Measure measure,
const Fraction tick 
)

◆ undoAddElement()

void Ms::Score::undoAddElement ( Element element)

◆ undoChangeChordRestLen()

void Ms::Score::undoChangeChordRestLen ( ChordRest cr,
const TDuration d 
)

◆ undoChangeClef()

void Ms::Score::undoChangeClef ( Staff ostaff,
Element e,
ClefType  st 
)

◆ undoChangeElement()

void Ms::Score::undoChangeElement ( Element oldElement,
Element newElement 
)

◆ undoChangeFretting()

void Ms::Score::undoChangeFretting ( Note note,
int  pitch,
int  string,
int  fret,
int  tpc1,
int  tpc2 
)

◆ undoChangeInvisible()

void Ms::Score::undoChangeInvisible ( Element e,
bool  v 
)

◆ undoChangeKeySig()

void Ms::Score::undoChangeKeySig ( Staff ostaff,
const Fraction tick,
KeySigEvent  key 
)

◆ undoChangePageNumberOffset()

void Ms::Score::undoChangePageNumberOffset ( int  po)

◆ undoChangePitch()

void Ms::Score::undoChangePitch ( Note note,
int  pitch,
int  tpc1,
int  tpc2 
)

◆ undoChangeSpannerElements()

void Ms::Score::undoChangeSpannerElements ( Spanner spanner,
Element startElement,
Element endElement 
)

◆ undoChangeStyleVal()

void Ms::Score::undoChangeStyleVal ( Sid  idx,
const QVariant &  v 
)

◆ undoChangeTpc()

void Ms::Score::undoChangeTpc ( Note note,
int  tpc 
)

◆ undoChangeTuning()

void Ms::Score::undoChangeTuning ( Note n,
qreal  v 
)

◆ undoChangeUserMirror()

void Ms::Score::undoChangeUserMirror ( Note n,
MScore::DirectionH  d 
)

◆ undoExchangeVoice()

void Ms::Score::undoExchangeVoice ( Measure measure,
int  val1,
int  val2,
int  staff1,
int  staff2 
)

◆ undoInsertPart()

void Ms::Score::undoInsertPart ( Part part,
int  idx 
)

◆ undoInsertStaff()

void Ms::Score::undoInsertStaff ( Staff staff,
int  idx,
bool  createRests = true 
)

◆ undoInsertTime()

void Ms::Score::undoInsertTime ( const Fraction tick,
const Fraction len 
)

◆ undoPropertyChanged() [1/2]

bool Ms::Score::undoPropertyChanged ( Element e,
Pid  t,
const QVariant &  st,
PropertyFlags  ps = PropertyFlags::NOSTYLE 
)

◆ undoPropertyChanged() [2/2]

void Ms::Score::undoPropertyChanged ( ScoreElement e,
Pid  t,
const QVariant &  v,
PropertyFlags  ps = PropertyFlags::NOSTYLE 
)

◆ undoRedo()

void Ms::Score::undoRedo ( bool  undo,
EditData ed 
)

◆ undoRemoveBracket()

void Ms::Score::undoRemoveBracket ( Bracket b)

◆ undoRemoveElement()

void Ms::Score::undoRemoveElement ( Element element)

◆ undoRemoveMeasures()

void Ms::Score::undoRemoveMeasures ( Measure m1,
Measure m2 
)

◆ undoRemovePart()

void Ms::Score::undoRemovePart ( Part part,
int  idx 
)

◆ undoRemoveStaff()

void Ms::Score::undoRemoveStaff ( Staff staff)

◆ undoStack()

UndoStack * Ms::Score::undoStack ( ) const
inlinevirtual

Reimplemented in Ms::MasterScore.

◆ undoTransposeHarmony()

void Ms::Score::undoTransposeHarmony ( Harmony h,
int  rootTpc,
int  baseTpc 
)

◆ uniqueStaves()

QList< int > Ms::Score::uniqueStaves ( ) const

◆ unmanagedSpanners()

const std::set<Spanner*> Ms::Score::unmanagedSpanners ( )
inline

◆ upAlt()

Element * Ms::Score::upAlt ( Element element)

◆ upAltCtrl()

Note * Ms::Score::upAltCtrl ( Note note) const

◆ update() [1/2]

void Ms::Score::update ( bool  resetCmdState)
private

◆ update() [2/2]

void Ms::Score::update ( )
inline

◆ updateCapo()

void Ms::Score::updateCapo ( )

◆ updateChannel()

void Ms::Score::updateChannel ( )

◆ updateHairpin()

void Ms::Score::updateHairpin ( Hairpin h)

◆ updateSelection()

void Ms::Score::updateSelection ( )
inline

◆ updateStaffIndex()

void Ms::Score::updateStaffIndex ( )

◆ updateSwing()

void Ms::Score::updateSwing ( )

◆ updateVelo()

void Ms::Score::updateVelo ( )

◆ upDown()

void Ms::Score::upDown ( bool  up,
UpDownMode  mode 
)

Increment/decrement pitch of note by one or by an octave.

◆ upDownDelta()

void Ms::Score::upDownDelta ( int  pitchDelta)

Add the delta to the pitch of note.

◆ upStaff()

ChordRest * Ms::Score::upStaff ( ChordRest cr)
private

◆ usingNoteEntryMethod()

bool Ms::Score::usingNoteEntryMethod ( NoteEntryMethod  m)
inline

◆ utick2utime()

qreal Ms::Score::utick2utime ( int  tick) const

◆ utime2utick()

int Ms::Score::utime2utick ( qreal  utime) const

◆ write()

void Ms::Score::write ( XmlWriter xml,
bool  onlySelection 
)

◆ writeMovement()

void Ms::Score::writeMovement ( XmlWriter xml,
bool  onlySelection 
)

◆ writeSegments()

void Ms::Score::writeSegments ( XmlWriter xml,
int  strack,
int  etrack,
Segment sseg,
Segment eseg,
bool  writeSystemElements,
bool  forceTimeSig 
)

Friends And Related Function Documentation

◆ ChangeSynthesizerState

friend class ChangeSynthesizerState
friend

◆ Chord

friend class Chord
friend

Member Data Documentation

◆ _audio

Audio* Ms::Score::_audio { 0 }
private

◆ _autosaveDirty

bool Ms::Score::_autosaveDirty { true }
private

◆ _created

bool Ms::Score::_created { false }
private

file is never saved, has generated name

◆ _currentLayer

int Ms::Score::_currentLayer { 0 }
private

◆ _defaultsRead

bool Ms::Score::_defaultsRead { false }
private

defaults were read at MusicXML import, allow export of defaults in convertermode

◆ _defaultTempo

constexpr double Ms::Score::_defaultTempo = 2.0
staticprivate

◆ _excerpt

Excerpt* Ms::Score::_excerpt { 0 }
private

◆ _fileDivision

int Ms::Score::_fileDivision
protected

division of current loading *.msc file

◆ _importedFilePath

QString Ms::Score::_importedFilePath
private

◆ _is

InputState Ms::Score::_is
private

◆ _isPalette

bool Ms::Score::_isPalette { false }
private

◆ _layer

QList<Layer> Ms::Score::_layer
private

◆ _layerTagComments

QString Ms::Score::_layerTagComments[32]
private

◆ _layerTags

QString Ms::Score::_layerTags[32]
private

◆ _layoutMode

LayoutMode Ms::Score::_layoutMode { LayoutMode::PAGE }
protected

◆ _linkId

int Ms::Score::_linkId { 0 }
private

◆ _markIrregularMeasures

bool Ms::Score::_markIrregularMeasures { true }
private

◆ _masterScore

MasterScore* Ms::Score::_masterScore { 0 }
private

◆ _measures

MeasureBaseList Ms::Score::_measures
private

◆ _metaTags

QMap<QString, QString> Ms::Score::_metaTags
private

◆ _mscoreRevision

int Ms::Score::_mscoreRevision
private

◆ _mscoreVersion

QString Ms::Score::_mscoreVersion
private

◆ _mscVersion

int Ms::Score::_mscVersion { MSCVERSION }
private

version of current loading *.msc file

◆ _noteHeadWidth

qreal Ms::Score::_noteHeadWidth { 0.0 }
private

◆ _pageNumberOffset

int Ms::Score::_pageNumberOffset { 0 }
private

Offset for page numbers.

◆ _pages

QList<Page*> Ms::Score::_pages
private

◆ _parts

QList<Part*> Ms::Score::_parts
private

◆ _playMode

PlayMode Ms::Score::_playMode { PlayMode::SYNTHESIZER }
private

◆ _printing

bool Ms::Score::_printing { false }
private

True if we are drawing to a printer.

◆ _saved

bool Ms::Score::_saved { false }
private

True if project was already saved; only on first save a backup file will be created, subsequent saves will not overwrite the backup file.

◆ _savedCapture

bool Ms::Score::_savedCapture { false }
private

True if we saved an image capture.

◆ _scoreFont

ScoreFont* Ms::Score::_scoreFont
private

◆ _selection

Selection Ms::Score::_selection
private

◆ _selectionFilter

SelectionFilter Ms::Score::_selectionFilter
private

◆ _showFrames

bool Ms::Score::_showFrames { true }
private

◆ _showInstrumentNames

bool Ms::Score::_showInstrumentNames { true }
private

◆ _showInvisible

bool Ms::Score::_showInvisible { true }
private

◆ _showPageborders

bool Ms::Score::_showPageborders { false }
private

◆ _showUnprintable

bool Ms::Score::_showUnprintable { true }
private

◆ _showVBox

bool Ms::Score::_showVBox { true }
private

◆ _spanner

SpannerMap Ms::Score::_spanner
private

◆ _staves

QList<Staff*> Ms::Score::_staves
private

◆ _style

MStyle Ms::Score::_style
private

◆ _synthesizerState

SynthesizerState Ms::Score::_synthesizerState
protected

◆ _systems

QList<System*> Ms::Score::_systems
private

◆ _tmpName

QString Ms::Score::_tmpName
private

auto saved with this name if not empty

◆ _unmanagedSpanner

std::set<Spanner*> Ms::Score::_unmanagedSpanner
private

◆ _updateState

UpdateState Ms::Score::_updateState
private

◆ accInfo

QString Ms::Score::accInfo
private

information used by the screen-reader

◆ validScores

std::set< Score * > Ms::Score::validScores
staticprivate

◆ viewer

QList<MuseScoreView*> Ms::Score::viewer
private

The documentation for this class was generated from the following files: