class PatternSetter implements IPatternSetter {

	public void setHiPattern(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.getHiSynthId().get(i) != progressionUnitBar.getSynthTemplates().get(i).getHiSynthId()) {
				progressionUnitBar.getPatternHi().set(i, generateRests(2, bpm).setTempo(bpm));
			}
		}
	}

}