private TGEffectTremoloPicking readTremoloPickingEffect() { TGEffectTremoloPicking effect = this.factory.newEffectTremoloPicking(); // leo la duracion effect.getDuration().setValue(readByte()); return effect; }
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); } }
private void writeTremoloPickingEffect(TGEffectTremoloPicking effect) { // excribo la duracion writeByte(effect.getDuration().getValue()); }