Skip to content

mdjurfeldt/music-osc

Repository files navigation

music-osc

Experimental interface between MUSIC and OSC

Set correct SRV_IP in all source files. Default is localhost.

To build mpi binaries:

make mpi

To build server binaries:

make server

or on OS X

make CXXFLAGS="-std=c++11 -g -O3" server

To make test example:

make test

Running test example:

On server, launch both udptoosc and osctoudp:

./udptoosc & ./osctoudp &

Launch test.music:

mpirun -np 3 music test.music

Output should look like:

udptoosc: 1.004 KEY 3 PRESSED udptoosc: 1.004 KEY 4 PRESSED udptoosc: 1.504 KEY 3 RELEASED udptoosc: 1.504 KEY 4 RELEASED udptoosc: 2.505 KEY 6 PRESSED udptoosc: 2.505 KEY 7 PRESSED udptoosc: 3.005 KEY 6 RELEASED udptoosc: 3.005 KEY 7 RELEASED . . .

To compile on Milner, do:

module swap PrgEnv-cray PrgEnv-gnu module add music

make MPICXX=CC CXX=CC CXXFLAGS="-O3 -std=c++11 -DHAVE_CLOCK_NANOSLEEP"

How to install liblo to $HOME/local, which is where the Makefile expects it

download liblo-0.28.tar from http://liblo.sourceforge.net tar xf liblo-0.28.tar cd liblo-0.28 ./configure --prefix=$HOME/local --enable-static=yes make install

How to run on osc test milner

on wand: sudo redirect add 9930 57120 music -e testosc.music chmod +x sim.sh oscin.sh oscout.sh cp sim.sh oscin.sh oscout.sh oscin oscout simproxy /cfs/milner/scratch/... salloc -N 3 aprun -n 1 ./sim.sh : -n 1 ./oscin.sh : -n 1 ./oscout.sh exit

About

Experimental interface between MUSIC and OSC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published