mitchmindtree / nannou-sketches

Random bits and pieces with nannou!
76 stars 6 forks source link

soft-watch #5

Open rabarar opened 1 year ago

rabarar commented 1 year ago

can you describe the format for the OSC messages - I'm trying to use SonicPi to send messages to the app - but unsure how to format a "/jen/*" message to instrument an event

rabarar commented 1 year ago

I reverse-engineerd the jen_rx code and sent the following to get it "bumping" but i'd love to see an explanation of the grammar on how NOTES INSTRUMENTS AND MEASURES all work together in concert

# Welcome to Sonic Pi

use_osc "localhost", 9002

live_loop :fred do
  osc "/jen", 100, 0, 102, 2.5, 101, 4, 100, 0, 102, 150.0, 102, 20.0
  sleep 0.50
end

live_loop :bar do
  osc "/jen", 100, 0, 102, 12.5, 101, 4, 100, 0, 102, 10.0, 102, 20.0
  sleep 1.50
end