Example #1
0
  private void writeDivisionType(TGDivisionType divisionType) {
    // escribo los enters
    writeByte(divisionType.getEnters());

    // escribo los tiempos
    writeByte(divisionType.getTimes());
  }
 private TGDivisionType createDivisionType(TGDivisionType tgDivisionTypeSrc) {
   TGFactory tgFactory =
       TGDocumentManager.getInstance(this.findContext()).getSongManager().getFactory();
   TGDivisionType tgDivisionTypeDst = tgFactory.newDivisionType();
   tgDivisionTypeDst.copyFrom(tgDivisionTypeSrc);
   return tgDivisionTypeDst;
 }
Example #3
0
  private void readDivisionType(TGDivisionType divisionType) {
    // leo los enters
    divisionType.setEnters(readByte());

    // leo los tiempos
    divisionType.setTimes(readByte());
  }