protected void configureChannelRouter(TGSong song) {
    this.channelRouter = new GMChannelRouter();

    GMChannelRouterConfigurator gmChannelRouterConfigurator =
        new GMChannelRouterConfigurator(this.channelRouter);
    gmChannelRouterConfigurator.configureRouter(song.getChannels());
  }
예제 #2
0
 private boolean isPercussionChannel(TGSong song, int channelId) {
   Iterator it = song.getChannels();
   while (it.hasNext()) {
     TGChannel channel = (TGChannel) it.next();
     if (channel.getChannelId() == channelId) {
       return channel.isPercussionChannel();
     }
   }
   return false;
 }