annotate 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
rev   line source
Chris@69 1 #!/bin/sh
Chris@69 2 port=`lsof -c sonic- | grep UDP | sed -e 's/^.*[^0-9]\([0-9][0-9]*\) *$/\1/' | grep -v ' ' | head -1`
Chris@69 3 if [ -z "$port" ]; then
Chris@69 4 echo "Sonic Visualiser OSC port not found"
Chris@69 5 exit 1
Chris@69 6 fi
Chris@69 7 if [ -n "$1" ]; then
Chris@69 8 command=$1; shift
Chris@69 9 echo "osc.udp://127.0.0.1:$port/$command" "$@"
Chris@69 10 sv-osc-send "osc.udp://127.0.0.1:$port/$command" "$@"
Chris@69 11 else
Chris@69 12 while read command arg1 arg2 arg3 arg4 arg5; do
Chris@69 13 echo "osc.udp://127.0.0.1:$port/$command" $arg1 $arg2 $arg3 $arg4 $arg5
Chris@69 14 sv-osc-send "osc.udp://127.0.0.1:$port/$command" $arg1 $arg2 $arg3 $arg4 $arg5
Chris@69 15 done
Chris@69 16 fi
Chris@69 17