             MusicSequenceGetTrackCount(sequence, &count)
             tracks.append(AKMusicTrack(musicTrack: newMusicTrack))
             initTracks()
+            return tracks.last!
         }else{
             //cannot
+            return nil
         }
     }
     

        }
    }
    
    public func beatsForSeconds(seconds:Double)->Double{
        var outBeats:Double = MusicTimeStamp()
        MusicSequenceGetBeatsForSeconds(sequence, Float64(seconds), &outBeats)

    }
    
    /// Get a new track
    public func newTrack()->AKMusicTrack? {
        if(!isAvSeq){
            var newMusicTrack = MusicTrack()
            MusicSequenceNewTrack(sequence, &newMusicTrack)
