Exemplo n.º 1
0
        public Track GetTrack(string trackName, bool createIfNotFound = false)
        {
            // Gets existing track specified by Name if it already exists
            // Creates it if it does not
            Track ret = Sequence.FindTrack(trackName, createIfNotFound);

            if (ret == null)
            {
                if (createIfNotFound)
                {
                    ret = Sequence.CreateTrack(trackName);
                    ret.Centiseconds = Sequence.Centiseconds;
                }
                //Sequence.AddTrack(ret);
            }
            return(ret);
        }