Ejemplo n.º 1
0
def cclerp(patch1, patch2):
  """
  maps any midi cc to an interpolation
  
  at the moment, this is hardcoded

  Every step actually generates a new patch
  and dispatches it to the midi output i opened
  earlier.

  """
  while True:
    m = mi.receive()
    if m.type == 'control_change':
      p=jx8p.lerp2(patch1, patch2, m.value)
      mo.send(jx8p.message(p))