SpectraLayers Pro  6.0
Command line options

SpectraLayers can be called with various command line options. [ ] means optionnal arguments.

Launch options

Theses options only work when SpectraLayers is launched for the first time.

Command Description
-reset Reset every settings.
-dpiscaling SCALE Windows only. Forces the dpi scaling of the application. SCALE for a non high-dpi screen would be 1, otherwise it would typically be 2.
-cpu INSTRUCTIONSET Limits optimizations to the specific INSTRUCTIONSET. Possible values are sse42, avx, avx2, avx512.
-threads X Forces multi-threading to X threads.
-directx Windows only. Forces the use of DirectX instead of OpenGL.
-opengl Windows only. Forces the use of OpenGL instead of DirectX.
-language X Forces language to X, where X can be an ISO 639-1 code or a path to a .qm file.
-debug Write more detailed log files.

Session options

Theses options can be called at launch or when a SpectraLayers session is already active.

Calling SpectraLayers with options when a session is active will result in theses options being transferred to the active session.

Command Description
-deviceapi [API] Changes the active device to API. API must be an existing Type in Device Preferences. If API is not defined, it will switch back to the previously active API.
-edit FILE [START] Open FILE as a new project with START as the first sample position. If START is not defined, it will start at 0.
-merge FILE [START] Import FILE as a new layer into the active projec, with START as the first sample position. If START is not defined, it will start at 0.
-replace FILE [START] Replace any project created from the same FILE, with START as the first sample position. If START is not defined, it will start at 0.
-parent APPLICATION When opening a file with the above commands, define an application name that will be used for the Export Back text strings
-server SERVERNAME Gets socket notification sent to SERVERNAME for specific events (0: importing file, 1: file imported, 2: exporting file, 3: file exported, 4: file closed)
-timerange START LENGTH Zoom the current project to the specificed time range (in samples)
-freqrange BOTTOM HEIGHT Zoom the current project to the specificed frequency range (in hertz)