dguitar.codecs.guitarPro
Class GPTrack

java.lang.Object
  extended bydguitar.codecs.guitarPro.GPTrack

public class GPTrack
extends java.lang.Object

This class describes a track.

Author:
Matthieu Wipliez

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

isDrumsTrack

public boolean isDrumsTrack
Whether this track is a drums track.


is12StringedGuitarTrack

public boolean is12StringedGuitarTrack
Whether this track is a 12-stringed guitar track.


isBanjoTrack

public boolean isBanjoTrack
Whether this track is a banjo track.


_capo

private int _capo
The capo number (if present).


_channel

private int _channel
The MIDI Channel.


_channelEffects

private int _channelEffects
The MIDI Channel used for effects.


_color

private GPColor _color
The track's color.


_name

private java.lang.String _name
The track's name


_numberOfFrets

private int _numberOfFrets
The number of frets of the track's instrument.


_numberOfStrings

private int _numberOfStrings
The number of strings in this track.


_port

private int _port
The MIDI port.


_stringsTuning

private int[] _stringsTuning
The track's instrument tuning.

Constructor Detail

GPTrack

public GPTrack()
Creates a new Track.

Method Detail

getCapo

public int getCapo()
Returns this track's capo.

Returns:
this track's capo.

getChannel

public int getChannel()
Returns this track's channel.

Returns:
this track's channel.

getChannelEffects

public int getChannelEffects()
Returns this track's channel for effects.

Returns:
this track's channel for effects.

getColor

public GPColor getColor()
Returns this track's color.

Returns:
this track's color.

getName

public java.lang.String getName()
Returns this track's name.

Returns:
this track's name.

getNumberOfFrets

public int getNumberOfFrets()
Returns this track's number of frets.

Returns:
this track's number of frets.

getNumberOfStrings

public int getNumberOfStrings()
Returns this track's number of strings.

Returns:
this track's number of strings.

getPort

public int getPort()
Returns this track's port.

Returns:
this track's port.

getStringsTuning

public int getStringsTuning(int i)
Returns this track's string tuning.

Parameters:
i - the string number.
Returns:
this track's string tuning.

setCapo

public void setCapo(int capo)
Sets this track's capo.

Parameters:
capo - the capo to set.

setChannel

public void setChannel(int channel)
Sets this track's channel.

Parameters:
channel - the channel to set.

setChannelEffects

public void setChannelEffects(int channelEffects)
Sets this track's channel for effects.

Parameters:
channelEffects - the channel for effects to set.

setColor

public void setColor(GPColor color)
Sets this track's color.

Parameters:
color - the color to set.

setName

public void setName(java.lang.String name)
Sets this track's name.

Parameters:
name - the name to set.

setNumberOfFrets

public void setNumberOfFrets(int numberOfFrets)
Sets this track's number of frets.

Parameters:
numberOfFrets - the number of frets to set.

setNumberOfStrings

public void setNumberOfStrings(int numberOfStrings)
Sets this track's number of strings.

Parameters:
numberOfStrings - the number of strings to set.

setPort

public void setPort(int port)
Sets this track's port.

Parameters:
port - the port to set.

setStringsTuning

public void setStringsTuning(int i,
                             int stringsTuning)
Sets this track's string tuning.

Parameters:
i - the string number.
stringsTuning - the tuning of the string i to set.

toString

public java.lang.String toString()
Returns a string representation of this GPTrack.