Last active
April 13, 2018 03:02
-
-
Save comoc/5d1c85a0a57f01de48b4b51ecaf910a4 to your computer and use it in GitHub Desktop.
python-oscで0がFalseになってしまう時の対処方法 ref: https://qiita.com/comocc/items/f247b8d14a6067b4fc79
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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