Mercurial > hg > sonic-visualiser
comparison osc/sv-command @ 69:76cc2c424268
* Update the main sv.prf for compatibility with Qt 4.2 qmake instead of
that from 4.1. Add a README.Qt41 describing how to build with 4.1 if
preferred.
* Add OSC support for control from external scripts etc (work in progress).
author | Chris Cannam |
---|---|
date | Fri, 10 Nov 2006 13:27:57 +0000 |
parents | |
children | e269ae6ed008 |
comparison
equal
deleted
inserted
replaced
68:050d764df239 | 69:76cc2c424268 |
---|---|
1 #!/bin/sh | |
2 port=`lsof -c sonic- | grep UDP | sed -e 's/^.*[^0-9]\([0-9][0-9]*\) *$/\1/' | grep -v ' ' | head -1` | |
3 if [ -z "$port" ]; then | |
4 echo "Sonic Visualiser OSC port not found" | |
5 exit 1 | |
6 fi | |
7 if [ -n "$1" ]; then | |
8 command=$1; shift | |
9 echo "osc.udp://127.0.0.1:$port/$command" "$@" | |
10 sv-osc-send "osc.udp://127.0.0.1:$port/$command" "$@" | |
11 else | |
12 while read command arg1 arg2 arg3 arg4 arg5; do | |
13 echo "osc.udp://127.0.0.1:$port/$command" $arg1 $arg2 $arg3 $arg4 $arg5 | |
14 sv-osc-send "osc.udp://127.0.0.1:$port/$command" $arg1 $arg2 $arg3 $arg4 $arg5 | |
15 done | |
16 fi | |
17 |