|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dguitar.codecs.guitarPro.GPTrack
This class describes a track.
Field Summary | |
private int |
_capo
The capo number (if present). |
private int |
_channel
The MIDI Channel. |
private int |
_channelEffects
The MIDI Channel used for effects. |
private GPColor |
_color
The track's color. |
private java.lang.String |
_name
The track's name |
private int |
_numberOfFrets
The number of frets of the track's instrument. |
private int |
_numberOfStrings
The number of strings in this track. |
private int |
_port
The MIDI port. |
private int[] |
_stringsTuning
The track's instrument tuning. |
boolean |
is12StringedGuitarTrack
Whether this track is a 12-stringed guitar track. |
boolean |
isBanjoTrack
Whether this track is a banjo track. |
boolean |
isDrumsTrack
Whether this track is a drums track. |
Constructor Summary | |
GPTrack()
Creates a new Track. |
Method Summary | |
int |
getCapo()
Returns this track's capo. |
int |
getChannel()
Returns this track's channel. |
int |
getChannelEffects()
Returns this track's channel for effects. |
GPColor |
getColor()
Returns this track's color. |
java.lang.String |
getName()
Returns this track's name. |
int |
getNumberOfFrets()
Returns this track's number of frets. |
int |
getNumberOfStrings()
Returns this track's number of strings. |
int |
getPort()
Returns this track's port. |
int |
getStringsTuning(int i)
Returns this track's string tuning. |
void |
setCapo(int capo)
Sets this track's capo. |
void |
setChannel(int channel)
Sets this track's channel. |
void |
setChannelEffects(int channelEffects)
Sets this track's channel for effects. |
void |
setColor(GPColor color)
Sets this track's color. |
void |
setName(java.lang.String name)
Sets this track's name. |
void |
setNumberOfFrets(int numberOfFrets)
Sets this track's number of frets. |
void |
setNumberOfStrings(int numberOfStrings)
Sets this track's number of strings. |
void |
setPort(int port)
Sets this track's port. |
void |
setStringsTuning(int i,
int stringsTuning)
Sets this track's string tuning. |
java.lang.String |
toString()
Returns a string representation of this GPTrack. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public boolean isDrumsTrack
public boolean is12StringedGuitarTrack
public boolean isBanjoTrack
private int _capo
private int _channel
private int _channelEffects
private GPColor _color
private java.lang.String _name
private int _numberOfFrets
private int _numberOfStrings
private int _port
private int[] _stringsTuning
Constructor Detail |
public GPTrack()
Method Detail |
public int getCapo()
public int getChannel()
public int getChannelEffects()
public GPColor getColor()
public java.lang.String getName()
public int getNumberOfFrets()
public int getNumberOfStrings()
public int getPort()
public int getStringsTuning(int i)
i
- the string number.
public void setCapo(int capo)
capo
- the capo to set.public void setChannel(int channel)
channel
- the channel to set.public void setChannelEffects(int channelEffects)
channelEffects
- the channel for effects to set.public void setColor(GPColor color)
color
- the color to set.public void setName(java.lang.String name)
name
- the name to set.public void setNumberOfFrets(int numberOfFrets)
numberOfFrets
- the number of frets to set.public void setNumberOfStrings(int numberOfStrings)
numberOfStrings
- the number of strings to set.public void setPort(int port)
port
- the port to set.public void setStringsTuning(int i, int stringsTuning)
i
- the string number.stringsTuning
- the tuning of the string i to set.public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |