double measureOffset = Chance.test(5) ? 0.15 : 0;
for (Phrase phrase : mainPart.getPhraseArray()) {
Phrase accompanimentPhrase = new Phrase();
accompanimentPhrase.setTitle("Accompaniment phrase");
Scale currentScale = ((ExtendedPhrase) phrase).getScale();
// get copies of the static ones, so that we can shuffle them without affecting the original
List<Chord> scaleChords = new ArrayList<Chord>(ChordUtils.chords.get(currentScale));
List<Chord> scaleSeventhChords = new ArrayList<Chord>(ChordUtils.seventhChords.get(currentScale));
List<Chord> scaleOtherChords = new ArrayList<Chord>(ChordUtils.otherChords.get(currentScale));