dguitar.codecs.guitarPro
Class GPSong

java.lang.Object
  extended bydguitar.codecs.guitarPro.GPSong
Direct Known Subclasses:
GP3Piece, GP4Piece

public class GPSong
extends java.lang.Object

This class is created to join the different GP*Piece objects

Author:
Mauricio Gracia Gutiérrez

Nested Class Summary
(package private)  class GPSong.StringImpl
          This class performs the actual loading of the file
 
Field Summary
protected  java.lang.String album
          The piece album.
protected  java.lang.String authorPiece
          The piece author.
protected  java.lang.String authorSong
          The author of the song.
protected  GPMIDIChannel[] channels
          The MIDI channels used.
protected  java.util.List chordsDiagrams
          A list of chords diagrams.
protected  java.lang.String copyright
          The piece copyright.
protected  java.lang.String instruction
          The instructions to use with this piece.
protected  java.lang.String interpret
          The piece interpret.
protected  GPKey key
          The key signature at the beginning of the piece.
protected  GPTrackLyrics lyrics
          Lyrics associated with the tracks.
 java.util.List measures
          A list of measures present in this piece.
protected  java.util.List measuresTracksPairs
          A list of measures-tracks pairs containing data about the music.
protected  java.lang.String note
          Notes about the piece.
protected  int octave
          The octave (not used).
protected  java.lang.String subtitle
          The piece subtitle.
protected  int tempo
          The piece tempo.
protected  java.lang.String title
          The piece title.
protected  java.util.List tracks
          A list of tracks present in this piece.
 boolean tripletFeel
          The triplet feel.
protected  java.lang.String version
          The version of the file the piece was loaded from.
(package private)  common.SwingWorker worker
           
 
Constructor Summary
GPSong()
           
 
Method Summary
 java.lang.String getAlbum()
           
 java.lang.String getAuthorPiece()
           
 java.lang.String getAuthorSong()
           
 GPMIDIChannel getChannels(int i)
           
 java.util.List getChordsDiagrams()
           
 java.lang.String getCopyright()
           
 java.lang.String getInstruction()
           
 java.lang.String getInterpret()
           
 GPKey getKey()
           
 GPTrackLyrics getLyrics()
           
 java.util.List getMeasures()
           
 java.util.List getMeasuresTracksPairs()
           
 GPMeasureTrackPair getMeasureTrackPair(int measure, int track)
           
 java.lang.String getNote()
           
 int getNumMeasures()
           
 int getNumTracks()
           
 int getOctave()
           
 java.lang.String getSubtitle()
           
 int getTempo()
           
 java.lang.String getTitle()
           
 GPMeasureTrackPair getTrackMeasurePair(int track, int measure)
           
 java.util.List getTracks()
           
 java.lang.String getVersion()
           
 void setAlbum(java.lang.String album)
           
 void setAuthorPiece(java.lang.String authorPiece)
           
 void setAuthorSong(java.lang.String authorSong)
           
 void setChannels(int i, GPMIDIChannel channels)
           
 void setCopyright(java.lang.String copyright)
           
 void setInstruction(java.lang.String instruction)
           
 void setInterpret(java.lang.String interpret)
           
 void setKey(GPKey key)
           
 void setLyrics(GPTrackLyrics lyrics)
           
 void setNote(java.lang.String note)
           
 void setOctave(int octave)
           
 void setSubtitle(java.lang.String subtitle)
           
 void setTempo(int tempo)
           
 void setTitle(java.lang.String title)
           
 void setVersion(java.lang.String version)
           
 void startDisplayString(common.ScrollTextPanel stp)
           
 void stopDisplayString()
           
 java.lang.String toString()
          Returns a string representation of this piece.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tripletFeel

public boolean tripletFeel
The triplet feel.


title

protected java.lang.String title
The piece title.


subtitle

protected java.lang.String subtitle
The piece subtitle.


interpret

protected java.lang.String interpret
The piece interpret.


album

protected java.lang.String album
The piece album.


authorSong

protected java.lang.String authorSong
The author of the song.


copyright

protected java.lang.String copyright
The piece copyright.


authorPiece

protected java.lang.String authorPiece
The piece author.


instruction

protected java.lang.String instruction
The instructions to use with this piece.


note

protected java.lang.String note
Notes about the piece.


lyrics

protected GPTrackLyrics lyrics
Lyrics associated with the tracks.


tempo

protected int tempo
The piece tempo.


channels

protected GPMIDIChannel[] channels
The MIDI channels used.


