public void transform() { // Bird for (int i = 0; i < bird_num; i++) { note = new Note( bird_jnote[i].pitch, (double) bird_jnote[i].duration / 120, bird_jnote[i].velocity); bird_phrase.addNote(note); } bird_phrase.setStartTime(start_time * 4.0); bird_part.empty(); bird_part.addPhrase(bird_phrase); }