| 1 |
""" |
| 2 |
Scan Open Sound Control inputs on a specific port |
| 3 |
|
| 4 |
**01-osc-scan.py** |
| 5 |
|
| 6 |
Scan Open Sound Control inputs on a specific port. This program |
| 7 |
can be used to find the address used by a specific device or the |
| 8 |
range of values sent on a given address. |
| 9 |
|
| 10 |
""" |
| 11 |
from pyo import * |
| 12 |
|
| 13 |
|
| 14 |
port = 9002 |
| 15 |
|
| 16 |
s = Server().boot().start() |
| 17 |
|
| 18 |
print("Play with your OSC interface...") |
| 19 |
|
| 20 |
|
| 21 |
def printInputMessage(address, *args): |
| 22 |
print("Address =", address) |
| 23 |
print("Values =", args) |
| 24 |
print("---------------") |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
scan = OscDataReceive(port=port, address="*", function=printInputMessage) |
| 31 |
|
| 32 |
s.gui(locals()) |