예제 #1
0
 public AddNoteToPartVal(Part p, Measure m, NoteChord c, Note n)
 {
     part    = p;
     measure = m;
     chord   = c;
     note    = n;
 }
예제 #2
0
 public ChangeNotePositionVal(Measure m, NoteChord f, NoteChord s, Note n, int?ns)
 {
     measure      = m;
     first_chord  = f;
     second_chord = s;
     note         = n;
     new_string   = ns;
 }
예제 #3
0
 public ChangeNotePositionNewMeasureVal(Measure fm, Measure sm, NoteChord fc, NoteChord sc, Note n, int?ns)
 {
     first_measure  = fm;
     second_measure = sm;
     first_chord    = fc;
     second_chord   = sc;
     note           = n;
     note_string    = ns;
 }
예제 #4
0
        public override Chord createChord(Measure parent, ReaderInfo info)
        {
            var length = Length.createInstance((GuitarTab.NoteLength)NoteLength, (GuitarTab.TupletType)TupletType);
            var chord  = NoteChord.createInstance(Position, parent.Position, length);

            foreach (var s_note in Notes)
            {
                chord?.Add(s_note.createNote(chord, info));
            }
            return(chord);
        }
예제 #5
0
        public SimplifiedNote[] createNotes(NoteChord chord, WriterInfo info)
        {
            var arr   = new SimplifiedNote[chord.ModelCollection.Count()];
            int index = 0;

            foreach (Note note in chord.ModelCollection.Items())
            {
                arr[index] = new SimplifiedNote(note, info);
                index++;
            }

            return(arr);
        }
예제 #6
0
 public SimplifiedNoteChord(NoteChord chord, WriterInfo info)
     : base(chord)
 {
     Notes = createNotes(chord, info);
 }
예제 #7
0
 public AddPalmMuteEffectVal(NoteChord c, IEffect p)
 {
     chord     = c;
     palm_mute = p;
 }
예제 #8
0
 public ChangeNoteStringVal(NoteChord c, Note n, int?s)
 {
     chord      = c;
     note       = n;
     new_string = s;
 }
예제 #9
0
 public RemoveNoteFromChordVal(Measure m, NoteChord c, Note n)
 {
     measure = m;
     chord   = c;
     note    = n;
 }
예제 #10
0
 public AddNoteToChordVal(NoteChord c, Note n)
 {
     chord = c;
     note  = n;
 }
예제 #11
0
 public AddPalmMuteEffectCom(NoteChord c, IEffect pm)
 {
     chord     = c;
     palm_mute = pm;
 }
예제 #12
0
 public RemoveNoteFromChordCom(NoteChord c, Note n)
 {
     chord = c;
     note  = n;
 }
예제 #13
0
        public Chord genNoteChord(CommandSelections selection)
        {
            var length = Length.createInstance(selection.SelectedLength, selection.TupletType);

            return(NoteChord.createInstance(selection.Position, Measure?.Position, length));
        }
예제 #14
0
 public NoteChord genChord(CommandSelections selection)
 {
     return(NoteChord.createInstance(0, SecondMeasure?.Position, FirstChord?.Length));
 }