@Test public void ShouldSetLowPattern() { patternSetter.setLowPattern(pBar,BPM); Assert.assertTrue(pBar.getPatternLow().toString().contains("T80 Rw")); }
public void setLowPattern(ProgressionUnitBar progressionUnitBar, Integer bpm) { for(int i=0; i<progressionUnitBar.getSynthTemplates().size(); i++) { if (progressionUnitBar.getLowSynthId().get(i) != progressionUnitBar.getSynthTemplates().get(i).getLowSynthId()) { progressionUnitBar.getPatternLow().set(i, generateRests(2, bpm).setTempo(bpm)); } } }
PatternSetter implements IPatternSetter { public void setLowPattern(ProgressionUnitBar progressionUnitBar, Integer bpm) { for(int i=0; i<progressionUnitBar.getSynthTemplates().size(); i++) { if (progressionUnitBar.getLowSynthId().get(i) != progressionUnitBar.getSynthTemplates().get(i).getLowSynthId()) { progressionUnitBar.getPatternLow().set(i, generateRests(2, bpm).setTempo(bpm)); } } } }
PatternSetter implements IPatternSetter { public void setLowPattern(ProgressionUnitBar progressionUnitBar, Integer bpm) { for(int i=0; i<progressionUnitBar.getSynthTemplates().size(); i++) { if (progressionUnitBar.getLowSynthId().get(i) != progressionUnitBar.getSynthTemplates().get(i).getLowSynthId()) { progressionUnitBar.getPatternLow().set(i, generateRests(2, bpm).setTempo(bpm)); } } }  }
PatternSetter implements IPatternSetter { public void setLowPattern(ProgressionUnitBar progressionUnitBar, Integer bpm) { for(int i=0; i<progressionUnitBar.getSynthTemplates().size(); i++) { if (progressionUnitBar.getLowSynthId().get(i) != progressionUnitBar.getSynthTemplates().get(i).getLowSynthId()) { progressionUnitBar.getPatternLow().set(i, generateRests(2, bpm).setTempo(bpm)); } } }  void setHiPattern(ProgressionUnitBar progressionUnitBar, Integer bpm); void setAltHiPattern(ProgressionUnitBar progressionUnitBar, Integer bpm); void setMidPattern(ProgressionUnitBar progressionUnitBar, Integer bpm); void setAltMidPattern(ProgressionUnitBar progressionUnitBar, Integer bpm); void setLowPattern(ProgressionUnitBar progressionUnitBar, Integer bpm); void setAltLowPattern(ProgressionUnitBar progressionUnitBar, Integer bpm); Pattern generateBarRest(Integer bpm); Pattern generateRests(int barCount, Integer bpm); }
PatternSetter implements IPatternSetter { public void setLowPattern(ProgressionUnitBar progressionUnitBar, Integer bpm) { for(int i=0; i<progressionUnitBar.getSynthTemplates().size(); i++) { if (progressionUnitBar.getLowSynthId().get(i) != progressionUnitBar.getSynthTemplates().get(i).getLowSynthId()) { progressionUnitBar.getPatternLow().set(i, generateRests(2, bpm).setTempo(bpm)); } } }  void setHiPattern(ProgressionUnitBar progressionUnitBar, Integer bpm); void setAltHiPattern(ProgressionUnitBar progressionUnitBar, Integer bpm); void setMidPattern(ProgressionUnitBar progressionUnitBar, Integer bpm); void setAltMidPattern(ProgressionUnitBar progressionUnitBar, Integer bpm); void setLowPattern(ProgressionUnitBar progressionUnitBar, Integer bpm); void setAltLowPattern(ProgressionUnitBar progressionUnitBar, Integer bpm); Pattern generateBarRest(Integer bpm); Pattern generateRests(int barCount, Integer bpm);  }