def validate_loops(candidate)
      unless candidate.is_a?(Array) && candidate.select {|loop| !loop.is_a?(SamplerLoop) }.empty?
        raise InvalidSamplerInfoError,
              "Invalid `loops` value: `#{candidate}`. Must be an Array of SampleLoop objects"
      end
    end
def validate_loops(candidate)
      unless candidate.is_a?(Array) && candidate.select {|loop| !loop.is_a?(SamplerLoop) }.empty?
        raise InvalidSamplerInfoError,
              "Invalid `loops` value: `#{candidate}`. Must be an Array of SampleLoop objects"
      end
    end
Internal