|
From: Rui N. C. <rn...@rn...> - 2012-04-10 15:31:47
|
On 04/10/2012 11:39 AM, rosea.grammostola wrote: > 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 > jfyi. qsampler has been loading/saving lscp scripts since its inception which in fact matches linuxsampler's long before fantasia (jsampler) ever existed. cheers -- rncbc aka Rui Nuno Capela rn...@rn... |