示例#1
0
        public GuitarChord(MidiEventPair pair)
            : base(pair, GuitarMessageType.GuitarChord)
        {
            Notes           = new GuitarChordNoteList(this);
            Modifiers       = new List <ChordModifier>();
            ChordNameEvents = new GuitarChordNameList(this);

            chordConfig = new GuitarChordConfig()
            {
                Frets          = this.NoteFrets.ToArray(),
                Channels       = this.NoteChannels.ToArray(),
                IsHammeron     = this.HasHammeron,
                IsSlide        = this.HasSlide,
                IsSlideReverse = this.HasSlideReversed,
                StrumMode      = this.StrumMode,
            };
        }
示例#2
0
        public GuitarChord(GuitarMessageList owner, TickPair pair, GuitarDifficulty difficulty, IEnumerable <GuitarNote> notes)
            : base(owner, pair, GuitarMessageType.GuitarChord)
        {
            Notes           = new GuitarChordNoteList(this);
            Modifiers       = new List <ChordModifier>();
            ChordNameEvents = new GuitarChordNameList(this);

            Notes.SetNotes(notes);
            SetTicks(pair);

            chordConfig = new GuitarChordConfig()
            {
                Frets          = this.NoteFrets.ToArray(),
                Channels       = this.NoteChannels.ToArray(),
                IsHammeron     = this.HasHammeron,
                IsSlide        = this.HasSlide,
                IsSlideReverse = this.HasSlideReversed,
                StrumMode      = this.StrumMode,
            };
        }