Ejemplo n.º 1
0
 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());
   }
 }
Ejemplo n.º 2
0
 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));
     }
   }
 }