public static GuitarSlide CreateSlide(GuitarChord chord, bool reversed)
 {
     GuitarSlide ret = null;
     if (!chord.HasSlide && Utility.GetSlideData1(chord.Difficulty).IsNotNull())
     {
         ret = new GuitarSlide(chord, reversed);
         ret.IsNew = true;
         ret.CreateEvents();
     }
     return ret;
 }
        public static GuitarSlide CreateSlide(GuitarChord chord, bool reversed)
        {
            GuitarSlide ret = null;

            if (!chord.HasSlide && Utility.GetSlideData1(chord.Difficulty).IsNotNull())
            {
                ret       = new GuitarSlide(chord, reversed);
                ret.IsNew = true;
                ret.CreateEvents();
            }
            return(ret);
        }
Esempio n. 3
0
        public void AddSlide(bool reversed, bool createEvents)
        {
            if (!HasSlide)
            {
                var slide = new GuitarSlide(this, reversed);
                slide.IsNew = true;

                Modifiers.Add(slide);

                if (createEvents)
                {
                    slide.CreateEvents();
                }
            }
        }