gkvoelkl / python-sonic

Programming Music with Python, Sonic Pi and Supercollider
MIT License
313 stars 46 forks source link

Can't send 0 or 1 #18

Open WayneKeenan opened 6 years ago

WayneKeenan commented 6 years ago

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 commented 6 years ago

Sorry, should have raised this against python-osc

WayneKeenan commented 6 years ago

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

WayneKeenan commented 6 years ago

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.