예제 #1
0
 public static Measure halfNoteRoot(Measure sustainedChords) {
   Measure newMeasure = new Measure();
   for (Beat currentBeat : sustainedChords.getBeats()) {
     for (VoiceElement currentChord : currentBeat.getVoiceElements()) {
       addHalfNoteBass(newMeasure, (Chord) currentChord);
     }
   }
   return newMeasure;
 }
예제 #2
0
 public static Measure arpegiattedBass(Measure sustainedChords) {
   Measure newMeasure = new Measure();
   for (Beat currentBeat : sustainedChords.getBeats()) {
     for (VoiceElement currentChord : currentBeat.getVoiceElements()) {
       addArpegiattedBass(newMeasure, (Chord) currentChord);
     }
   }
   return newMeasure;
 }
예제 #3
0
 public static Measure quarterNoteBass(Measure sustainedChords) {
   Measure newMeasure = new Measure();
   for (Beat currentBeat : sustainedChords.getBeats()) {
     for (VoiceElement currentChord : currentBeat.getVoiceElements()) {
       Beat newBeat = new Beat();
       newBeat.addChord(new Chord(((Chord) currentChord).getTriad(), BeatDuration.Quarter));
       for (int i = 0; i < 2; i++) newMeasure.addBeat(newBeat);
     }
   }
   return newMeasure;
 }