Share your patch selections (.vcvs)

This is a useful selection I sometimes have in my patches:

lut_poly_f1.vcvs (4.1 KB)

CV LookUp Table using docB Formula One

Convert incoming CV ranges into discreet (multiple/polyphonic) output CV values using a predefined lookup table. The lookup table can be changed in the F1 code, using a list of comma separated values. Table lookup is implemented with a binary search algorithm, so it should be efficient, even for large lookup tables.

Usage:

  • connect incoming CV to “w” input of F1
    • connect it directly when having only one output value (remove BOG Polymult in that case)
    • connect through BOG Polymult to F1’s “w” input when multiple output values in the lookup table, and set “CHAN” to the nr. of output channels
  • in F1, replace “LUT” table definition with wanted values these can be values exported from a spreadsheet in Comma Separated Value (CSV) text format (note: no comma after last element!)
  • first column contains input value ranges
  • set “v2” to the nr. of columns in the table (= 1 + nr. of outputs)

“out” will have the looked up values from the table (can be polyphonic!)

w input values lower/higher than the first/last index value in the table will also output the first/last output values in the table

3 Likes