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

        }
    }
    
    /// Set loop functionality of entire sequence
    public func loopToggle() {
        (loopEnabled ? loopOff() : loopOn())

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