addModifier(modifier, position) {
    if (position !== undefined) {
      modifier.setPosition(position);
    }

    modifier.setStave(this);
    this.formatted = false;
    this.modifiers.push(modifier);
    return this;
  }
// modifiers (BarLines) are automatically added upon construction.
modifiers (BarLines) are automatically added upon construction.
modifiers ( BarLines ) are automatically added upon construction .
addModifier(modifier, position) {
    if (position !== undefined) {
      modifier.setPosition(position);
    }
    modifier.setStave(this);
    this.formatted = false;
    this.modifiers.push(modifier);
    return this;
  }
addModifier ( modifier , position ) { if ( position !== undefined ) { modifier . setPosition ( position ) ; } modifier . setStave ( this ) ; this . formatted = false ; this . modifiers . push ( modifier ) ; return this ; }
modifiers (BarLines) are automatically added upon construction.
modifiers ( BarLines ) are automatically added upon construction .