tracks

protected java.util.List tracks
A list of tracks present in this piece.


measures

public java.util.List measures
A list of measures present in this piece.


measuresTracksPairs

protected java.util.List measuresTracksPairs
A list of measures-tracks pairs containing data about the music.


version

protected java.lang.String version
The version of the file the piece was loaded from.


worker

common.SwingWorker worker

chordsDiagrams

protected java.util.List chordsDiagrams
A list of chords diagrams.


key

protected GPKey key
The key signature at the beginning of the piece.


octave

protected int octave
The octave (not used).

Constructor Detail

GPSong

public GPSong()
Method Detail

getAlbum

public java.lang.String getAlbum()
Returns:
Returns the album.

getAuthorPiece

public java.lang.String getAuthorPiece()
Returns:
Returns the authorPiece.

getAuthorSong

public java.lang.String getAuthorSong()
Returns:
Returns the authorSong.

getChannels

public GPMIDIChannel getChannels(int i)
Returns:
Returns the channels.

getCopyright

public java.lang.String getCopyright()
Returns:
Returns the copyright.

getInstruction

public java.lang.String getInstruction()
Returns:
Returns the instruction.

getInterpret

public java.lang.String getInterpret()
Returns:
Returns the interpret.

getLyrics

public GPTrackLyrics getLyrics()
Returns:
Returns the lyrics.

getNote

public java.lang.String getNote()
Returns:
Returns the note.

getSubtitle

public java.lang.String getSubtitle()
Returns:
Returns the subtitle.

getTempo

public int getTempo()
Returns:
Returns the tempo.

getTitle

public java.lang.String getTitle()
Returns:
Returns the title.

getTracks

public java.util.List getTracks()

getVersion

public java.lang.String getVersion()
Returns:
Returns the version.

getMeasures

public java.util.List getMeasures()
Returns:
Returns the measures.

getMeasuresTracksPairs

public java.util.List getMeasuresTracksPairs()
Returns:
Returns the measuresTracksPairs.

getNumTracks

public int getNumTracks()
Returns:
Returns the number of Tracks of this Song

getNumMeasures

public int getNumMeasures()
Returns:
the number of measures of this Song

getTrackMeasurePair

public GPMeasureTrackPair getTrackMeasurePair(int track,
                                              int measure)
Returns:
Returns a MeasureTrackPair

startDisplayString

public void startDisplayString(common.ScrollTextPanel stp)

stopDisplayString

public void stopDisplayString()

toString

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


setAlbum

public void setAlbum(java.lang.String album)
Parameters:
album - The album to set.

setAuthorPiece

public void setAuthorPiece(java.lang.String authorPiece)
Parameters:
authorPiece - The authorPiece to set.

setAuthorSong

public void setAuthorSong(java.lang.String authorSong)
Parameters:
authorSong - The authorSong to set.

setChannels

public void setChannels(int i,
                        GPMIDIChannel channels)
Parameters:
channels - The channels to set.

setCopyright

public void setCopyright(java.lang.String copyright)
Parameters:
copyright - The copyright to set.

setInstruction

public void setInstruction(java.lang.String instruction)
Parameters:
instruction - The instruction to set.

setInterpret

public void setInterpret(java.lang.String interpret)
Parameters:
interpret - The interpret to set.

setKey

public void setKey(GPKey key)
Parameters:
key - The key to set.

setLyrics

public void setLyrics(GPTrackLyrics lyrics)
Parameters:
lyrics - The lyrics to set.

setNote

public void setNote(java.lang.String note)
Parameters:
note - The note to set.

setOctave

public void setOctave(int octave)
Parameters:
octave - The octave to set.

setSubtitle

public void setSubtitle(java.lang.String subtitle)
Parameters:
subtitle - The subtitle to set.

setTempo

public void setTempo(int tempo)
Parameters:
tempo - The tempo to set.

setTitle

public void setTitle(java.lang.String title)
Parameters:
title - The title to set.

setVersion

public void setVersion(java.lang.String version)
Parameters:
version - The version to set.

getChordsDiagrams

public java.util.List getChordsDiagrams()
Returns:
Returns the chordsDiagrams.

getKey

public GPKey getKey()
Returns:
Returns the key.

getMeasureTrackPair

public GPMeasureTrackPair getMeasureTrackPair(int measure,
                                              int track)
Returns:
Returns a MeasureTrackPair

getOctave

public int getOctave()
Returns:
Returns the octave.