This is a simple CLI tool to easily create a configuration file for your Headphones or IEMs using Headphone-Correction-Data from Jaakko Pasanen's AutoEq to use with Henrik Enquist's CamillaDSP. CamillaDSP
is e.g included in moOde audio player.
Using it stand alone on all major systems is well documented in Processing audio of the documentation.
If you start the tool with no arguments from the command line with autoeq2camilladsp
you will enter interactive mode which will lead you through the process of creating your configuration.
To use the tool in other contexts e.g. a music player like moOde
, there are some commands which will enable you to do so.
If you start the tool with arguments, it will be run in non-interactive mode.
To get a list of all available commands and options run autoeq2camilladsp -h
.
At the moment the command exits with just two very basic exit codes:
This will get the full list of entries from the AutoEq repository and output it to the terminal as JSON. It also includes a list of all the available presets.
autoeq2camilladsp init
The resultin JSON output will have this structure:
{
"autoeqList": [
{
"name": "onkyo ie-fc300",
"link": "/jaakkopasanen/AutoEq/blob/master/results/referenceaudioanalyzer/referenceaudioanalyzer_siec_harman_in-ear_2019v2/Onkyo%20IE-FC300.txt"
},
{
"name": "tozo nc7",
"link": "/jaakkopasanen/AutoEq/blob/master/results/rtings/rtings_harman_in-ear_2019v2/TOZO%20NC7.txt"
},
],
"crossfeedPresets": [
"None",
"PowChuMoy",
"Mpm",
"Natural"
]
}
Create a config file based on the options selected in the provided JSON input like so:
autoeq2camilladsp create '{"headphone":"{"name":"some headphone", "link":"some link"}, "crossfeed":"Mpm"}'
Make sure to only use values which exist in the output created with the init
command.
The CamillaDSP configuration starts with a devices
section which will be specific to the equipment you are using. In order to include this section just put it in a .yml
file and it can be read and added to your configuration.
Please refer to the CamillaDSP Readme for more information about this section.
If you do not include your own devices
file, the configuration will be built with a default which works as is in moOde
.
You can include Crossfeed in your configuration file.
The basic principle of this is to reduce the channel separation of the stereo signal by feeding a little amount of the lower frequency range from left to right and vice versa.
graph LR
A[Left IN]--> G[Attenuation / Filters]--> B[Left OUT]
A --> E[Attenuation / Filters] --> D
C[Right IN]-->H[Attenuation / Filters]-->D[Right OUT]
C --> F[Attenuation / Filters] -->B
Two my knowledge there are two main publications most implementation of crossfeed are based on:
The most widely used DSP implementation of crossfeed might be Boris Mikhaylov's Bauer stereophonic-to-binuaral DSP / bs2b or bs2b
. Mikhaylov also provides a lot of interesting background, research and explanation on his design decissions for bs2b
.
Two CamillaDSP
related crossfeed projects worth looking into are Yue Wang's camilladsp-crossfeed and CamillaDSP-Monitor.
I can also highly recommend Mikhail Naganov's Electronic Projects blog which provides a lot of in depth information on various audio topics.
graph LR
A[Left IN]-- -2 dB --> G[Highshelf Filter 950 Hz +2 dB]--> B[Left OUT]
A -- -6 dB --> E[Lowpass Filter 700 Hz] --> D
C[Right IN]-- -2 db -->H[Highshelf Filter 950 Hz +2 dB]-->D[Right OUT]
C -- -6 dB --> F[Lowpass Filter 700 Hz] --> B
This preset is based on the analogue implementation by Pow Chu Moy who designed An Acoustic Simulator For Headphone Amplifiers which in turn is based on the implementation by Siegfried Linkwitz which was published as Improved Headphone Listening 1973 in Audio.
The DSP version of this draws from Boris Mikhaylov's Bauer stereophonic-to-binuaral DSP / bs2b implementation in the widely used bs2b
.
graph LR
A[Left IN]-- -2.3 dB --> G[Highshelf Filter 200 Hz +2.3 dB]--> B[Left OUT]
A -- -9.9 dB --> E[Highshelf Filter 750 Hz -0.3 dB] --> I[Peaking EQ 180 Hz +0.5 dB Q 0.55] --> D
C[Right IN]-- -2.3 db -->H[Highshelf Filter 200 Hz +2.3 dB]-->D[Right OUT]
C -- -9.9 dB --> F[Highshelf Filter 750 Hz -0.3 dB] --> J[Peaking EQ 180 Hz +0.5 dB Q 0.55] --> B
This preset is based on research and "reverse engineering" done by Mikhail Naganov and published on his blog Electronic Projects in Reconstructing SPL Phonitor Mini Crossfeed with DSP in 2017.
I reached out to Mikhail who was so kind to contribute this implementation and also provide a lot of insight to my hobbyist research on the crossfeed topic in general. Thanks!
graph LR
A[Left IN]-- -1.5 dB --> G[Highshelf Filter 900 Hz +1.5 dB]--> B[Left OUT]
A -- -9.5 dB --> E[Lowpass Filter 650 Hz] --> D
C[Right IN]-- -1.5 db -->H[Highshelf Filter 900 Hz +1.5 dB]-->D[Right OUT]
C -- -9.5 dB --> F[Lowpass Filter 650 Hz] --> B
This preset is roughly modeled after some publications by Jan Meier and is still work in progress.