Chris@69: #!/bin/sh Chris@69: port=`lsof -c sonic- | grep UDP | sed -e 's/^.*[^0-9]\([0-9][0-9]*\) *$/\1/' | grep -v ' ' | head -1` Chris@69: if [ -z "$port" ]; then Chris@69: echo "Sonic Visualiser OSC port not found" Chris@69: exit 1 Chris@69: fi Chris@69: if [ -n "$1" ]; then Chris@69: command=$1; shift Chris@69: echo "osc.udp://127.0.0.1:$port/$command" "$@" Chris@69: sv-osc-send "osc.udp://127.0.0.1:$port/$command" "$@" Chris@69: else Chris@69: while read command arg1 arg2 arg3 arg4 arg5; do Chris@69: echo "osc.udp://127.0.0.1:$port/$command" $arg1 $arg2 $arg3 $arg4 $arg5 Chris@69: sv-osc-send "osc.udp://127.0.0.1:$port/$command" $arg1 $arg2 $arg3 $arg4 $arg5 Chris@69: done Chris@69: fi Chris@69: