Exemplo n.º 1
0
 /**
  * Returns a copy of this note
  *
  * @return Note
  */
 public Note copy() {
   Note note;
   if (pitchType == MIDI_PITCH) {
     note = new Note(this.getPitch(), this.rhythmValue, this.dynamic);
   } else note = new Note(this.getFrequency(), this.rhythmValue, this.dynamic);
   note.setPan(this.pan);
   note.setDuration(this.duration);
   note.setOffset(this.offset);
   note.setSampleStartTime(this.sampleStartTime);
   note.setMyPhrase(this.myPhrase);
   for (int i = 0; i < breakPoints.length; i++) {
     if (this.breakPoints[i] != null) note.setBreakPoints(i, this.getBreakPoints(i));
   }
   return note;
 }