class PatternSetter implements IPatternSetter {

	public void setAltMidPattern(ProgressionUnitBar progressionUnitBar, Integer bpm) {

		for(int i=0; i<progressionUnitBar.getSynthTemplates().size(); i++) {
            //BOTH PATTERNS (NORMAL ANd ALT) are already set .. so this unsets either Hi or HiAlt
			if (progressionUnitBar.getMidSynthId().get(i) != progressionUnitBar.getSynthTemplates().get(i).getMidSynthIdAlt()) {
				progressionUnitBar.getPatternMidAlt().set(i, generateRests(2, bpm).setTempo(bpm));
			}
		}
	}

}