Skip to content

Instantly share code, notes, and snippets.

@comoc
Last active April 13, 2018 03:02
Show Gist options
  • Save comoc/5d1c85a0a57f01de48b4b51ecaf910a4 to your computer and use it in GitHub Desktop.
Save comoc/5d1c85a0a57f01de48b4b51ecaf910a4 to your computer and use it in GitHub Desktop.
python-oscで0がFalseになってしまう時の対処方法 ref: https://qiita.com/comocc/items/f247b8d14a6067b4fc79
from pythonosc import osc_message_builder
from pythonosc import udp_client
if __name__ == "__main__":
client = udp_client.UDPClient("127.0.0.1", 5005)
msg = osc_message_builder.OscMessageBuilder(address="/my_address")
msg.add_arg(0)
msg = msg.build()
client.send(msg)
from pythonosc import osc_message_builder
from pythonosc import udp_client
if __name__ == "__main__":
client = udp_client.UDPClient("127.0.0.1", 5005)
msg = osc_message_builder.OscMessageBuilder(address="/my_address")
msg.add_arg(0, osc_message_builder.OscMessageBuilder.ARG_TYPE_INT)
msg = msg.build()
client.send(msg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment