MuseScore
3.4
Music composition and notation
|
#include <score.h>
Signals | |
void | posChanged (POS, unsigned) |
void | playlistChanged () |
Public Member Functions | |
Score () | |
Score (MasterScore *, bool forcePartStyle=true) | |
Score (MasterScore *, const MStyle &) | |
Score (const Score &)=delete | |
Score & | operator= (const Score &)=delete |
virtual | ~Score () |
Score * | clone () |
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 &) |
Excerpt * | excerpt () |
void | setExcerpt (Excerpt *e) |
System * | collectSystem (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... | |
Staff * | staff (int n) const |
Measure * | pos2measure (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 *> ¬es) |
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 UndoStack * | undoStack () 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) |
Note * | setGraceNote (Chord *, int pitch, NoteType type, int len) |
Create a grace note in front of a normal note. More... | |
Segment * | setNoteRest (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) |
Rest * | addRest (const Fraction &tick, int track, TDuration, Tuplet *) |
Rest * | addRest (Segment *seg, int track, TDuration d, Tuplet *) |
Chord * | addChord (const Fraction &tick, TDuration d, Chord *oc, bool genTie, Tuplet *tuplet) |
ChordRest * | addClone (ChordRest *cr, const Fraction &tick, const TDuration &d) |
Rest * | setRest (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... | |
ChordRest * | searchNote (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... | |
Note * | addPitch (NoteVal &, bool addFlag) |
void | addPitch (int pitch, bool addFlag, bool insert) |
Note * | addTiedMidiPitch (int pitch, bool addFlag, Chord *prevChord) |
Note * | addMidiPitch (int pitch, bool addFlag) |
Note * | addNote (Chord *, NoteVal ¬eVal, 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 CmdState & | cmdState () |
virtual const CmdState & | cmdState () 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) |
ChordRest * | getSelectedChordRest () 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 () |
Element * | getSelectedElement () const |
const Selection & | selection () const |
Selection & | selection () |
SelectionFilter & | selectionFilter () |
void | setSelection (const Selection &s) |
Fraction | pos () |
Measure * | tick2measure (const Fraction &tick) const |
Measure * | tick2measureMM (const Fraction &tick) const |
MeasureBase * | tick2measureBase (const Fraction &tick) const |
Segment * | tick2segment (const Fraction &tick, bool first, SegmentType st, bool useMMrest=false) const |
Segment * | tick2segment (const Fraction &tick) const |
Segment * | tick2segment (const Fraction &tick, bool first) const |
Segment * | tick2segmentMM (const Fraction &tick, bool first, SegmentType st) const |
Segment * | tick2segmentMM (const Fraction &tick) const |
Segment * | tick2segmentMM (const Fraction &tick, bool first) const |
Segment * | tick2leftSegment (const Fraction &tick) const |
return the segment at this tick position if any or the first segment before this tick position More... | |
Segment * | tick2rightSegment (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... | |
Element * | nextElement () |
Element * | prevElement () |
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 MStyle & | style () |
virtual const MStyle & | style () 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 InputState & | inputState () const |
InputState & | inputState () |
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 TempoMap * | tempomap () const |
virtual TimeSigMap * | sigmap () 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) |
Text * | getText (Tid subtype) |
bool | isPalette () const |
void | setPaletteMode (bool palette) |
void | lassoSelect (const QRectF &) |
void | lassoSelectEnd () |
Page * | searchPage (const QPointF &) const |
QList< System * > | searchSystem (const QPointF &p) const |
Measure * | searchMeasure (const QPointF &p) const |
bool | getPosition (Position *pos, const QPointF &, int voice) const |
void | cmdDeleteTuplet (Tuplet *, bool replaceWithRest) |
Measure * | getCreateMeasure (const Fraction &tick) |
void | adjustBracketsDel (int sidx, int eidx) |
void | adjustBracketsIns (int sidx, int eidx) |
void | adjustKeySigs (int sidx, int eidx, KeyList km) |
Measure * | searchLabel (const QString &s, Measure *startMeasure=nullptr, Measure *endMeasure=nullptr) |
Measure * | searchLabelWithinSectionFirst (const QString &s, Measure *sectionStartMeasure, Measure *sectionEndMeasure) |
virtual const RepeatList & | repeatList () 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 () |
MeasureBaseList * | measures () |
bool | checkHasMeasures () const |
MeasureBase * | first () const |
MeasureBase * | firstMM () const |
MeasureBase * | last () const |
Ms::Measure * | firstMeasure () const |
Ms::Measure * | firstMeasureMM () const |
Ms::Measure * | lastMeasure () const |
Ms::Measure * | lastMeasureMM () const |
MeasureBase * | measure (int idx) const |
Measure * | crMeasure (int idx) const |
Fraction | endTick () const |
Segment * | firstSegment (SegmentType s) const |
Segment * | firstSegmentMM (SegmentType s) const |
Segment * | lastSegment () 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 () |
Lyrics * | addLyrics () |
FiguredBass * | addFiguredBass () |
void | expandVoice (Segment *s, int track) |
void | expandVoice () |
Element * | selectMove (const QString &cmd) |
Element * | move (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 *> ¬es, bool up) |
void | layoutChords3 (std::vector< Note *> &, const Staff *, Segment *) |
SynthesizerState & | synthesizerState () |
void | setSynthesizerState (const SynthesizerState &s) |
void | updateHairpin (Hairpin *) |
void | removeHairpin (Hairpin *) |
MasterScore * | masterScore () 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 |
Tuplet * | searchTuplet (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) |
Audio * | audio () 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 |
SpannerMap & | spannerMap () |
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 *) |
Hairpin * | addHairpin (HairpinType, const Fraction &tickStart, const Fraction &tickEnd, int track) |
Hairpin * | addHairpin (HairpinType, ChordRest *cr1, ChordRest *cr2=nullptr, bool toCr2End=true) |
ChordRest * | findCR (Fraction tick, int track) const |
ChordRest * | findCRinStaff (const Fraction &tick, int staffIdx) const |
void | insertTime (const Fraction &tickPos, const Fraction &tickLen) |
ScoreFont * | scoreFont () 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 *) |
Element * | upAlt (Element *) |
Note * | upAltCtrl (Note *) const |
Element * | downAlt (Element *) |
Note * | downAltCtrl (Note *) const |
Element * | firstElement (bool frame=true) |
Element * | lastElement (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 |
Text * | headerText () const |
Text * | footerText () const |
void | setHeaderText (Text *t) |
void | setFooterText (Text *t) |
void | cmdAddPitch (int note, bool addFlag, bool insert) |
void | forAllLyrics (std::function< void(Lyrics *)> f) |
System * | getNextSystem (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 () |
Score * | score () const |
MasterScore * | masterScore () 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 ElementStyle * | styledProperties () const |
virtual PropertyFlags * | propertyFlagsList () 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 |
LinkedElements * | links () 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 Movements * | movements () |
virtual const Movements * | movements () 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 | |
ChordRest * | nextMeasure (ChordRest *element, bool selectBehavior=false, bool mmRest=false) |
ChordRest * | prevMeasure (ChordRest *element, bool mmRest=false) |
void | cmdSetBeamMode (Beam::Mode) |
void | cmdResetStyle () |
void | cmdFlip () |
Note * | getSelectedNote () |
ChordRest * | upStaff (ChordRest *cr) |
ChordRest * | downStaff (ChordRest *cr) |
ChordRest * | nextTrack (ChordRest *cr) |
ChordRest * | prevTrack (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< Fraction > | splitGapToMeasureBoundaries (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... | |
ChordRest * | deleteRange (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 |
|
strong |
Ms::Score::Score | ( | ) |
Ms::Score::Score | ( | MasterScore * | parent, |
bool | forcePartStyle = true |
||
) |
Ms::Score::Score | ( | MasterScore * | parent, |
const MStyle & | s | ||
) |
|
delete |
|
virtual |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
void Ms::Score::addArticulation | ( | SymId | attr | ) |
Add attribute attr to all selected notes/rests.
Called from padToggle() to add note prefix/accent.
bool Ms::Score::addArticulation | ( | Element * | el, |
Articulation * | atr | ||
) |
|
private |
Chord * Ms::Score::addChord | ( | const Fraction & | tick, |
TDuration | d, | ||
Chord * | oc, | ||
bool | genTie, | ||
Tuplet * | tuplet | ||
) |
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.
FiguredBass * Ms::Score::addFiguredBass | ( | ) |
Hairpin * Ms::Score::addHairpin | ( | HairpinType | t, |
const Fraction & | tickStart, | ||
const Fraction & | tickEnd, | ||
int | track | ||
) |
Hairpin * Ms::Score::addHairpin | ( | HairpinType | type, |
ChordRest * | cr1, | ||
ChordRest * | cr2 = nullptr , |
||
bool | toCr2End = true |
||
) |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
void Ms::Score::addLyrics | ( | const Fraction & | tick, |
int | staffIdx, | ||
const QString & | txt | ||
) |
Lyrics * Ms::Score::addLyrics | ( | ) |
void Ms::Score::addMeasure | ( | MeasureBase * | m, |
MeasureBase * | pos | ||
) |
|
private |
Note * Ms::Score::addMidiPitch | ( | int | pitch, |
bool | addFlag | ||
) |
void Ms::Score::addPitch | ( | int | pitch, |
bool | addFlag, | ||
bool | insert | ||
) |
void Ms::Score::addRefresh | ( | const QRectF & | r | ) |
void Ms::Score::addRemoveBreaks | ( | int | interval, |
bool | lock | ||
) |
void Ms::Score::addSpanner | ( | Spanner * | s | ) |
|
private |
void Ms::Score::addUnmanagedSpanner | ( | Spanner * | s | ) |
|
inline |
void Ms::Score::adjustBracketsDel | ( | int | sidx, |
int | eidx | ||
) |
void Ms::Score::adjustBracketsIns | ( | int | sidx, |
int | eidx | ||
) |
void Ms::Score::adjustKeySigs | ( | int | sidx, |
int | eidx, | ||
KeyList | km | ||
) |
void Ms::Score::appendMeasures | ( | int | n | ) |
bool Ms::Score::appendMeasuresFromScore | ( | Score * | score, |
const Fraction & | startTick, | ||
const Fraction & | endTick | ||
) |
void Ms::Score::appendPart | ( | Part * | p | ) |
void Ms::Score::appendPart | ( | const QString & | name | ) |
bool Ms::Score::appendScore | ( | Score * | score, |
bool | addPageBreak = false , |
||
bool | addSectionBreak = true |
||
) |
|
inline |
|
inline |
|
private |
void Ms::Score::changeAccidental | ( | AccidentalType | idx | ) |
Change accidental to subtype idx for all selected notes.
void Ms::Score::changeAccidental | ( | Note * | note, |
Ms::AccidentalType | accidental | ||
) |
Change accidental to subtype for note note.
void Ms::Score::changeVoice | ( | int | voice | ) |
bool Ms::Score::checkClefs | ( | ) |
check that clef map is in sync with actual clefs
bool Ms::Score::checkHasMeasures | ( | ) | const |
bool Ms::Score::checkKeys | ( | ) |
check that key map is in sync with actual keys
|
private |
|
private |
Score * Ms::Score::clone | ( | ) |
void Ms::Score::cloneVoice | ( | int | strack, |
int | dtrack, | ||
Segment * | sf, | ||
const Fraction & | lTick, | ||
bool | link = true , |
||
bool | spanner = true |
||
) |
void Ms::Score::cmd | ( | const QAction * | a, |
EditData & | ed | ||
) |
|
private |
|
private |
insert note with given fret on current string
|
private |
adds grace note of specified type to selected notes
void Ms::Score::cmdAddInterval | ( | int | val, |
const std::vector< Note *> & | nl | ||
) |
void Ms::Score::cmdAddOttava | ( | OttavaType | type | ) |
|
private |
|
private |
insert note or add note to chord
void Ms::Score::cmdAddPitch | ( | int | note, |
bool | addFlag, | ||
bool | insert | ||
) |
void Ms::Score::cmdAddSpanner | ( | Spanner * | spanner, |
const QPointF & | pos, | ||
bool | firstStaffOnly = false |
||
) |
void Ms::Score::cmdAddSpanner | ( | Spanner * | spanner, |
int | staffIdx, | ||
Segment * | startSegment, | ||
Segment * | endSegment | ||
) |
void Ms::Score::cmdAddStretch | ( | qreal | val | ) |
void Ms::Score::cmdAddTie | ( | bool | addToChord = false | ) |
void Ms::Score::cmdConcertPitchChanged | ( | bool | flag, |
bool | |||
) |
|
inline |
void Ms::Score::cmdDeleteSelection | ( | ) |
void Ms::Score::cmdDeleteTuplet | ( | Tuplet * | tuplet, |
bool | replaceWithRest | ||
) |
|
inline |
void Ms::Score::cmdEnterRest | ( | const TDuration & | d | ) |
void Ms::Score::cmdExchangeVoice | ( | int | s, |
int | d | ||
) |
void Ms::Score::cmdExplode | ( | ) |
explodes contents of top selected staff into subsequent staves
|
private |
void Ms::Score::cmdFullMeasureRest | ( | ) |
|
inline |
void Ms::Score::cmdImplode | ( | ) |
implodes contents of selected staves into top staff for single staff, merge voices
|
private |
|
inline |
|
private |
void Ms::Score::cmdMirrorNoteHead | ( | ) |
|
protected |
|
protected |
void Ms::Score::cmdPaste | ( | const QMimeData * | ms, |
MuseScoreView * | view, | ||
Fraction | scale = Fraction(1, 1) |
||
) |
|
protected |
|
protected |
|
protected |
|
protected |
void Ms::Score::cmdRelayout | ( | ) |
void Ms::Score::cmdRemoveEmptyTrailingMeasures | ( | ) |
void Ms::Score::cmdRemovePart | ( | Part * | part | ) |
void Ms::Score::cmdRemoveStaff | ( | int | staffIdx | ) |
void Ms::Score::cmdRemoveTimeSig | ( | TimeSig * | ts | ) |
void Ms::Score::cmdResequenceRehearsalMarks | ( | ) |
resequences rehearsal marks within a range selection or, if nothing is selected, the entire score
void Ms::Score::cmdResetAllPositions | ( | ) |
|
private |
void Ms::Score::cmdResetNoteAndRestGroupings | ( | ) |
|
private |
void Ms::Score::cmdSelectAll | ( | ) |
void Ms::Score::cmdSelectSection | ( | ) |
|
private |
|
protected |
void Ms::Score::cmdSlashFill | ( | ) |
fills selected region with slashes
void Ms::Score::cmdSlashRhythm | ( | ) |
converts rhythms in selected region to slashes
void Ms::Score::cmdSplitMeasure | ( | ChordRest * | cr | ) |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
|
static |
void Ms::Score::cmdTimeDelete | ( | ) |
void Ms::Score::cmdToggleAutoplace | ( | bool | all | ) |
|
protected |
void Ms::Score::cmdToggleLayoutBreak | ( | LayoutBreak::Type | type | ) |
|
protected |
void Ms::Score::cmdToggleTie | ( | ) |
|
private |
|
protected |
|
private |
|
static |
|
static |
System * Ms::Score::collectSystem | ( | LayoutContext & | lc | ) |
void Ms::Score::colorItem | ( | Element * | element | ) |
void Ms::Score::connectTies | ( | bool | silent = false | ) |
Rebuild tie connections.
void Ms::Score::createBeams | ( | Measure * | measure | ) |
|
inline |
|
protected |
|
protected |
QString Ms::Score::createRehearsalMarkText | ( | RehearsalMark * | current | ) | const |
void Ms::Score::createRevision | ( | ) |
QImage Ms::Score::createThumbnail | ( | ) |
Measure * Ms::Score::crMeasure | ( | int | idx | ) | const |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
private |
Deletes annotations in the given range that match the given selection filter.
void Ms::Score::deleteItem | ( | Element * | el | ) |
|
inline |
void Ms::Score::deleteMeasures | ( | MeasureBase * | firstMeasure, |
MeasureBase * | lastMeasure | ||
) |
void Ms::Score::deletePostponed | ( | ) |
|
private |
Deletes elements in the given range that match the given selection filter.
|
private |
Deletes spanners in the given range that match the given selection filter.
void Ms::Score::deselect | ( | Element * | obj | ) |
|
inline |
bool Ms::Score::dirty | ( | ) | const |
void Ms::Score::doLayout | ( | ) |
void Ms::Score::dragPosition | ( | const QPointF & | p, |
int * | staffIdx, | ||
Segment ** | seg | ||
) | const |
int Ms::Score::duration | ( | ) |
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.
Fraction Ms::Score::endTick | ( | ) | const |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
void Ms::Score::expandVoice | ( | Segment * | s, |
int | track | ||
) |
void Ms::Score::expandVoice | ( | ) |
QString Ms::Score::extractLyrics | ( | ) |
|
inline |
|
inline |
division of current loading *.msc file
MeasureBase * Ms::Score::first | ( | ) | const |
Element * Ms::Score::firstElement | ( | bool | frame = true | ) |
Measure * Ms::Score::firstMeasure | ( | ) | const |
Measure * Ms::Score::firstMeasureMM | ( | ) | const |
MeasureBase * Ms::Score::firstMM | ( | ) | const |
Segment * Ms::Score::firstSegment | ( | SegmentType | s | ) | const |
Segment * Ms::Score::firstSegmentMM | ( | SegmentType | s | ) | const |
void Ms::Score::fixTicks | ( | ) |
This is needed after.
|
inline |
|
inline |
void Ms::Score::forAllLyrics | ( | std::function< void(Lyrics *)> | f | ) |
|
inline |
|
inline |
|
inline |
void Ms::Score::getNextMeasure | ( | LayoutContext & | lc | ) |
System * Ms::Score::getNextSystem | ( | LayoutContext & | lc | ) |
bool Ms::Score::getPosition | ( | Position * | pos, |
const QPointF & | p, | ||
int | voice | ||
) | const |
|
overridevirtual |
Implements Ms::ScoreElement.
ChordRest * Ms::Score::getSelectedChordRest | ( | ) | const |
QSet< ChordRest * > Ms::Score::getSelectedChordRests | ( | ) | const |
|
inline |
|
private |
QString Ms::Score::getTextStyleUserName | ( | Tid | tid | ) |
|
inline |
void Ms::Score::globalInsertChord | ( | const Position & | pos | ) |
void Ms::Score::globalTimeDelete | ( | ) |
int Ms::Score::harmonyCount | ( | ) |
bool Ms::Score::hasHarmonies | ( | ) |
bool Ms::Score::hasLyrics | ( | ) |
|
inline |
void Ms::Score::hideEmptyStaves | ( | System * | system, |
bool | isFirstSystem | ||
) |
|
inline |
Fraction Ms::Score::inputPos | ( | ) | const |
|
inline |
|
inline |
|
inline |
void Ms::Score::insertChord | ( | const Position & | pos | ) |
void Ms::Score::insertMeasure | ( | ElementType | type, |
MeasureBase * | measure, | ||
bool | createEmptyMeasures = false |
||
) |
void Ms::Score::insertPart | ( | Part * | part, |
int | idx | ||
) |
void Ms::Score::insertStaff | ( | Staff * | staff, |
int | ridx | ||
) |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
|
inline |
bool Ms::Score::isSpannerStartEnd | ( | const Fraction & | tick, |
int | track | ||
) | const |
|
private |
bool Ms::Score::isTopScore | ( | ) | const |
int Ms::Score::keysig | ( | ) |
void Ms::Score::lassoSelect | ( | const QRectF & | bbox | ) |
void Ms::Score::lassoSelectEnd | ( | ) |
MeasureBase * Ms::Score::last | ( | ) | const |
Element * Ms::Score::lastElement | ( | bool | frame = true | ) |
Measure * Ms::Score::lastMeasure | ( | ) | const |
Measure * Ms::Score::lastMeasureMM | ( | ) | const |
Segment * Ms::Score::lastSegment | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
void Ms::Score::layoutChords1 | ( | Segment * | segment, |
int | staffIdx | ||
) |
qreal Ms::Score::layoutChords2 | ( | std::vector< Note *> & | notes, |
bool | up | ||
) |
void Ms::Score::layoutChords3 | ( | std::vector< Note *> & | notes, |
const Staff * | staff, | ||
Segment * | segment | ||
) |
void Ms::Score::layoutLinear | ( | bool | layoutAll, |
LayoutContext & | lc | ||
) |
void Ms::Score::layoutLyrics | ( | System * | system | ) |
|
inline |
void Ms::Score::layoutSystemElements | ( | System * | system, |
LayoutContext & | lc | ||
) |
|
inline |
int Ms::Score::linkId | ( | ) |
void Ms::Score::linkId | ( | int | val | ) |
bool Ms::Score::loadStyle | ( | const QString & | fn, |
bool | ign = false |
||
) |
void Ms::Score::localInsertChord | ( | const Position & | pos | ) |
void Ms::Score::localTimeDelete | ( | ) |
qreal Ms::Score::loHeight | ( | ) | const |
|
inline |
|
inline |
qreal Ms::Score::loWidth | ( | ) | const |
int Ms::Score::lyricCount | ( | ) |
Fraction Ms::Score::makeGap | ( | Segment * | segment, |
int | track, | ||
const Fraction & | _sd, | ||
Tuplet * | tuplet, | ||
bool | keepChord = false |
||
) |
bool Ms::Score::makeGap1 | ( | const Fraction & | baseTick, |
int | staffIdx, | ||
const Fraction & | len, | ||
int | voiceOffset[VOICES] | ||
) |
|
inline |
|
inline |
MeasureBase * Ms::Score::measure | ( | int | idx | ) | const |
|
inline |
QString Ms::Score::metaTag | ( | const QString & | tag | ) | const |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
Element * Ms::Score::move | ( | const QString & | cmd | ) |
void Ms::Score::moveDown | ( | ChordRest * | cr | ) |
|
inlineprotectedvirtual |
Reimplemented in Ms::MasterScore.
|
inlineprotectedvirtual |
Reimplemented in Ms::MasterScore.
void Ms::Score::moveUp | ( | ChordRest * | cr | ) |
|
inline |
|
inline |
|
inline |
Element * Ms::Score::nextElement | ( | ) |
void Ms::Score::nextInputPos | ( | ChordRest * | cr, |
bool | doSelect | ||
) |
|
private |
QString Ms::Score::nextRehearsalMarkText | ( | RehearsalMark * | previous, |
RehearsalMark * | current | ||
) | const |
int Ms::Score::nmeasures | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
NoteVal Ms::Score::noteValForPosition | ( | Position | pos, |
AccidentalType | at, | ||
bool & | error | ||
) |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
|
inline |
|
inline |
|
static |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
|
inline |
|
inline |
|
private |
bool Ms::Score::pasteStaff | ( | XmlReader & | e, |
Segment * | dst, | ||
int | staffIdx, | ||
Fraction | scale = Fraction(1, 1) |
||
) |
|
inline |
|
signal |
|
virtual |
Reimplemented in Ms::MasterScore.
|
inline |
|
inline |
|
inline |
|
inline |
Fraction Ms::Score::pos | ( | ) |
Measure * Ms::Score::pos2measure | ( | const QPointF & | p, |
int * | staffIdx, | ||
int * | pitch, | ||
Segment ** | seg, | ||
QPointF * | offset | ||
) | const |
|
signal |
Element * Ms::Score::prevElement | ( | ) |
void Ms::Score::print | ( | QPainter * | printer, |
int | page | ||
) |
|
inline |
bool Ms::Score::processMidiInput | ( | ) |
|
overridevirtual |
Reimplemented from Ms::ScoreElement.
|
private |
void Ms::Score::putNote | ( | const QPointF & | pos, |
bool | replace, | ||
bool | insert | ||
) |
bool Ms::Score::read | ( | XmlReader & | e | ) |
|
overridevirtual |
Reimplemented from Ms::ScoreElement.
|
virtual |
Reimplemented in Ms::MasterScore.
void Ms::Score::readStaff | ( | XmlReader & | e | ) |
void Ms::Score::rebuildBspTree | ( | ) |
void Ms::Score::rebuildTempoAndTimeSigMaps | ( | Measure * | m | ) |
updates tempomap and time sig map for a measure
void Ms::Score::regroupNotesAndRests | ( | const Fraction & | startTick, |
const Fraction & | endTick, | ||
int | track | ||
) |
void Ms::Score::removeAudio | ( | ) |
|
private |
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.
void Ms::Score::removeHairpin | ( | Hairpin * | h | ) |
void Ms::Score::removePart | ( | Part * | part | ) |
void Ms::Score::removeSpanner | ( | Spanner * | s | ) |
void Ms::Score::removeStaff | ( | Staff * | staff | ) |
void Ms::Score::removeTempo | ( | const Fraction & | tick | ) |
void Ms::Score::removeUnmanagedSpanner | ( | Spanner * | s | ) |
|
inline |
void Ms::Score::renderMidi | ( | EventMap * | events, |
const SynthesizerState & | synthState | ||
) |
void Ms::Score::renderMidi | ( | EventMap * | events, |
bool | metronome, | ||
bool | expandRepeats, | ||
const SynthesizerState & | synthState | ||
) |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
void Ms::Score::repitchNote | ( | const Position & | pos, |
bool | replace | ||
) |
|
private |
|
private |
|
private |
void Ms::Score::respace | ( | std::vector< ChordRest *> * | elements | ) |
|
private |
bool Ms::Score::sanityCheck | ( | const QString & | name = QString() | ) |
Check that voice 1 is complete Check that voices > 1 contains less than measure duration.
bool Ms::Score::saveCompressedFile | ( | QFileInfo & | info, |
bool | onlySelection | ||
) |
bool Ms::Score::saveCompressedFile | ( | QFileDevice * | f, |
QFileInfo & | info, | ||
bool | onlySelection, | ||
bool | createThumbnail = true |
||
) |
|
inline |
|
inline |
bool Ms::Score::saveFile | ( | QFileInfo & | info | ) |
bool Ms::Score::saveFile | ( | QIODevice * | f, |
bool | msczFormat, | ||
bool | onlySelection = false |
||
) |
bool Ms::Score::saveStyle | ( | const QString & | name | ) |
void Ms::Score::scanElements | ( | void * | data, |
void(*)(void *, Element *) | func, | ||
bool | all = true |
||
) |
void Ms::Score::scanElementsInRange | ( | void * | data, |
void(*)(void *, Element *) | func, | ||
bool | all = true |
||
) |
|
inline |
QList< Score * > Ms::Score::scoreList | ( | ) |
Measure * Ms::Score::searchLabel | ( | const QString & | s, |
Measure * | startMeasure = nullptr , |
||
Measure * | endMeasure = nullptr |
||
) |
Measure * Ms::Score::searchLabelWithinSectionFirst | ( | const QString & | s, |
Measure * | sectionStartMeasure, | ||
Measure * | sectionEndMeasure | ||
) |
Measure * Ms::Score::searchMeasure | ( | const QPointF & | p | ) | const |
Page * Ms::Score::searchPage | ( | const QPointF & | p | ) | const |
QList< System * > Ms::Score::searchSystem | ( | const QPointF & | p | ) | const |
void Ms::Score::select | ( | Element * | obj, |
SelectType | type = SelectType::SINGLE , |
||
int | staff = 0 |
||
) |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
Element * Ms::Score::selectMove | ( | const QString & | cmd | ) |
|
private |
void Ms::Score::selectSimilar | ( | Element * | e, |
bool | sameStaff | ||
) |
void Ms::Score::selectSimilarInRange | ( | Element * | e | ) |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Create a grace note in front of a normal note.
|
inline |
void Ms::Score::setImportedFilePath | ( | const QString & | filePath | ) |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Ms::Score::setMarkIrregularMeasures | ( | bool | v | ) |
|
inline |
void Ms::Score::setMetaTag | ( | const QString & | tag, |
const QString & | val | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Segment * Ms::Score::setNoteRest | ( | Segment * | segment, |
int | track, | ||
NoteVal | nval, | ||
Fraction | sd, | ||
Direction | stemDirection = Direction::AUTO , |
||
bool | forceAccidental = false , |
||
bool | rhythmic = false |
||
) |
|
inline |
|
inline |
void Ms::Score::setPause | ( | const Fraction & | tick, |
qreal | seconds | ||
) |
|
inline |
|
virtual |
Reimplemented in Ms::MasterScore.
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Implements Ms::ScoreElement.
Rest * Ms::Score::setRest | ( | const Fraction & | tick, |
int | track, | ||
const Fraction & | _l, | ||
bool | useDots, | ||
Tuplet * | tuplet, | ||
bool | useFullMeasureRest = true |
||
) |
|
inline |
|
inline |
|
inline |
void Ms::Score::setSelection | ( | const Selection & | s | ) |
|
inline |
void Ms::Score::setShowFrames | ( | bool | v | ) |
|
inline |
void Ms::Score::setShowInvisible | ( | bool | v | ) |
void Ms::Score::setShowPageborders | ( | bool | v | ) |
void Ms::Score::setShowUnprintable | ( | bool | v | ) |
|
inline |
|
inline |
void Ms::Score::setStyle | ( | const MStyle & | s | ) |
|
inline |
void Ms::Score::setSynthesizerState | ( | const SynthesizerState & | s | ) |
void Ms::Score::setTempo | ( | Segment * | segment, |
qreal | tempo | ||
) |
void Ms::Score::setTempo | ( | const Fraction & | tick, |
qreal | bps | ||
) |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
void Ms::Score::sortStaves | ( | QList< int > & | dst | ) |
|
inline |
|
inline |
|
inline |
void Ms::Score::spatiumChanged | ( | qreal | oldValue, |
qreal | newValue | ||
) |
void Ms::Score::spell | ( | ) |
void Ms::Score::spell | ( | int | startStaff, |
int | endStaff, | ||
Segment * | startSegment, | ||
Segment * | endSegment | ||
) |
void Ms::Score::spell | ( | Note * | note | ) |
void Ms::Score::spellNotelist | ( | std::vector< Note *> & | notes | ) |
void Ms::Score::splitMeasure | ( | Segment * | segment | ) |
void Ms::Score::splitStaff | ( | int | staffIdx, |
int | splitPoint | ||
) |
|
inline |
int Ms::Score::staffIdx | ( | const Part * | part | ) | const |
Return index for the first staff of part.
void Ms::Score::startCmd | ( | ) |
Start a GUI command by clearing the redraw area and starting a user-visible undo.
ScoreContentState Ms::Score::state | ( | ) | const |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
|
inline |
|
virtual |
Reimplemented from Ms::ScoreElement.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
bool Ms::Score::switchLayer | ( | const QString & | s | ) |
void Ms::Score::switchToPageMode | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
qreal Ms::Score::tempo | ( | const Fraction & | tick | ) | const |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
return the segment at this tick position if any or the first segment before this tick position
MeasureBase * Ms::Score::tick2measureBase | ( | const Fraction & | tick | ) | const |
return the segment at this tick position if any or the first segment after this tick position
Segment * Ms::Score::tick2segment | ( | const Fraction & | tick, |
bool | first, | ||
SegmentType | st, | ||
bool | useMMrest = false |
||
) | const |
Segment * Ms::Score::tick2segmentMM | ( | const Fraction & | tick, |
bool | first, | ||
SegmentType | st | ||
) | const |
|
virtual |
Reimplemented in Ms::MasterScore.
|
inline |
void Ms::Score::toggleAccidental | ( | AccidentalType | at, |
const EditData & | ed | ||
) |
bool Ms::Score::transpose | ( | TransposeMode | mode, |
TransposeDirection | direction, | ||
Key | transposeKey, | ||
int | transposeInterval, | ||
bool | trKeys, | ||
bool | transposeChordNames, | ||
bool | useDoubleSharpsFlats | ||
) |
void Ms::Score::transposeKeys | ( | int | staffStart, |
int | staffEnd, | ||
const Fraction & | tickStart, | ||
const Fraction & | tickEnd, | ||
const Interval & | interval, | ||
bool | useInstrument = false , |
||
bool | flip = false |
||
) |
void Ms::Score::transposeSemitone | ( | int | semitone | ) |
void Ms::Score::transpositionChanged | ( | Part * | part, |
Interval | oldV, | ||
Fraction | tickStart = { 0, 1 } , |
||
Fraction | tickEnd = { -1, 1 } |
||
) |
|
inlineoverridevirtual |
Implements Ms::ScoreElement.
void Ms::Score::undo | ( | UndoCommand * | cmd, |
EditData * | ed = 0 |
||
) | const |
void Ms::Score::undoAddBracket | ( | Staff * | staff, |
int | level, | ||
BracketType | type, | ||
int | span | ||
) |
void Ms::Score::undoAddElement | ( | Element * | element | ) |
void Ms::Score::undoChangeFretting | ( | Note * | note, |
int | pitch, | ||
int | string, | ||
int | fret, | ||
int | tpc1, | ||
int | tpc2 | ||
) |
void Ms::Score::undoChangeInvisible | ( | Element * | e, |
bool | v | ||
) |
void Ms::Score::undoChangeKeySig | ( | Staff * | ostaff, |
const Fraction & | tick, | ||
KeySigEvent | key | ||
) |
void Ms::Score::undoChangePageNumberOffset | ( | int | po | ) |
void Ms::Score::undoChangePitch | ( | Note * | note, |
int | pitch, | ||
int | tpc1, | ||
int | tpc2 | ||
) |
void Ms::Score::undoChangeSpannerElements | ( | Spanner * | spanner, |
Element * | startElement, | ||
Element * | endElement | ||
) |
void Ms::Score::undoChangeStyleVal | ( | Sid | idx, |
const QVariant & | v | ||
) |
void Ms::Score::undoChangeTpc | ( | Note * | note, |
int | tpc | ||
) |
void Ms::Score::undoChangeTuning | ( | Note * | n, |
qreal | v | ||
) |
void Ms::Score::undoChangeUserMirror | ( | Note * | n, |
MScore::DirectionH | d | ||
) |
void Ms::Score::undoExchangeVoice | ( | Measure * | measure, |
int | val1, | ||
int | val2, | ||
int | staff1, | ||
int | staff2 | ||
) |
void Ms::Score::undoInsertPart | ( | Part * | part, |
int | idx | ||
) |
void Ms::Score::undoInsertStaff | ( | Staff * | staff, |
int | idx, | ||
bool | createRests = true |
||
) |
bool Ms::Score::undoPropertyChanged | ( | Element * | e, |
Pid | t, | ||
const QVariant & | st, | ||
PropertyFlags | ps = PropertyFlags::NOSTYLE |
||
) |
void Ms::Score::undoPropertyChanged | ( | ScoreElement * | e, |
Pid | t, | ||
const QVariant & | v, | ||
PropertyFlags | ps = PropertyFlags::NOSTYLE |
||
) |
void Ms::Score::undoRedo | ( | bool | undo, |
EditData * | ed | ||
) |
void Ms::Score::undoRemoveBracket | ( | Bracket * | b | ) |
void Ms::Score::undoRemoveElement | ( | Element * | element | ) |
void Ms::Score::undoRemovePart | ( | Part * | part, |
int | idx | ||
) |
void Ms::Score::undoRemoveStaff | ( | Staff * | staff | ) |
|
inlinevirtual |
Reimplemented in Ms::MasterScore.
void Ms::Score::undoTransposeHarmony | ( | Harmony * | h, |
int | rootTpc, | ||
int | baseTpc | ||
) |
QList< int > Ms::Score::uniqueStaves | ( | ) | const |
|
inline |
|
private |
|
inline |
void Ms::Score::updateCapo | ( | ) |
void Ms::Score::updateChannel | ( | ) |
void Ms::Score::updateHairpin | ( | Hairpin * | h | ) |
|
inline |
void Ms::Score::updateStaffIndex | ( | ) |
void Ms::Score::updateSwing | ( | ) |
void Ms::Score::updateVelo | ( | ) |
void Ms::Score::upDown | ( | bool | up, |
UpDownMode | mode | ||
) |
Increment/decrement pitch of note by one or by an octave.
void Ms::Score::upDownDelta | ( | int | pitchDelta | ) |
Add the delta to the pitch of note.
|
inline |
qreal Ms::Score::utick2utime | ( | int | tick | ) | const |
int Ms::Score::utime2utick | ( | qreal | utime | ) | const |
void Ms::Score::write | ( | XmlWriter & | xml, |
bool | onlySelection | ||
) |
void Ms::Score::writeMovement | ( | XmlWriter & | xml, |
bool | onlySelection | ||
) |
void Ms::Score::writeSegments | ( | XmlWriter & | xml, |
int | strack, | ||
int | etrack, | ||
Segment * | sseg, | ||
Segment * | eseg, | ||
bool | writeSystemElements, | ||
bool | forceTimeSig | ||
) |
|
friend |
|
friend |
|
private |
|
private |
|
private |
file is never saved, has generated name
|
private |
|
private |
defaults were read at MusicXML import, allow export of defaults in convertermode
|
staticprivate |
|
private |
|
protected |
division of current loading *.msc file
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
version of current loading *.msc file
|
private |
|
private |
Offset for page numbers.
|
private |
|
private |
|
private |
|
private |
True if we are drawing to a printer.
|
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.
|
private |
True if we saved an image capture.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
private |
auto saved with this name if not empty
|
private |
|
private |
|
private |
information used by the screen-reader
|
staticprivate |
|
private |