python-sonic
python-sonic copied to clipboard
Can't send 0 or 1
Test case:
Python:
from pythonosc import udp_client
sender = udp_client.SimpleUDPClient('127.0.0.1', 4559)
sender.send_message('/trigger/prophet', [0, 1, 2])
Sonic Pi:
live_loop :foo do
use_real_time
a, b, c = sync "/osc/trigger/prophet"
print(a,b,c)
end
Sonic Pi log:
{run: 9, time: 108.8493}
└─ 2 nil nil
Sorry, should have raised this against python-osc
For reference: https://github.com/attwad/python-osc/issues/57
Thought I'd leave it open for tracking purposes as it effects users of this library; it doesn't appear to be a SonicPi issue, but a python-osc one.