com.frinika.sequencer.midi.groovepattern
Interface GroovePattern

All Known Implementing Classes:
GroovePatternFromSequence

public interface GroovePattern

Groove pattern. For quantzing with a "humanized" rhythm "feeling".

Author:
Jens Gulden

Method Summary
 java.lang.String getName()
          Returns the name of the groove pattern.
 long quantize(long tick, int quantizeResolution, float smudge, int[] velocityByRef)
          Suggests a tick position corresponding to the "feeling" of the represented groove.
 

Method Detail

getName

java.lang.String getName()
Returns the name of the groove pattern.

Returns:

quantize

long quantize(long tick,
              int quantizeResolution,
              float smudge,
              int[] velocityByRef)
Suggests a tick position corresponding to the "feeling" of the represented groove.

Parameters:
tick -
quantizeResolution - resolution of a hard-quantized grid which is the target for quantization
smudge - factor for implementation-specific intensity if the possible de-quantization, -1.0 .. 1.0
velocityByRef - returns the velocity value suggested by the groove pattern for that tick
Returns: