com.vwp.sound.mod.modplay.module
Class Pattern

java.lang.Object
  extended by com.vwp.sound.mod.modplay.module.Pattern

public class Pattern
extends java.lang.Object

A pattern contains a number of tracks, each with the same number of divisions


Constructor Summary
Pattern(Track[] tracks, int divisions)
           
 
Method Summary
 java.lang.String getCode(int division)
           
 int getDivisions()
           
 java.lang.String getInfo()
           
 Track getTrack(int n)
          * @return the n'th track
 int getTrackCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pattern

public Pattern(Track[] tracks,
               int divisions)
Parameters:
tracks -
divisions -
Method Detail

getTrack

public Track getTrack(int n)
* @return the n'th track


getTrackCount

public int getTrackCount()
Returns:
the number of tracks in this pattern

getDivisions

public int getDivisions()
Returns:
the number of divisions in this pattern

getCode

public java.lang.String getCode(int division)
Returns:
a code similar to the codes used in a tracker, representing the given division of this pattern

getInfo

public java.lang.String getInfo()
Returns:
information about this pattern in human readable form