FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-osc/examples/simple_client.py at master · polythilene/python-osc · GitHub
polythilene
/
python-osc
Public
forked from
attwad/python-osc
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-osc
/
examples
/
simple_client.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (20 loc) · 775 Bytes
Breadcrumbs
python-osc
/
examples
/
simple_client.py
Copy path
File metadata and controls
25 lines (20 loc) · 775 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""Small example OSC client
This program sends 10 random values between 0.0 and 1.0 to the /filter address,
waiting for 1 seconds between each value.
"""
import
argparse
import
random
import
time
from
pythonosc
import
osc_message_builder
from
pythonosc
import
udp_client
if
__name__
==
"__main__"
:
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"--ip"
,
default
=
"127.0.0.1"
,
help
=
"The ip of the OSC server"
)
parser
.
add_argument
(
"--port"
,
type
=
int
,
default
=
5005
,
help
=
"The port the OSC server is listening on"
)
args
=
parser
.
parse_args
()
client
=
udp_client
.
SimpleUDPClient
(
args
.
ip
,
args
.
port
)
for
x
in
range
(
10
):
client
.
send_message
(
"/filter"
,
random
.
random
())
time
.
sleep
(
1
)
Back
|
FazBrowse Home
|
New Git URL