2
* Created on 05-dic-2005
4
* TODO To change the template for this generated file go to
5
* Window - Preferences - Java - Code Style - Code Templates
7
package org.herac.tuxguitar.song.models;
9
import org.herac.tuxguitar.song.factory.TGFactory;
14
* TODO To change the template for this generated type comment go to
15
* Window - Preferences - Java - Code Style - Code Templates
17
public abstract class TGTupleto {
18
public static final TGTupleto NORMAL = newTupleto(1,1);
21
* Cantidad de Duraciones que entran en los tiempos
34
public int getEnters() {
38
public void setEnters(int enters) {
42
public int getTimes() {
46
public void setTimes(int times) {
50
public long convertTime(long time){
51
return time * this.times / this.enters;
54
public boolean isEqual(TGTupleto tupleto){
55
return (tupleto.getEnters() == getEnters() && tupleto.getTimes() == getTimes());
58
public TGTupleto clone(TGFactory factory){
59
TGTupleto tupleto = factory.newTupleto();
64
public void copy(TGTupleto tupleto){
65
tupleto.setEnters(this.enters);
66
tupleto.setTimes(this.times);
69
private static TGTupleto newTupleto(int enters,int times){
70
TGTupleto tupleto = new TGFactory().newTupleto();
71
tupleto.setEnters(enters);
72
tupleto.setTimes(times);