public ExtendedMixAttributes GetExtendedMixAttributes(string trackDescription)
 {
     if (trackDescription == "")
     {
         return(null);
     }
     return(ExtendedMixes
            .FirstOrDefault(em => em.TrackDescription == trackDescription));
 }
 public AutomationAttributes Clone()
 {
     return(new AutomationAttributes()
     {
         Track = Track,
         ExtendedMixes = ExtendedMixes.Select(x => x.Clone()).ToList(),
         SampleTriggers = SampleTriggers.Select(x => x.Clone()).ToList(),
         TrackFXTriggers = TrackFXTriggers.Select(x => x.Clone()).ToList(),
         TrackSamples = TrackSamples.Select(x => x.Clone()).ToList(),
         LoopSamples = LoopSamples.Select(x => x.Clone()).ToList(),
     });
 }
        public void RemoveExtendedMixAttributes(string trackDescription)
        {
            if (trackDescription == "")
            {
                return;
            }
            var extendedMix = GetExtendedMixAttributes(trackDescription);

            if (extendedMix != null)
            {
                ExtendedMixes.Remove(extendedMix);
            }
        }