@Test public void shouldCreateKickPatternRenderList() { List<KickPattern> patternsToRender = kickPatternRenderer.getPatternsToRender(queueState); assertThat(patternsToRender).hasSize(12); assertThat(patternsToRender.get(0).getId()).isEqualTo(11); assertThat(patternsToRender.get(1).getId()).isEqualTo(12); assertThat(patternsToRender.get(2).getId()).isEqualTo(13); assertThat(patternsToRender.get(3).getId()).isEqualTo(14); assertThat(patternsToRender.get(4).getId()).isEqualTo(21); assertThat(patternsToRender.get(5).getId()).isEqualTo(22); assertThat(patternsToRender.get(6).getId()).isEqualTo(23); assertThat(patternsToRender.get(7).getId()).isEqualTo(24); assertThat(patternsToRender.get(8).getId()).isEqualTo(31); assertThat(patternsToRender.get(9).getId()).isEqualTo(32); assertThat(patternsToRender.get(10).getId()).isEqualTo(33); assertThat(patternsToRender.get(11).getId()).isEqualTo(34); }
public List<KickPattern> getPatternsToRender(QueueState queueState) { List<KickPattern> patternsToRender = new ArrayList<>(); for (ProgressionUnit progressionUnit : queueState.getStructure()) { for (int i = 0; i < progressionUnit.getProgressionUnitBars().size(); i++) { patternsToRender.add(progressionUnit.getProgressionUnitBars().get(i).getKickPattern()); } } return patternsToRender; }
KickPatternRenderer extends BaseRenderer { public List<KickPattern> getPatternsToRender(QueueState queueState) { List<KickPattern> patternsToRender = new ArrayList<>(); for (ProgressionUnit progressionUnit : queueState.getStructure()) { for (int i = 0; i < progressionUnit.getProgressionUnitBars().size(); i++) { patternsToRender.add(progressionUnit.getProgressionUnitBars().get(i).getKickPattern()); } } return patternsToRender; } }
KickPatternRenderer extends BaseRenderer { public List<KickPattern> getPatternsToRender(QueueState queueState) { List<KickPattern> patternsToRender = new ArrayList<>(); for (ProgressionUnit progressionUnit : queueState.getStructure()) { for (int i = 0; i < progressionUnit.getProgressionUnitBars().size(); i++) { patternsToRender.add(progressionUnit.getProgressionUnitBars().get(i).getKickPattern()); } } return patternsToRender; }  }
KickPatternRenderer extends BaseRenderer { public List<KickPattern> getPatternsToRender(QueueState queueState) { List<KickPattern> patternsToRender = new ArrayList<>(); for (ProgressionUnit progressionUnit : queueState.getStructure()) { for (int i = 0; i < progressionUnit.getProgressionUnitBars().size(); i++) { patternsToRender.add(progressionUnit.getProgressionUnitBars().get(i).getKickPattern()); } } return patternsToRender; }  void render(QueueState queueState); List<KickPattern> getPatternsToRender(QueueState queueState); List<String> getKickPatternFilePaths(List<KickPattern> patternsToRender, KickSample kickSample, int bpm); }
KickPatternRenderer extends BaseRenderer { public List<KickPattern> getPatternsToRender(QueueState queueState) { List<KickPattern> patternsToRender = new ArrayList<>(); for (ProgressionUnit progressionUnit : queueState.getStructure()) { for (int i = 0; i < progressionUnit.getProgressionUnitBars().size(); i++) { patternsToRender.add(progressionUnit.getProgressionUnitBars().get(i).getKickPattern()); } } return patternsToRender; }  void render(QueueState queueState); List<KickPattern> getPatternsToRender(QueueState queueState); List<String> getKickPatternFilePaths(List<KickPattern> patternsToRender, KickSample kickSample, int bpm);  }