void UpdateIndex( IGATPulseInfo pulseInfo )
{
switch( _playingOrder )
{
case PlayingOrder.MapToPulseIndex:
_sampleIndex = pulseInfo.StepIndex % _sampleCount;
break;
case PlayingOrder.Sequential:
_sampleIndex = ( _sampleIndex + 1 ) % _sampleCount;
break;
case PlayingOrder.Randomized:
_sampleIndex = Random.Range( 0, _sampleCount );
break;
case PlayingOrder.MapToMasterPulseIndex:
_sampleIndex = pulseInfo.PulseSender.MasterPulseInfo.StepIndex;
break;
}
}