enzyme69 / blendersushi

Blender Sushi related scripts. Mostly about Sverchok, Geometry Nodes, Animation Nodes, and related Python scripts.
242 stars 33 forks source link

LIVENODING 775 / Animation Nodes - OSC Python Sonic - Sonic Pi #164

Open enzyme69 opened 6 years ago

enzyme69 commented 6 years ago

SONIC PI LIVELOOP

live_loop :sustained do
  use_real_time
  #use_bpm 120

  f = sync "/osc/an/freq"

  d = 0.5

  use_synth :blade
  play hz_to_midi(f[0]), sustain:1.3

  sleep d

end

an_frequency_003_2017_10_13_06_41.zip

enzyme69 commented 6 years ago

AN Script Node:

import psonic as psonic
psonic.send_message('/an/freq', frequency)