         clipsToBounds = true
         self.midiTrackNoteMap = AKMIDIFileTrackNoteMap(midiFile: midiFile, trackNum: trackNumber)
     }
- 
+
     /// Default init from superclass
     public override init(frame: CGRect) {
         super.init(frame: frame)
         self.borderWidth = 0.0
         clipsToBounds = true
     }
- 
+
     /// Initialization within Interface Builder
     public required init?(coder: NSCoder) {
         super.init(coder: coder)
         self.borderWidth = 0.0
         clipsToBounds = true
     }
- 
     //Cursor which displays for the first few seconds of the midi clip until it goes out of bounds
     public func play() {
         playbackCursorRect = CGRect(x: 0, y: 0, width: 3, height: Double(self.frame.height))

    var playbackCursorPosition: Double = 0.0
    var noteGroupPosition: Double = 0.0
    public var midiTrackNoteMap: AKMIDIFileTrackNoteMap!
 
    var trackLength: Double {
        return midiTrackNoteMap.endOfTrack
    }
 
    //How far the view is zoomed in
    public var noteZoomConstant: Double = 10000.0
 
    /// Initialize the Track View
    public convenience init(frame: CGRect, midiFile: AKMIDIFile, trackNumber: Int) {
        self.init(frame: frame)

            cursorTimer.invalidate()
        }
    }

 //Move the note view across the screen
    @objc func scrollNotes() {
        noteGroupPosition -= 1
        collectiveNoteView.frame.origin.x = CGFloat(noteGroupPosition)
    }
}
