Hi,

Is this the only way to load a lscp file into LinuxSampler (apart from 
using a GUI like Fantasia)?

cat myfile.lscp | nc localhost 8888

I want to have a script for Non Session Manager (NSM). I NSM it is 
possible to load a program via a proxy/ wrapper. I want to load a 
script, which starts Linuxsampler, and be able to add an argument to the 
proxy/wrapper in NSM, which loads the lscp file. The script (didn't 
write it myself) looks now like (see below).
The only problem so far is, that NSM isn't able to kill Linuxsampler 
when you close the session. The last command in the script doesn't work 
so far, it's needs probably a more complex way to achieve that LS gets 
killed when closing the session. Any help is welcome!

Regards,
\r


#!/bin/bash

linuxsampler 
--instruments-db-location=/home/derick/linuxaudio/linuxsampler/dericks_instruments.db
 
&

LSPID=$!

# wait for LS to init
sleep 4;

# tell it what file to load
cat $1 | nc localhost 8888

#now wait on LS to die...
fg




------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to