[linux-audio-user] Re: [linux-audio-dev] linuxsampler cvs-snapshot from 13.06.2004 controlling it

Robert Jonsson rj at spamatica.se
Fri Jan 21 14:41:26 EST 2005


Hi again,

Attached is a small script I use together with linuxsampler. It's very 
rudimentary, based on some scripts I got from Christian Schoenebeck, though 
it works just fine!

The easy way of loading it is to get hold of netcat and use that to send 
commands to linuxsampler

netcat localhost 8888 < loaddfhsingle.txt

Regards,
Robert

fredagen den 21 januari 2005 16.03 skrev Julien Claassen:
> Hi!
>   I tried to use the cvs snapshot from the 13th of June last year to do
> some work. But it wouldn't accept commands.
>   I did:
>   $ linuxsampler
>   It told me that everything was well. Then I connected to it with telnet:
>   $ telnet localhost 8888
>   That succeeded, too. Then I tried just writing a comment:
>   # this is a comment
>   Still worked, but when I tried to put any real command to it, it just
> said: ERR:0:Unknown command.
>   Or something like it. I took the commands from the draft. But the sampler
> even wouldn't accept "quit". I tried quit, Quit and QUIT and the same with
> single and double quotes.
>   Any fix for this? I need to use the text-mode (telnet way).
>   Kindest regards
>        Julien
>
> --------
> Music was my first love and it will be my last (John Miles)
>
> ======== FIND MY WEB-PROJECT AT: ========
> http://ltsb.sourceforge.net - the Linux TextBased Studio guide

-- 
http://spamatica.se/music/
-------------- next part --------------
#enable echo mode
SET ECHO 1

# load the JACK audio driver
CREATE AUDIO_OUTPUT_DEVICE JACK

# connect to ALSA playback JACK client so we can hear something
# (you can use 'GET AUDIO_OUTPUT_CHANNEL_PARAMETER INFO 0 0 JACK_BINDINGS'
#  to get all available JACK clients / ports)
#SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 0 JACK_BINDINGS='alsa_pcm:playback_1'
#SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 1 JACK_BINDINGS='alsa_pcm:playback_2'

# load the ALSA MIDI driver
CREATE MIDI_INPUT_DEVICE ALSA

# connect my MIDI keyboard which has ALSA seq ID '72:0'
# (see 'aconnect -i' for the IDs of your MIDI devices
#  or use 'GET MIDI_INPUT_PORT_PARAMETER INFO 0 0 ALSA_SEQ_BINDINGS')
SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS='72:0'

# setup one sampler channel
ADD CHANNEL
LOAD ENGINE gig 0
SET CHANNEL AUDIO_OUTPUT_DEVICE 0 0
SET CHANNEL MIDI_INPUT_DEVICE 0 0
LOAD INSTRUMENT '/home/ddskrjo/audio/cDFH.gig' 18 0

# finally show our channel setup (optional of course)
GET CHANNEL INFO 0

# quit connection
QUIT


More information about the Linux-audio-user mailing list