|
From: Mark K. <mar...@gm...> - 2005-03-01 18:39:40
|
Replying to myself... So I tried some more commands: [mark@Godzilla LS-Scripts]$ echo GET AVAILABLE_MIDI_INPUT_DRIVERS | nc localhost 8888 ALSA [mark@Godzilla LS-Scripts]$ echo GET MIDI_INPUT_DRIVER INFO ALSA | nc localhost 8888 DESCRIPTION: Advanced Linux Sound Architecture VERSION: 1.13 PARAMETERS: ACTIVE,PORTS . [mark@Godzilla LS-Scripts]$ echo GET MIDI_INPUT_DRIVER_PARAMETER INFO ALSA PORTS | nc localhost 8888 TYPE: INT DESCRIPTION: Number of ports MANDATORY: false FIX: false MULTIPLICITY: false DEFAULT: 1 . [mark@Godzilla LS-Scripts]$ [mark@Godzilla LS-Scripts]$ echo GET MIDI_INPUT_DRIVER_PARAMETER INFO ALSA ACTIVE | nc localhost 8888 TYPE: BOOL DESCRIPTION: Enable / disable device MANDATORY: false FIX: false MULTIPLICITY: false DEFAULT: true . [mark@Godzilla LS-Scripts]$ But I'm not sure how I discover the second port? As an experiment I tried: CREATE MIDI_INPUT_DEVICE ALSA SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS="64:0" CREATE MIDI_INPUT_DEVICE ALSA SET MIDI_INPUT_PORT_PARAMETER 1 0 ALSA_SEQ_BINDINGS="64:32" which creates two MIDI inputs for LS but one of them does not go away when LS is killed. On Tue, 1 Mar 2005 09:56:53 -0800, Mark Knecht <mar...@gm...> wrote: > Hello, > My LS script files to date have used only a couple of MIDI commands: > > CREATE MIDI_INPUT_DEVICE ALSA > SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS="64:0" > SET CHANNEL MIDI_INPUT 0 0 0 0 > > The first two are documented in the LCSP document online but the last > one isn't. Could someone tell me what the four parameters are? I had > been guessing that it was the following: > > SET CHANNEL MIDI_INPUT <sampler-channel> <MIDI_INPUT_DEVICE #> > <MIDI_INPUT_DEVICE port-number> <MIDI-channel-number> > > but it doesn't seem correct: > > CREATE MIDI_INPUT_DEVICE ALSA > OK[0] > SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS="64:0" > OK > SET MIDI_INPUT_PORT_PARAMETER 0 1 ALSA_SEQ_BINDINGS="64:32" > ERR:0:There is no port 1 > > So, how do I bind my second MIDI input to LS? I'm trying to go beyond > 16 MIDI inputs on LS now. QJC shows: > > 64: MIDI 1 > -> 0: MIDI 1 > -> 32: MIDI 2 > > Why isn't the 32: a second port? > > I changed the script to say: > > CREATE MIDI_INPUT_DEVICE ALSA > SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS="64:0" > SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS="64:32" > > which works (graphically - untested with MIDI as of yet) according to > QJC but looks sort of wrong to me. When is a port a port? > > Thanks, > Mark > |