python-sonic icon indicating copy to clipboard operation
python-sonic copied to clipboard

Can't send 0 or 1

Open WayneKeenan opened this issue 7 years ago • 3 comments

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

WayneKeenan avatar Mar 20 '18 15:03 WayneKeenan

Sorry, should have raised this against python-osc

WayneKeenan avatar Mar 20 '18 15:03 WayneKeenan

For reference: https://github.com/attwad/python-osc/issues/57

WayneKeenan avatar Mar 20 '18 15:03 WayneKeenan

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.

WayneKeenan avatar Mar 20 '18 16:03 WayneKeenan