コード例 #1
0
ファイル: Tuplet.java プロジェクト: rannazhou/abcPlayer
 public List<Note> getAllNotes() {
   List<Note> notes = new ArrayList<Note>();
   for (MusicElement e : this.notes) {
     notes.addAll(e.getAllNotes());
   }
   return notes;
 }
コード例 #2
0
ファイル: Tuplet.java プロジェクト: rannazhou/abcPlayer
 public Fraction getTotalDuration() {
   Fraction duration = new Fraction(0, 1);
   for (MusicElement e : this.notes) {
     duration = duration.add(e.getTotalDuration());
   }
   return duration;
 }
コード例 #3
0
ファイル: Tuplet.java プロジェクト: rannazhou/abcPlayer
 /** Changes the duration of each of the notes by dividing by the type */
 public void divideNoteDuration(int i) {
   for (MusicElement e : notes) {
     e.divideNoteDuration(i);
   }
 }