Class TrackTable

java.lang.Object
org.jfugue.pattern.TrackTable
All Implemented Interfaces:
PatternProducer

public class TrackTable extends Object implements PatternProducer
  • Field Details

  • Constructor Details

    • TrackTable

      public TrackTable(int length, double cellDuration)
  • Method Details

    • getTrack

      public List<PatternProducer> getTrack(int track)
    • put

      public TrackTable put(int track, int position, PatternProducer patternProducer)
    • put

      public TrackTable put(int track, int start, PatternProducer... patternProducers)
    • putAtIntervals

      public TrackTable putAtIntervals(int track, int nth, PatternProducer patternProducer)
      Puts the given pattern in the track table at every 'nth' position
    • putAtIntervals

      public TrackTable putAtIntervals(int track, int first, int nth, int end, PatternProducer patternProducer)
      Puts the given pattern in the track table at every 'nth' position, starting with position 'first' and ending with 'end'
    • put

      public TrackTable put(int track, int start, int end, PatternProducer patternProducer)
      As part of JFugue's fluent API, this method returns the instance of this class.
      Parameters:
      track -
      start -
      end -
      patternProducer -
      Returns:
      The instance of this class
    • put

      public TrackTable put(int track, String periodMeansNo_DashMeansExtend_OtherMeansYes, PatternProducer patternProducer)
      Lets you specify which cells in the TrackTable should be populated with the given PatternProducer by using a String in which a period means "not in this cell" and any other character means "in this cell". Example: put(1, pattern, "...XXXX..XX....XXXX..XX....");
      Parameters:
      track -
      patternProducer -
      periodMeansNoOtherMeansYes -
      Returns:
    • put

      public TrackTable put(Rhythm rhythm)
    • get

      public PatternProducer get(int track, int position)
    • clear

      public TrackTable clear(int track, int position)
    • reset

      public TrackTable reset(int track, int position)
    • getLength

      public int getLength()
    • setTrackSettings

      public TrackTable setTrackSettings(int track, PatternProducer p)
    • setTrackSettings

      public TrackTable setTrackSettings(int track, String s)
    • getTrackSettings

      public PatternProducer getTrackSettings(int track)
    • getPatternAt

      public Pattern getPatternAt(int column)
    • getPattern

      public Pattern getPattern()
      Description copied from interface: PatternProducer
      Returns a pattern
      Specified by:
      getPattern in interface PatternProducer
    • toString

      public String toString()
      Overrides:
      toString in class Object