dguitar.adaptors.song
Interface Song

All Superinterfaces:
SongPhrase, SongPhraseList
All Known Implementing Classes:
SongImpl

public interface Song
extends SongPhraseList

A Song is a particular kind of SongPhraseList that defines an entire Song

Author:
Chris

Method Summary
 void addTrack(SongTrack object)
           
 int getResolution()
           
 SongMeasure getSongPerformanceMeasure(int measure)
          This is a convenience method to return the given measure from the score in musicians' notation (measure 1 is the first measure printed, not 0)
 SongMeasure getSongScoreMeasure(int measure)
          This is a convenience method to return the given measure from the score in musicians' notation (measure 1 is the first measure printed, not 0)
 Tempo getTempo()
           
 SongTrack getTrack(int t)
           
 int getTrackCount()
           
 
Methods inherited from interface dguitar.adaptors.song.SongPhraseList
addPhrase, getPhrase, getPhraseCount
 
Methods inherited from interface dguitar.adaptors.song.SongPhrase
getPerformanceMeasure, getPerformanceMeasureCount, getScoreMeasure, getScoreMeasureCount
 

Method Detail

getResolution

public int getResolution()
Returns:
the resolution of this song, in pulses per quarter note (PPQ)

getSongScoreMeasure

public SongMeasure getSongScoreMeasure(int measure)
This is a convenience method to return the given measure from the score in musicians' notation (measure 1 is the first measure printed, not 0)

Parameters:
measure - the measure to return from the score (1-based)
Returns:
SongMeasure
See Also:
getScoreMeasure

getSongPerformanceMeasure

public SongMeasure getSongPerformanceMeasure(int measure)
This is a convenience method to return the given measure from the score in musicians' notation (measure 1 is the first measure printed, not 0)

Parameters:
measure - the measure index (1-based)
Returns:
the measure
See Also:
getPerformanceMeasure

addTrack

public void addTrack(SongTrack object)
Parameters:
object -

getTrackCount

public int getTrackCount()
Returns:
the track count

getTrack

public SongTrack getTrack(int t)
Parameters:
t -
Returns:
SongTrack

getTempo

public Tempo getTempo()
Returns:
the default tempo of this song