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 java.io.Serializable;
14
* TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
16
public class Note implements Component,Serializable{
19
private Duration duration;
22
private boolean tiedNote;
23
private NoteEffect effect;
24
private long startWithRepetitions;
26
public Note(int value, long start, Duration duration, int velocity,int string,boolean tiedNote,NoteEffect effect) {
29
this.duration = duration;
30
this.velocity = velocity;
32
this.tiedNote = tiedNote;
34
this.startWithRepetitions = this.start;
37
public long getStart() {
41
public void setStart(long start) {
45
public int getValue() {
49
public void setValue(int value) {
53
public Duration getDuration() {
57
public void setDuration(Duration duration) {
58
this.duration = duration;
61
public int getVelocity() {
65
public void setVelocity(int velocity) {
66
this.velocity = velocity;
69
public int getString() {
73
public void setString(int string) {
77
public boolean isTiedNote() {
81
public void setTiedNote(boolean tiedNote) {
82
this.tiedNote = tiedNote;
87
public NoteEffect getEffect() {
90
public void setEffect(NoteEffect effect) {
93
public long getStartWithRepetitions() {
94
return startWithRepetitions;
96
public void setStartWithRepetitions(long startWithRepetitions) {
97
this.startWithRepetitions = startWithRepetitions;
100
public Object clone(){
101
return new Note(getValue(),getStart(),(Duration)getDuration().clone(),getVelocity(),getString(),isTiedNote(),(NoteEffect)getEffect().clone());
b'\\ No newline at end of file'