Ejemplo n.º 1
0
  private TGEffectTremoloPicking readTremoloPickingEffect() {
    TGEffectTremoloPicking effect = this.factory.newEffectTremoloPicking();

    // leo la duracion
    effect.getDuration().setValue(readByte());

    return effect;
  }
Ejemplo n.º 2
0
 public void readTremoloPicking(TGNoteEffect effect) throws IOException {
   int value = readUnsignedByte();
   TGEffectTremoloPicking tp = getFactory().newEffectTremoloPicking();
   if (value == 1) {
     tp.getDuration().setValue(TGDuration.EIGHTH);
     effect.setTremoloPicking(tp);
   } else if (value == 2) {
     tp.getDuration().setValue(TGDuration.SIXTEENTH);
     effect.setTremoloPicking(tp);
   } else if (value == 3) {
     tp.getDuration().setValue(TGDuration.THIRTY_SECOND);
     effect.setTremoloPicking(tp);
   }
 }
Ejemplo n.º 3
0
 private void writeTremoloPickingEffect(TGEffectTremoloPicking effect) {
   // excribo la duracion
   writeByte(effect.getDuration().getValue());
 }