                    }
                     prevPosition = pos
                 }
-                
             }
         }
     }

                    prevPlayTimeDate = Date()
                }
                let pos = lyrics.position(time: time)
                if prevPosition == nil || (prevPosition != nil && pos != prevPosition!) {
                    if prevPosition == nil || (pos.line != prevPosition!.line) {
                        scroll(toLine: pos.line)
                    }
                    let marking = lyrics.marking(position: pos)
                    lyricsTextView.textStorage?.addAttributes([NSForegroundColorAttributeName: NSColor.gray], range: marking.finishedLines)
                    lyricsTextView.textStorage?.addAttributes([NSForegroundColorAttributeName: NSColor.orange], range: marking.currentLine)

        } else {
            to = lineHeight * CGFloat(lineNo) - clipHeight / 2
        }
        var origin = clipView.bounds.origin
        if origin.y != to {
            NSAnimationContext.beginGrouping()
            NSAnimationContext.current().duration = AnimationDuration
            origin.y = to
            clipView.animator().setBoundsOrigin(origin)
            NSAnimationContext.endGrouping()
        }
    }
}
