On Sat, Apr 30, 2011 at 08:11:25AM +1000, Leigh Dyer wrote: > On 30/04/11 07:51, S. Massy wrote: > >Hello, > > > >Today, I built linuxsampler from CVS in order to be able to use the SFZ > >engine; however, when I do: > >LOAD ENGINE SFZ 0 > >SET CHANNEL AUDIO_OUTPUT_DEVICE 0 0 > > > >LinuxSampler segfaults. Has any one had any success using linuxsampler > >together with SFZ, ir is it still very much under development at this > >point? > > I've used it quite a bit, but I did find in the past (though less so > now) that it's a bit particular about the order in which things are > done. It could be that it's now happy enough with files generated by > its GUIs (I use Fantasia, and haven't run in to these problems for a > while), but that it's still not entirely robust when given commands > in a different order to what it's expecting. > > I've attached a sample .lscp file that I've been using a lot -- it > was generated in Fantasia, and loads 10 copies of the same SFZ drum > kit. Hopefully it'll give you some pointers on how to produce a > .lscp file that will load successfully. Thanks for the sample script; unfortunately, the end result is still a segfault. :( Perhaps something is broken in current CVS... Cheers, S.M. > > Thanks > Leigh > # Exported by: JSampler - a java front-end for LinuxSampler > # Version: 0.9 > # Date: Mon Jan 10 20:42:36 EST 2011 > > RESET > > SET VOLUME 0.35 > > CREATE MIDI_INPUT_DEVICE ALSA NAME='LinuxSampler' > SET MIDI_INPUT_PORT_PARAMETER 0 0 NAME='Port 0' > SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS=NONE > > CREATE AUDIO_OUTPUT_DEVICE JACK ACTIVE=true CHANNELS=10 SAMPLERATE=48000 NAME='LinuxSampler' > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 0 NAME='0' > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 0 JACK_BINDINGS=NONE > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 1 NAME='1' > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 1 JACK_BINDINGS=NONE > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 2 NAME='2' > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 2 JACK_BINDINGS=NONE > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 3 NAME='3' > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 3 JACK_BINDINGS=NONE > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 4 NAME='4' > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 4 JACK_BINDINGS=NONE > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 5 NAME='5' > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 5 JACK_BINDINGS=NONE > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 6 NAME='6' > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 6 JACK_BINDINGS=NONE > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 7 NAME='7' > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 7 JACK_BINDINGS=NONE > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 8 NAME='8' > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 8 JACK_BINDINGS=NONE > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 9 NAME='9' > SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 9 JACK_BINDINGS=NONE > > REMOVE MIDI_INSTRUMENT_MAP ALL > > ADD CHANNEL > SET CHANNEL MIDI_INPUT_DEVICE 0 0 > SET CHANNEL MIDI_INPUT_PORT 0 0 > SET CHANNEL MIDI_INPUT_CHANNEL 0 0 > LOAD ENGINE SFZ 0 > SET CHANNEL VOLUME 0 1.0 > SET CHANNEL MIDI_INSTRUMENT_MAP 0 NONE > SET CHANNEL AUDIO_OUTPUT_DEVICE 0 0 > LOAD INSTRUMENT NON_MODAL '/home/lsd/music/samples/linuxsampler/drums/RockStock/SFZ/RockStock\x20close.sfz' 0 0 > > > ADD CHANNEL > SET CHANNEL MIDI_INPUT_DEVICE 1 0 > SET CHANNEL MIDI_INPUT_PORT 1 0 > SET CHANNEL MIDI_INPUT_CHANNEL 1 0 > LOAD ENGINE SFZ 1 > SET CHANNEL VOLUME 1 0.15 > SET CHANNEL MIDI_INSTRUMENT_MAP 1 NONE > SET CHANNEL AUDIO_OUTPUT_DEVICE 1 0 > LOAD INSTRUMENT NON_MODAL '/home/lsd/music/samples/linuxsampler/drums/RockStock/SFZ/RockStock\x20room.sfz' 0 1 > > > ADD CHANNEL > SET CHANNEL MIDI_INPUT_DEVICE 2 0 > SET CHANNEL MIDI_INPUT_PORT 2 0 > SET CHANNEL MIDI_INPUT_CHANNEL 2 1 > LOAD ENGINE SFZ 2 > SET CHANNEL VOLUME 2 0.49 > SET CHANNEL MIDI_INSTRUMENT_MAP 2 NONE > SET CHANNEL AUDIO_OUTPUT_DEVICE 2 0 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 2 0 2 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 2 1 3 > LOAD INSTRUMENT NON_MODAL '/home/lsd/music/samples/linuxsampler/drums/RockStock/SFZ/RockStock\x20close.sfz' 0 2 > > > ADD CHANNEL > SET CHANNEL MIDI_INPUT_DEVICE 3 0 > SET CHANNEL MIDI_INPUT_PORT 3 0 > SET CHANNEL MIDI_INPUT_CHANNEL 3 1 > LOAD ENGINE SFZ 3 > SET CHANNEL VOLUME 3 0.27 > SET CHANNEL MIDI_INSTRUMENT_MAP 3 NONE > SET CHANNEL AUDIO_OUTPUT_DEVICE 3 0 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 3 0 2 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 3 1 3 > LOAD INSTRUMENT NON_MODAL '/home/lsd/music/samples/linuxsampler/drums/RockStock/SFZ/RockStock\x20room.sfz' 0 3 > > > ADD CHANNEL > SET CHANNEL MIDI_INPUT_DEVICE 4 0 > SET CHANNEL MIDI_INPUT_PORT 4 0 > SET CHANNEL MIDI_INPUT_CHANNEL 4 2 > LOAD ENGINE SFZ 4 > SET CHANNEL VOLUME 4 0.55 > SET CHANNEL MIDI_INSTRUMENT_MAP 4 NONE > SET CHANNEL AUDIO_OUTPUT_DEVICE 4 0 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 4 0 4 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 4 1 5 > LOAD INSTRUMENT NON_MODAL '/home/lsd/music/samples/linuxsampler/drums/RockStock/SFZ/RockStock\x20close.sfz' 0 4 > > > ADD CHANNEL > SET CHANNEL MIDI_INPUT_DEVICE 5 0 > SET CHANNEL MIDI_INPUT_PORT 5 0 > SET CHANNEL MIDI_INPUT_CHANNEL 5 2 > LOAD ENGINE SFZ 5 > SET CHANNEL VOLUME 5 0.14 > SET CHANNEL MIDI_INSTRUMENT_MAP 5 NONE > SET CHANNEL AUDIO_OUTPUT_DEVICE 5 0 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 5 0 4 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 5 1 5 > LOAD INSTRUMENT NON_MODAL '/home/lsd/music/samples/linuxsampler/drums/RockStock/SFZ/RockStock\x20room.sfz' 0 5 > > > ADD CHANNEL > SET CHANNEL MIDI_INPUT_DEVICE 6 0 > SET CHANNEL MIDI_INPUT_PORT 6 0 > SET CHANNEL MIDI_INPUT_CHANNEL 6 3 > LOAD ENGINE SFZ 6 > SET CHANNEL VOLUME 6 0.25 > SET CHANNEL MIDI_INSTRUMENT_MAP 6 NONE > SET CHANNEL AUDIO_OUTPUT_DEVICE 6 0 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 6 0 6 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 6 1 7 > LOAD INSTRUMENT NON_MODAL '/home/lsd/music/samples/linuxsampler/drums/RockStock/SFZ/RockStock\x20close.sfz' 0 6 > > > ADD CHANNEL > SET CHANNEL MIDI_INPUT_DEVICE 7 0 > SET CHANNEL MIDI_INPUT_PORT 7 0 > SET CHANNEL MIDI_INPUT_CHANNEL 7 3 > LOAD ENGINE SFZ 7 > SET CHANNEL VOLUME 7 0.53 > SET CHANNEL MIDI_INSTRUMENT_MAP 7 NONE > SET CHANNEL AUDIO_OUTPUT_DEVICE 7 0 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 7 0 6 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 7 1 7 > LOAD INSTRUMENT NON_MODAL '/home/lsd/music/samples/linuxsampler/drums/RockStock/SFZ/RockStock\x20room.sfz' 0 7 > > > ADD CHANNEL > SET CHANNEL MIDI_INPUT_DEVICE 8 0 > SET CHANNEL MIDI_INPUT_PORT 8 0 > SET CHANNEL MIDI_INPUT_CHANNEL 8 4 > LOAD ENGINE SFZ 8 > SET CHANNEL VOLUME 8 0.32 > SET CHANNEL MIDI_INSTRUMENT_MAP 8 NONE > SET CHANNEL AUDIO_OUTPUT_DEVICE 8 0 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 8 0 8 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 8 1 9 > LOAD INSTRUMENT NON_MODAL '/home/lsd/music/samples/linuxsampler/drums/RockStock/SFZ/RockStock\x20close.sfz' 0 8 > > > ADD CHANNEL > SET CHANNEL MIDI_INPUT_DEVICE 9 0 > SET CHANNEL MIDI_INPUT_PORT 9 0 > SET CHANNEL MIDI_INPUT_CHANNEL 9 4 > LOAD ENGINE SFZ 9 > SET CHANNEL VOLUME 9 0.44 > SET CHANNEL MIDI_INSTRUMENT_MAP 9 NONE > SET CHANNEL AUDIO_OUTPUT_DEVICE 9 0 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 9 0 8 > SET CHANNEL AUDIO_OUTPUT_CHANNEL 9 1 9 > LOAD INSTRUMENT NON_MODAL '/home/lsd/music/samples/linuxsampler/drums/RockStock/SFZ/RockStock\x20room.sfz' 0 9 > > > #jsampler.fantasia: [channel] > #jsampler.fantasia: channelLane = 1 > #jsampler.fantasia: viewType = NORMAL > #jsampler.fantasia: expanded = true > # > #jsampler.fantasia: [channel] > #jsampler.fantasia: channelLane = 1 > #jsampler.fantasia: viewType = NORMAL > #jsampler.fantasia: expanded = true > # > #jsampler.fantasia: [channel] > #jsampler.fantasia: channelLane = 1 > #jsampler.fantasia: viewType = NORMAL > #jsampler.fantasia: expanded = true > # > #jsampler.fantasia: [channel] > #jsampler.fantasia: channelLane = 1 > #jsampler.fantasia: viewType = NORMAL > #jsampler.fantasia: expanded = true > # > #jsampler.fantasia: [channel] > #jsampler.fantasia: channelLane = 1 > #jsampler.fantasia: viewType = NORMAL > #jsampler.fantasia: expanded = true > # > #jsampler.fantasia: [channel] > #jsampler.fantasia: channelLane = 1 > #jsampler.fantasia: viewType = NORMAL > #jsampler.fantasia: expanded = true > # > #jsampler.fantasia: [channel] > #jsampler.fantasia: channelLane = 1 > #jsampler.fantasia: viewType = NORMAL > #jsampler.fantasia: expanded = true > # > #jsampler.fantasia: [channel] > #jsampler.fantasia: channelLane = 1 > #jsampler.fantasia: viewType = NORMAL > #jsampler.fantasia: expanded = true > # > #jsampler.fantasia: [channel] > #jsampler.fantasia: channelLane = 1 > #jsampler.fantasia: viewType = NORMAL > #jsampler.fantasia: expanded = true > # > #jsampler.fantasia: [channel] > #jsampler.fantasia: channelLane = 1 > #jsampler.fantasia: viewType = NORMAL > #jsampler.fantasia: expanded = true > # > #jsampler.fantasia: [MIDI device] > #jsampler.fantasia: expanded = false > # > #jsampler.fantasia: [audio device] > #jsampler.fantasia: expanded = false > # > _______________________________________________ > Linux-audio-user mailing list > Linux-audio-user@xxxxxxxxxxxxxxxxxxxx > http://lists.linuxaudio.org/listinfo/linux-audio-user -- _______________________________________________ Linux-audio-user mailing list Linux-audio-user@xxxxxxxxxxxxxxxxxxxx http://lists.linuxaudio.org/listinfo/linux-audio-user