5455565758596061626364
} } else { for (int i = 0; i < ctx.getMeasures(); i++) { Note note = NoteFactory.createNote(40 + random.nextInt(30), ctx.getNormalizedMeasureSize() / 4); phrase.add(note); phrase.add(new Rest(ctx.getNormalizedMeasureSize() - note.getRhythmValue())); } } drumPart.add(phrase);
7980818283848586878889
if (durationModifier > 0) { note.setDuration(note.getRhythmValue() * durationModifier); } bassPhrase.addNote(note); } else { bassPhrase.addRest(new Rest(ctx.getNormalizedMeasureSize() / 2)); } } } bassPart.addPhrase(bassPhrase); }