.-----.   .----.   .-----.  .-----.         .---.  .----.           .---..------.  
/ ,-.   \ /  ..  \ / ,-.   \/ ,-.   \  .-') /_   | /  ..  \    .-') /_   ||   ___|  
'-'  |  |.  /  \  .'-'  |  |'-'  |  |_(  OO) |   |.  /  \  . _(  OO) |   ||  '--.   
   .'  / |  |  '  |   .'  /    .'  /(,------.|   ||  |  '  |(,------.|   |`---.  '. 
 .'  /__ '  \  /  ' .'  /__  .'  /__ '------'|   |'  \  /  ' '------'|   |.-   |  | 
|       | \  `'  / |       ||       |        |   | \  `'  /          |   || `-'   / 
`-------'  `---''  `-------'`-------'        `---'  `---''           `---' `----''  

100days of guitar day 35

Sonic Pi and OSC

Today I made some progress on working with Sonic PI and OSC. Most of the work was re-learning the Sonic Pi syntax again, but I did get to some working code:

set :a, 0.5

## loop around getting messages
live_loop :bar do
  set :a, get["/osc:127.0.0.1:53038/fader1"][0]
  sleep 0.01
end

live_loop :foo do
  with_fx :wobble, phase: 1 do |e|
    control e, phase: get[:a]
    play 50, amp: get[:a]
    sleep 0.5
  end
end

I'm using TouchOSC to send the messages, and then the above code to do something with the messages.

I've also updated my todo list to create a Dash cheatsheet for Sonic Pi once I get my notes a bit more filled out.

Other Stuff

Actual Practice Update

Still practicing licks and boxes.

👈 Prev Day - Home - Next Day 👉