コード例 #1
0
 private int getClef(TGTrack track) {
   if (!isPercussionChannel(track.getSong(), track.getChannelId())) {
     Iterator it = track.getStrings().iterator();
     while (it.hasNext()) {
       TGString string = (TGString) it.next();
       if (string.getValue() <= 34) {
         return TGMeasure.CLEF_BASS;
       }
     }
   }
   return TGMeasure.CLEF_TREBLE;
 }
コード例 #2
0
 private void addStaffGroup(TGTrack track, String id) {
   this.writer.println(id + "StaffGroup = \\new StaffGroup <<");
   if (this.addTrackTitleOnGroup(track.getSong())) {
     this.writer.println(
         indent(1) + "\\set StaffGroup.instrumentName = #\"" + track.getName() + "\"");
   }
   if (this.settings.isScoreEnabled()) {
     this.writer.println(indent(1) + "\\" + id + "Staff");
   }
   if (this.settings.isTablatureEnabled()) {
     this.writer.println(indent(1) + "\\" + id + "TabStaff");
   }
   this.writer.println(">>");
 }