Exemplo n.º 1
0
 public Measure genMeasure(CommandSelections selection)
 {
     return(Measure.createInstance(selection.BPM, selection.NumBeats, selection.BeatType, selection.Position));
 }
Exemplo n.º 2
0
 public AddMeasureToPartAtr(CommandSelections selection)
 {
     Part    = selection.SelectedPart;
     Measure = genMeasure(selection);
 }
Exemplo n.º 3
0
 public RemoveMeasureFromPartAtr(CommandSelections selection)
 {
     Part    = selection.SelectedPart;
     Measure = selection.SelectedMeasure.FirstOrDefault();
 }
Exemplo n.º 4
0
 public AddRestChordToMeasureAtr(CommandSelections selection)
 {
     Measure = selection.SelectedMeasure.FirstOrDefault();
     Chord   = genChord(selection);
 }
Exemplo n.º 5
0
 public RemoveMultipleChordsFromMeasureAtr(CommandSelections selection)
 {
     Chords  = selection.SelectedChord;
     Measure = selection.SelectedMeasure.FirstOrDefault();
 }
Exemplo n.º 6
0
 public RemoveChordFromMeasureAtr(CommandSelections selection)
 {
     Chord   = selection.SelectedChord.FirstOrDefault();
     Measure = selection.SelectedMeasure.FirstOrDefault();
 }
Exemplo n.º 7
0
 public RemoveMultipleNotesFromChordAtr(CommandSelections selection)
 {
     Notes   = selection.SelectedNote;
     Chord   = selection.SelectedChord.FirstOrDefault() as NoteChord;
     Measure = selection.SelectedMeasure.FirstOrDefault();
 }
Exemplo n.º 8
0
 public RemoveNoteFromChordAtr(CommandSelections selection)
 {
     Chord   = selection.SelectedChord.FirstOrDefault() as NoteChord;
     Note    = selection.SelectedNote.FirstOrDefault();
     Measure = selection.SelectedMeasure.FirstOrDefault();
 }