Interface RhythmAltLayerProvider


  • public interface RhythmAltLayerProvider
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String provideAltLayer​(int segment)
      Override this method to provide Rhythm with an alternate layer based on the current segment.
    • Method Detail

      • provideAltLayer

        java.lang.String provideAltLayer​(int segment)
        Override this method to provide Rhythm with an alternate layer based on the current segment. For example, if you would like to return a new layer for every 5th segment, you might say: if (segment % 5 == 0) return "S...O...S..oO..." If there is no alt layer to provide, return null.
        Parameters:
        segment - The index into rhythm's length
        Returns:
        a new alt layer, or null if no alt layer is to be provided