bmc0 / dsp

An audio processing program with an interactive mode.
ISC License
219 stars 31 forks source link

rew_to_dsp.sh no output #43

Closed Ruok2bu closed 5 years ago

Ruok2bu commented 5 years ago

My command line: root@xxxxxxxx:/home/xxxxxxxxxxx/dsp# ./scripts/rew_to_dsp.sh /home/xxxxxx/Equalizer.txt

Equalizer.txt is a config that i use in windows (with Equalizer APO) and it works fine there.

Any idea why i get a blank output when i run that command? Here's the contents of Equalizer.txt

Filter Settings file

Dated: June, 17th, 2016 09:30:00 AM

Notes: NoAudiophile.com Logitech z623 Correction

Preamp: 0 dB
Filter: ON PK Fc 30 Hz Gain 3.7 dB Q 2.5
Filter: ON PK Fc 4260 Hz Gain -1 dB Q 3
Filter: ON PK Fc 6440 Hz Gain -4.1 dB Q 2.1
Filter: ON PK Fc 11440 Hz Gain -7.5 dB Q 5.3
Filter: ON PK Fc 12500 Hz Gain -9.5 dB Q 5.3
Filter: ON PK Fc 17100 Hz Gain -12.4 dB Q 2.2
Filter: ON PK Fc 19350 Hz Gain -12.4 dB Q 3
bmc0 commented 5 years ago

Usually there's a number after the Filter token. It will work if you make a minor change to the file:

Filter Settings file

Dated: June, 17th, 2016 09:30:00 AM

Notes: NoAudiophile.com Logitech z623 Correction

Preamp: 0 dB
Filter 1: ON PK Fc 30 Hz Gain 3.7 dB Q 2.5
Filter 1: ON PK Fc 4260 Hz Gain -1 dB Q 3
Filter 1: ON PK Fc 6440 Hz Gain -4.1 dB Q 2.1
Filter 1: ON PK Fc 11440 Hz Gain -7.5 dB Q 5.3
Filter 1: ON PK Fc 12500 Hz Gain -9.5 dB Q 5.3
Filter 1: ON PK Fc 17100 Hz Gain -12.4 dB Q 2.2
Filter 1: ON PK Fc 19350 Hz Gain -12.4 dB Q 3

Also make sure that the file has Unix-style line endings.

Ruok2bu commented 5 years ago

Cool, thanks!