public void syncSyntChannels() { for (int i = 0; i < Channel.CHANNEL_COUNT; ++i) { DeviceEbun.setInstrument(i, channelList.get(i).getInstrument()); DeviceEbun.setVolume(i, channelList.get(i).getVolume()); DeviceEbun.setModulation(i, channelList.get(i).modulation.get()); } }
private void addLackingChannels() { int existingIndex = 0; for (int i = 0; i < Channel.CHANNEL_COUNT; ++i) { if (channelList.size() > existingIndex && channelList.get(existingIndex).channelNumber.get() == i) { ++existingIndex; } else { channelList.add(new Channel(i)); } } }