sonic-pi | - Code | Audio Utils library
kandi X-RAY | sonic-pi Summary
kandi X-RAY | sonic-pi Summary
Code. Music. Live.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sonic-pi
sonic-pi Key Features
sonic-pi Examples and Code Snippets
Community Discussions
Trending Discussions on sonic-pi
QUESTION
I am using Sonic Pi 3.3.1
on my Windows PC and a Python
script(Python3.7.2
) on my raspberry pi(Raspbian Buster
) that detects distance from an HC-SR04
-Ultrasonic Sensor .The program then creates a tune with a pitch that ranges higher if the object is further away, this tune is then sent over OSC
to Sonic Pi. External OSC
is enabled on my windows PC. I also checked the Port
and IP
addresses, and they are correct.
I have tested my circuit extensively and I can confidently say this isn't the source of the problem, and that I added it for documentation purposes only at the bottom of my post for anyone who is interested, so I will move on.
My Python code:
...ANSWER
Answered 2021-Mar-04 at 14:40The problem is in the Sonic Pi que path
, that receives the note from the python
scipt over a UDP
connection.More specifically it is in the sync
statement of the que path
. The sync statement is missing the senders Ip
address and Port
which is necessary when using multiple computers unlike in a local environment
You can either explicitly mention the Ip
address like so:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sonic-pi
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page