Comfortable running applications from the command line?

By running the Mnemonica software from the command line, several additional features can be obtained.

Mac:

First change to the directory where Mnemonica.jar is located:

Mnemonica.app/Contents/Resources/Java/

You will need to copy both the MNEMONICA_CONTROLS file into this directory (or relocate the resouces in this folder and change the corresponding paths above) in order for the software to discover these files.

java -cp ./jsyn.jar:./grame.jar:./Mnemonica.jar -d32 -server sl6w.inst.KeyboardMultiSampler 0 0 1 0 -f -c

runs the software normally from this directory.

WINDOWS:

From within the Mnemonica folder:

java -cp ./lib/jsyn.jar;./lib/grame.jar;./lib/Mnemonica.jar -d32 -server sl6w.inst.KeyboardMultiSampler 0 0 1 0 -f -c

runs the software normally from this directory.

***

The command line arguments "0 0 1 0" above respectively refer to the input channel, a list of output channels, and the Midi channel used by the software. These values will be important below as we describe additional command line features.

RECEIVING CONTINUOUS CONTROLLER AND PROGRAM CHANGE VALUES ON A SPECIFIC MIDI CHANNEL

The last number in the command line arguments "0 0 1 0" refers to the Midi channel Mnemonica receives continuous controller and program change values on. A value of 0 here instructs the software to receive Midi data on channel one. Note that the Midi channel number assignments start incrementing up from zero, one less than the conventional channel number. A value of -1 here will tell the software to receive Midi data on all channels.

e.g. running (on a Mac):

java -cp ./jsyn.jar:./grame.jar:./Mnemonica.jar -d32 -server sl6w.inst.KeyboardMultiSampler 0 0 1 1 -f -c

will receive Midi data for continuous controller and program change values only on channel 2.

USING ALTERNATIVE INPUT AND OUTPUT CHANNELS:

The command line arguments "0 0 1 0" above respectively refer to the input channel, a list of output channels, and the Midi channel used by the software. Change these initial values to whatever input channels and output channels you'd like to use - note that your first input or output channel is number 0 and so on.

e.g. running (on a Mac)

java -cp ./jsyn.jar:./grame.jar:./Mnemonica.jar -d32 -server sl6w.inst.KeyboardMultiSampler 3 6 7 0 -f -c

uses the fourth audio input (number 3) and the seventh and eighth audio output (numbers 6 and 7)

MULTI-CHANNEL SAMPLER ASSIGNMENTS:

Mnemonica supports the assignment of individual samplers to whatever output channels your system supports. As mentioned above, the command line arguments "0 0 1 0" above respectively refer to the input channel, list of output channels, and Midi channel used by the software. The two numbers here describing the output channels can be replaced with a list of other output channels. Each sampler will be incremently assigned in a looping pattern to the output channels provided. The Wandering Band-Pass Filter will be disabled however when not using two output channels (see below).

e.g. running the software (on a Mac) with:

java -cp ./jsyn.jar:./grame.jar:./Mnemonica.jar -d32 -server sl6w.inst.KeyboardMultiSampler 0 0 1 2 3 0 -f -c

assigns the first and fifth sampler to output 0, the second and sixth sampler to output 1, the third and seventh sampler to output 2, and the fourth sampler to output 3 (and uses the first audio input channel and receives data on Midi channel 1).

running the software (on a Mac) with:

java -cp ./jsyn.jar:./grame.jar:./Mnemonica.jar -d32 -server sl6w.inst.KeyboardMultiSampler 0 0 1 2 3 4 5 6 0 -f -c

Assigns each sampler individually to the first seven output channels (and uses the first audio input channel and receives data on Midi channel 1).

running the software (on a Mac) with:

java -cp ./jsyn.jar:./grame.jar:./Mnemonica.jar -d32 -server sl6w.inst.KeyboardMultiSampler 0 0 0 -f -c

makes Mnemonica mono, assigning all samplers to the first output channel (and uses the first audio input channel and receives data on Midi channel 1).

NO WANDERING BAND-PASS FILTER AND STEREO OUTPUT:

The Wandering Band-Pass Filter is only available when using two output channels. When using two output channels, you can disable it by dropping the "-f" flag. In this case, the samplers will alternate assignments between the first and second output channels provided creating a hard-panning effect.

NO DISPLAY WINDOW:

Dropping the last "-c" flag will eliminate launching the display window. All output will be displayed into the terminal window. This may be more efficient for the overall system.

BACK TO CONTENTS