コード例 #1
0
ファイル: example.py プロジェクト: buckets1337/jx8p_patcher
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))