Generator generator = new Generator();
generator.configLocation = "c:/config/music";
generator.maxConcurrentGenerations = 5;
generator.init();
UserPreferences prefs = new UserPreferences();
prefs.setElectronic(Ternary.YES);
//prefs.setSimpleMotif(Ternary.YES);
//prefs.setMood(Mood.MAJOR);
//prefs.setDrums(Ternary.YES);
//prefs.setClassical(true);
prefs.setAccompaniment(Ternary.YES);
prefs.setElectronic(Ternary.YES);
final ScoreContext ctx = generator.generatePiece();
Score score = ctx.getScore();
for (Part part : score.getPartArray()) {
System.out.println(part.getTitle() + ": " + part.getInstrument());
}