public NoteBuilder SetRest(RestMusicXML rest)
 {
     if (rest == null)
     {
         throw new ArgumentNullException("NoteBuilder::SetRest() - Rest Argument cannot be null");
     }
     AppendItem(NoteChoiceTypeMusicXML.rest, rest);
     return(this);
 }
        private bool CheckIfCustomPitchSet()
        {
            RestMusicXML restElement = noteItem.Items.OfType <RestMusicXML>().FirstOrDefault();

            if (restElement?.DisplayOctave != null)
            {
                customStep   = restElement.DisplayStep;
                customOctave = restElement.DisplayOctave;
                return(true);
            }
            return(false);
        }
 public ScorePartwisePartMeasureBuilder AddRest(RestMusicXML rest)
 {
     measure.AppendNewItem(rest);
     return(this);
 }