Class TrackTable

    • Constructor Detail

      • TrackTable

        public TrackTable​(int length,
                          double cellDuration)
    • Method Detail

      • getTrack

        public java.util.List<PatternProducer> getTrack​(int track)
      • 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,
                              java.lang.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 -
        periodMeansNoOtherMeansYes -
        patternProducer -
        Returns:
      • 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,
                                           java.lang.String s)
      • getTrackSettings

        public PatternProducer getTrackSettings​(int track)
      • getPatternAt

        public Pattern getPatternAt​(int column)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object