From: Robert J. <spa...@gm...> - 2009-10-11 21:27:40
|
#enable echo mode SET ECHO 1 # load the JACK audio driver CREATE AUDIO_OUTPUT_DEVICE JACK SET AUDIO_OUTPUT_DEVICE_PARAMETER 0 CHANNELS=6 # 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 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 ADD CHANNEL LOAD ENGINE gig 1 SET CHANNEL AUDIO_OUTPUT_DEVICE 1 0 SET CHANNEL AUDIO_OUTPUT_CHANNEL 1 0 2 SET CHANNEL AUDIO_OUTPUT_CHANNEL 1 1 3 SET CHANNEL MIDI_INPUT_DEVICE 1 1 LOAD INSTRUMENT '/home/ddskrjo/audio/cDFH.gig' 18 1 ADD CHANNEL LOAD ENGINE gig 2 SET CHANNEL AUDIO_OUTPUT_DEVICE 2 0 SET CHANNEL AUDIO_OUTPUT_CHANNEL 2 0 4 SET CHANNEL AUDIO_OUTPUT_CHANNEL 2 1 5 SET CHANNEL MIDI_INPUT_DEVICE 2 0 LOAD INSTRUMENT '/home/ddskrjo/audio/rDFH.gig' 18 2 # finally show our channel setup (optional of course) GET CHANNEL INFO 0 GET CHANNEL INFO 1 GET CHANNEL INFO 2 # quit connection QUIT |