Question/Feature Request - Script Launch

G29

Member
Thread Starter
Joined
Jun 20, 2019
Posts
100
More  
Main Amp
Quad Stereo Amp
DAC
OKTO Research DAC8
Computer Audio
i7-6700, Debian 12, custom VST3 feeding CamillaDSP, REW, RePhase, custom Driver Level DRC-FIR with 128-bit internal (i)FFTs, 8 - 64-bit 256K tap FIRs
Front Speakers
Heavily modified Magenpan 20.1 with FIR XOs
Subwoofers
DIY OB/Dipole
Other Equipment
Full Mark Levinson Stack
Is there a way to launch a task/script passing the sweep file when starting to measure from a file to automate the playback of the file ?

If not currently available, I would like to request adding the ability to launch an optional command (to be supplied or modified by the user) be added when pressing start on a new measurement.

The option could pass the path and filename of the currently selected sweep file being used to the script to start the playback of a file from an alternate source.

This could allow the script to play to other ALSA interfaces not appearing in the REW list (and/or bypass the plughw writing straight the hw).

Thanks much !!!
 
Typically file playback happens on a different system than the one doing the measuring, so the scope of such a feature would be quite narrow. If the underlying issue is audio interface compatibility then an alternative audio interface layer may be a better solution, that is on the todo list to get around the Windows JavaSound limitations but may end up as a multi-platform option.
 
Hi John,

The use cases are:

1) Automate the procedure and guarantee the same file selected is the file played (eliminate pilot error).
2) Allow other tools to manage playback that have specific feature sets not supported in REW.
3) Allow other tools to access interfaces that REW does not support.
4) Allow other tools to control sample rate and bit depth issues.
5) Allow other tools to write directly to hardware or a pre-processor such as CamillaDSP to measure through FIR filters.
6) IMPORTANT: Prevent REW from accidentally writing to hardware (and potentially damaging drivers) when it should be writing through software crossovers.

#6 is the important one.

REW calls "scriptName sweepFilename &" in the background when the "start" button is selected on the playback from file option.

Code:
#!/bin/bash

# User defined script

# Example direct hardware playback through ALSA direct (avoiding plug layer) ...
aplay -c2 -r176400 -D hw:DAC8 $1

# Example pre-processor with FIR XO's and DSP ...
aplay -c2 -r176400 -D camilladsp $1

It is a generic feature that opens up a bunch of possibilities for the user.

Thanks much.
 
Last edited:
Back
Top