LS Feature Requests and Suggestions
Posted: Sun Jun 12, 2011 4:04 am
I'd like to contribute another custom written lscp file. I don't use graphic desktop environments on my sampler-laptop. This is for console nerds like myself.
On the main page theres also lscp files but this is an instrument mapping example.
Feature requests:
- i have to type "/home/oper/linuxsampler/" all the time. can this be remedied? The linux abbreviation "~/linuxsampler" also doesn't work afaik.
- can PERSISTENT be default behaviour or is that not practical somehow?
- On line 213 of linuxsampler.cpp
This code addition is very practical. Now the system knows the >exact time< when LS actually finished starting up. I hate writing custom perl scripts that sleep() and check to see if a daemonised LS is done yet...
So my request is that system("sh ~/.linsam") is added to LS so everyone can benefit from it.
My content of /home/oper/.linsam
Keep up the good work!
On the main page theres also lscp files but this is an instrument mapping example.
Code: Select all
#Filename: /home/oper/linuxsampler/in.lscp
SET ECHO 1
CLEAR MIDI_INSTRUMENTS 0
RESET
CREATE AUDIO_OUTPUT_DEVICE ALSA CARD='0,0' SAMPLERATE=44100 FRAGMENTSIZE=128 FRAGMENTS=3
#Frament(size) settings seemed to keep my laptop from making cracking sounds
CREATE MIDI_INPUT_DEVICE ALSA
ADD CHANNEL
LOAD ENGINE sfz 0
SET CHANNEL AUDIO_OUTPUT_DEVICE 0 0
SET CHANNEL MIDI_INPUT_DEVICE 0 0
#SET CHANNEL VOLUME 0 0.6
LOAD INSTRUMENT '/home/oper/linuxsampler/sal/sal.sfz' 0 0
ADD MIDI_INSTRUMENT_MAP
MAP MIDI_INSTRUMENT 0 0 0 sfz '/home/oper/linuxsampler/sal/sal.sfz' 0 1.0 PERSISTENT
MAP MIDI_INSTRUMENT 0 0 1 sfz '/home/oper/linuxsampler/elec/mello-rhodes.sfz' 0 1.0 PERSISTENT
MAP MIDI_INSTRUMENT 0 0 2 sfz '/home/oper/linuxsampler/hammondsoul.sfz' 0 1.0 PERSISTENT
SET CHANNEL MIDI_INSTRUMENT_MAP 0 0
#The persistent option reduced the chance of LS crashing when switching instruments faster than they could be loaded + reduced lag
#GET CHANNEL INFO 0
QUIT
- i have to type "/home/oper/linuxsampler/" all the time. can this be remedied? The linux abbreviation "~/linuxsampler" also doesn't work afaik.
- can PERSISTENT be default behaviour or is that not practical somehow?
- On line 213 of linuxsampler.cpp
Code: Select all
LinuxSampler::gig::Profiler::enable();
dmsg(1,("OK\n"));
}
system("sh ~/.linsam");
printf("LinuxSampler initialization completed. :-)\n\n");
while (atomic_read(&running)) {
So my request is that system("sh ~/.linsam") is added to LS so everyone can benefit from it.
My content of /home/oper/.linsam
Code: Select all
echo "BEGIN .linsam"
cat $HOME/linuxsampler/in.lscp | netcat localhost 8888
aconnect "Virtual Keyboard":0 LinuxSampler:0
echo "END .linsam"