         }
         return tempos
     }
-
+    
     /// returns the tempo at a given position in beats
     /// - parameter at: Position at which the tempo is desired
+    ///
+    /// if there are more than one events precisely at the requested position
+    /// it will return the most recently added
     open func getTempo(at position: MusicTimeStamp) -> Double {
         // MIDI file with no tempo events defaults to 120 bpm
         var tempoAtPosition: Double = 120.0

            MusicPlayerSetTime(existingMusicPlayer, time)
        }
    }

    /// Generate NSData from the sequence
    open func genData() -> Data? {
        var status = noErr

        if let existingNewMusicTrack = newMusicTrack {
            tracks.append(AKMusicTrack(musicTrack: existingNewMusicTrack, name: name))
        }
        
        //AKLog("Calling initTracks() from newTrack")
        //initTracks()
        return tracks.last
    }
    
    /// Delete track and remove it from the sequence
    /// Not to be used during playback
    open func deleteTrack(trackIndex: Int) {
