org.herac.tuxguitar.song.models

Class Note

Implemented Interfaces:
Component, Serializable

public class Note
extends java.lang.Object
implements Component, Serializable

Constructor Summary

Note(int value, long start, Duration duration, int velocity, int string, boolean tiedNote, NoteEffect effect)

Method Summary

Object
clone()
Duration
getDuration()
NoteEffect
getEffect()
long
getStart()
long
getStartWidthRepetitions()
int
getString()
int
getValue()
int
getVelocity()
boolean
isTiedNote()
void
setDuration(Duration duration)
void
setEffect(NoteEffect effect)
void
setStart(long start)
void
setStartWidthRepetitions(long startWidthRepetitions)
void
setString(int string)
void
setTiedNote(boolean tiedNote)
void
setValue(int value)
void
setVelocity(int velocity)

Constructor Details

Note

public Note(int value,
            long start,
            Duration duration,
            int velocity,
            int string,
            boolean tiedNote,
            NoteEffect effect)

Method Details

clone

public Object clone()
Specified by:
clone in interface Component

getDuration

public Duration getDuration()
Specified by:
getDuration in interface Component

getEffect

public NoteEffect getEffect()

getStart

public long getStart()
Specified by:
getStart in interface Component

getStartWidthRepetitions

public long getStartWidthRepetitions()

getString

public int getString()

getValue

public int getValue()

getVelocity

public int getVelocity()

isTiedNote

public boolean isTiedNote()

setDuration

public void setDuration(Duration duration)
Specified by:
setDuration in interface Component

setEffect

public void setEffect(NoteEffect effect)

setStart

public void setStart(long start)
Specified by:
setStart in interface Component

setStartWidthRepetitions

public void setStartWidthRepetitions(long startWidthRepetitions)

setString

public void setString(int string)

setTiedNote

public void setTiedNote(boolean tiedNote)

setValue

public void setValue(int value)

setVelocity

public void setVelocity(int velocity)