@@ -2248,7 +2248,7 @@ static void markUserAccidentals(const int firstStaff,
22482248
22492249static  void  coerceGraceCue (Chord* mainChord, Chord* graceChord)
22502250      {
2251-       if  (mainChord->small ())
2251+       if  (mainChord->isSmall ())
22522252            graceChord->setSmall (true );
22532253      bool  anyPlays = false ;
22542254      for  (auto  n : mainChord->notes ()) {
@@ -4949,7 +4949,7 @@ static TDuration determineDuration(const bool rest, const QString& type, const i
49494949static  Chord* findOrCreateChord (Score* score, Measure* m,
49504950                                const  Fraction& tick, const  int  track, const  int  move,
49514951                                const  TDuration duration, const  Fraction dura,
4952-                                 Beam::Mode bm, bool  small )
4952+                                 Beam::Mode bm, bool  isSmall )
49534953      {
49544954      // qDebug("findOrCreateChord tick %d track %d dur ticks %d ticks %s bm %hhd",
49554955      //        tick, track, duration.ticks(), qPrintable(dura.print()), bm);
@@ -4965,7 +4965,7 @@ static Chord* findOrCreateChord(Score* score, Measure* m,
49654965            c->setTrack (track);
49664966            //  Chord is initialized with the smallness of its first note.
49674967            //  If a non-small note is added later, this is handled in handleSmallness.
4968-             c->setSmall (small );
4968+             c->setSmall (isSmall );
49694969
49704970            setChordRestDuration (c, duration, dura);
49714971            Segment* s = m->getSegment (SegmentType::ChordRest, tick);
@@ -5009,14 +5009,14 @@ NoteType graceNoteType(const TDuration duration, const bool slash)
50095009 */  
50105010
50115011static  Chord* createGraceChord (Score* score, const  int  track,
5012-                                const  TDuration duration, const  bool  slash, const  bool  small )
5012+                                const  TDuration duration, const  bool  slash, const  bool  isSmall )
50135013      {
50145014      Chord* c = new  Chord (score);
50155015      c->setNoteType (graceNoteType (duration, slash));
50165016      c->setTrack (track);
50175017      //  Chord is initialized with the smallness of its first note.
50185018      //  If a non-small note is added later, this is handled in handleSmallness.
5019-       c->setSmall (small );
5019+       c->setSmall (isSmall );
50205020      //  note grace notes have no durations, use default fraction 0/1
50215021      setChordRestDuration (c, duration, Fraction ());
50225022      return  c;
@@ -5058,11 +5058,11 @@ static void handleDisplayStep(ChordRest* cr, int step, int octave, const Fractio
50585058static  void  handleSmallness (bool  cueOrSmall, Note* note, Chord* c)
50595059      {
50605060      if  (cueOrSmall) {
5061-             note->setSmall (!c->small ()); //  Avoid redundant smallness
5061+             note->setSmall (!c->isSmall ()); //  Avoid redundant smallness
50625062            }
50635063      else  {
50645064            note->setSmall (false );
5065-             if  (c->small ()) {
5065+             if  (c->isSmall ()) {
50665066                  //  What was a small chord becomes small notes in a non-small chord
50675067                  c->setSmall (false );
50685068                  for  (Note* otherNote : c->notes ()) {
@@ -5329,7 +5329,7 @@ Note* MusicXMLParserPass2::note(const QString& partId,
53295329
53305330      bool  chord = false ;
53315331      bool  cue = false ;
5332-       bool  small  = false ;
5332+       bool  isSmall  = false ;
53335333      bool  grace = false ;
53345334      bool  rest = false ;
53355335      int  staff = 1 ;
@@ -5416,7 +5416,7 @@ Note* MusicXMLParserPass2::note(const QString& partId,
54165416            else  if  (_e.name () == " stem" 
54175417                  stem (stemDir, noStem);
54185418            else  if  (_e.name () == " type" 
5419-                   small  = (_e.attributes ().value (" size" " cue" attributes ().value (" size" " grace-cue" 
5419+                   isSmall  = (_e.attributes ().value (" size" " cue" attributes ().value (" size" " grace-cue" 
54205420                  type = _e.readElementText ();
54215421                  }
54225422            else  if  (_e.name () == " voice" 
@@ -5521,14 +5521,14 @@ Note* MusicXMLParserPass2::note(const QString& partId,
55215521                  c = findOrCreateChord (_score, measure,
55225522                                        noteStartTime,
55235523                                        msTrack + msVoice, msMove,
5524-                                         duration, dura, bm, small  || cue);
5524+                                         duration, dura, bm, isSmall  || cue);
55255525                  }
55265526            else  {
55275527                  //  grace note
55285528                  //  TODO: check if explicit stem direction should also be set for grace notes
55295529                  //  (the DOM parser does that, but seems to have no effect on the autotester)
55305530                  if  (!chord || gcl.isEmpty ()) {
5531-                         c = createGraceChord (_score, msTrack + msVoice, duration, graceSlash, small  || cue);
5531+                         c = createGraceChord (_score, msTrack + msVoice, duration, graceSlash, isSmall  || cue);
55325532                        //  TODO FIX
55335533                        //  the setStaffMove() below results in identical behaviour as 2.0:
55345534                        //  grace note will be at the wrong staff with the wrong pitch,
@@ -5570,15 +5570,15 @@ Note* MusicXMLParserPass2::note(const QString& partId,
55705570                        }
55715571                  else 
55725572                        cr->setBeamMode (Beam::Mode::NONE);
5573-                   cr->setSmall (small );
5573+                   cr->setSmall (isSmall );
55745574                  if  (noteColor != QColor::Invalid)
55755575                        cr->setColor (noteColor);
55765576                  cr->setVisible (printObject);
55775577                  handleDisplayStep (cr, mnp.displayStep (), mnp.displayOctave (), noteStartTime, _score->spatium ());
55785578                  }
55795579            }
55805580      else  {
5581-             handleSmallness (cue || small , note, c);
5581+             handleSmallness (cue || isSmall , note, c);
55825582            note->setPlay (!cue);          //  cue notes don't play
55835583            note->setHeadGroup (headGroup);
55845584            if  (noteColor != QColor::Invalid)
0 commit comments