class MelodicExtractor {

    public QueueState extractedAndSetHarmony(QueueState queueState) {
        for (ProgressionUnit pUnit : queueState.getStructure()) {
            for (int i = 0; i < pUnit.getProgressionUnitBars().size(); i++) {
                List<HarmonyExtraction> extractions = createHarmonicExtractionForBar(pUnit.getProgressionUnitBars().get(i));
                pUnit.getProgressionUnitBars().get(i).setHarmonicExtractions(extractions);
            }

        }

        return queueState;
    }

}