2
* Created on 23-nov-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 Window - Preferences - Java - Code Style - Code Templates
16
public abstract class TGNote {
20
private boolean tiedNote;
21
private TGNoteEffect effect;
24
public TGNote(TGFactory factory) {
26
this.velocity = TGVelocities.DEFAULT;
28
this.tiedNote = false;
29
this.effect = factory.newEffect();
32
public int getValue() {
36
public void setValue(int value) {
40
public int getVelocity() {
44
public void setVelocity(int velocity) {
45
this.velocity = velocity;
48
public int getString() {
52
public void setString(int string) {
56
public boolean isTiedNote() {
60
public void setTiedNote(boolean tiedNote) {
61
this.tiedNote = tiedNote;
64
public TGNoteEffect getEffect() {
68
public void setEffect(TGNoteEffect effect) {
72
public TGBeat getBeat() {
76
public void setBeat(TGBeat beat) {
80
public TGNote clone(TGFactory factory){
81
TGNote note = factory.newNote();
82
note.setValue(getValue());
83
note.setVelocity(getVelocity());
84
note.setString(getString());
85
note.setTiedNote(isTiedNote());
86
note.setEffect(getEffect().clone(factory));
b'\\ No newline at end of file'