      - parameter measureRepeat: The repeat to insert.
      - parameter index: The index where the repeat should be inserted.
      - throws:
-     - `StaffError.measureIndexOutOfRange`
-     - `StaffError.cannotInsertRepeatWhereOneAlreadyExists`
+         - `StaffError.measureIndexOutOfRange`
+         - `StaffError.cannotInsertRepeatWhereOneAlreadyExists`
      */
     public mutating func insertRepeat(_ measureRepeat: MeasureRepeat, at index: Int) throws {
         let notesHolderIndex = try notesHolderIndexFromMeasureIndex(index)

     - parameter setIndex: The index of the set of notes you want to modify. There can be multiple sets of notes
     that make up a full measure on their own. i.e. bass drum notes and hi-hat notes. See `Measure` for more info.
     - throws:
     - `StaffError.noteIndexoutOfRange`
     - `StaffError.noNextNoteToTie` if the note specified is the last note in the staff.
     - `StaffError.measureIndexOutOfRange`
     - `StaffError.repeatedMeasureCannotHaveTie` if the index for the measure specified refers to a measure that is
     a repeat of another measure.
     - `MeasureError.noteIndexOutOfRange`
     - `StaffError.internalError`, `MeasureError.internalError` if the function has an internal implementation error.
     */
    public mutating func removeTieFromNote(at noteIndex: Int, inMeasureAt measureIndex: Int, inSet setIndex: Int = 0) throws {
        try modifyTieForNote(at: noteIndex, inMeasureAt: measureIndex, removeTie: true, inSet: setIndex)

     - returns A `MeasureRepeat` that contains the measure(s) that are repeated as well as the repeat count. Returns nil
     if the measure at the specified index is not part of repeat.
     - throws:
         - `StaffError.measureIndexOutOfRange`
         - `StaffError.internalError` if the function has an internal implementation error.
     */
    public func measureRepeat(at measureIndex: Int) throws -> MeasureRepeat? {
        let (notesHolderIndex, _) = try notesHolderIndexFromMeasureIndex(measureIndex)
