Package org.jfugue.pattern
Class TrackTable
java.lang.Object
org.jfugue.pattern.TrackTable
- All Implemented Interfaces:
PatternProducer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclear
(int track, int position) get
(int track, int position) int
Returns a patterngetPatternAt
(int column) getTrack
(int track) getTrackSettings
(int track) put
(int track, int start, int end, PatternProducer patternProducer) As part of JFugue's fluent API, this method returns the instance of this class.put
(int track, int position, PatternProducer patternProducer) put
(int track, int start, PatternProducer... patternProducers) 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".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'putAtIntervals
(int track, int nth, PatternProducer patternProducer) Puts the given pattern in the track table at every 'nth' positionreset
(int track, int position) setTrackSettings
(int track, String s) setTrackSettings
(int track, PatternProducer p) toString()
-
Field Details
-
NUM_TRACKS
public static final int NUM_TRACKS- See Also:
-
RHYTHM_TRACK
public static final int RHYTHM_TRACK- See Also:
-
-
Constructor Details
-
TrackTable
public TrackTable(int length, double cellDuration)
-
-
Method Details
-
getTrack
-
put
-
put
-
putAtIntervals
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
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
-
get
-
clear
-
reset
-
getLength
public int getLength() -
setTrackSettings
-
setTrackSettings
-
getTrackSettings
-
getPatternAt
-
getPattern
Description copied from interface:PatternProducer
Returns a pattern- Specified by:
getPattern
in interfacePatternProducer
-
toString
-