vielmetti / all-systems-go-sonicpi-on-arm64

At All Systems Go!, run SonicPI on arm64 and make music!
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Drive GPIO Pins with Sonic Pi #11

Closed hanuman1 closed 3 years ago

hanuman1 commented 5 years ago

The idea is that Sonic Pi should be able to switch on LED by the pulse of the music.

frzb commented 5 years ago

May be related issue: https://github.com/samaaron/sonic-pi/issues/124

stefanmek commented 5 years ago

We can't use a GPIO directly from Sony Pi fault of funding. But we can work around it by using Sonic Pi to produce an OSC output, and then sent and picked up by Python script to drive the LED with GPIO zero. We require Python 3 into YOCTO.

stefanmek commented 5 years ago
# Welcome to Sonic Pi v3.1
use_osc "192.168.1.18", 12345

live_loop :flibble do
  sample :bd_haus, rate: 1
  osc "Hello/world"
  sleep 1
end

we were able to send the OSC package over the network on the beat of the music