Paul Jessop
2017-05-05 10:06:33 UTC
Hi,
SoX is an awesome tool and mostly Iâm making very good use of it.
There are a few references in the archive here (*) and elsewhere to a problem with the example in the current (2014-12-31) documentation for mcompand:
play track1.wav gain â3 sinc 8000â 29 100 mcompand \
"0.005,0.1 â47,â40,â34,â34,â17,â33" 100 \
"0.003,0.05 â47,â40,â34,â34,â17,â33" 400 \
"0.000625,0.0125 â47,â40,â34,â34,â15,â33" 1600 \
"0.0001,0.025 â47,â40,â34,â34,â31,â31,â0,â30" 6400 \
"0,0.025 â38,â31,â28,â28,â0,â25" \
gain 15 highpass 22 highpass 22 sinc ân 255 âb 16 â17500 \
gain 9 lowpass â1 17801
I am looking to emulate the kind of compressor used in FM broadcasting and broadly understand the chain here: decrease level, some sort of filter (read on), multiband compander with crossovers at 100, 400, 1600 and 6400Hz, increase level, filter out very low frequencies, lowpass at 17.5kHz, increase level and lowpass at 17.8kHz.
The second instance of âsincâ seems to be correct but the first âsinc 8000â 29 100â throws an error (using 14.4.2) and (according to others who have looked at this) seems to retain the parameters of the old âfilterâ effect. That would make it a low pass filter with a corner at 8kHz and a window-length of 29 (the default being 128) and a beta of 100 (default being 16 for a Kaiser window). I wonder if 29 and 100 are the right way around even? They are very far from their defaults.
My simplistic attempts to emulate this with âsincâ or âlowpassâ create all sorts of level problems and Iâm trying to understand what this effect is intended to do! If it is indeed supposed to roll off the response of the overall effect at 6dB/octave above 8kHz, that doesnât seem to be recovered further down the chain. Knowing what the chain emulates would help!
Has anyone solved this?
Best regards,
Paul
(*) Most recently Doug Lee at https://sourceforge.net/p/sox/mailman/message/34787636/
Paul Jessop county analytics ltd
---------------------------------------------
rights - technology - markets - music - media
---------------------------------------------
***@countyanalytics.com<mailto:***@countyanalytics.com> +44 7850 685378
SoX is an awesome tool and mostly Iâm making very good use of it.
There are a few references in the archive here (*) and elsewhere to a problem with the example in the current (2014-12-31) documentation for mcompand:
play track1.wav gain â3 sinc 8000â 29 100 mcompand \
"0.005,0.1 â47,â40,â34,â34,â17,â33" 100 \
"0.003,0.05 â47,â40,â34,â34,â17,â33" 400 \
"0.000625,0.0125 â47,â40,â34,â34,â15,â33" 1600 \
"0.0001,0.025 â47,â40,â34,â34,â31,â31,â0,â30" 6400 \
"0,0.025 â38,â31,â28,â28,â0,â25" \
gain 15 highpass 22 highpass 22 sinc ân 255 âb 16 â17500 \
gain 9 lowpass â1 17801
I am looking to emulate the kind of compressor used in FM broadcasting and broadly understand the chain here: decrease level, some sort of filter (read on), multiband compander with crossovers at 100, 400, 1600 and 6400Hz, increase level, filter out very low frequencies, lowpass at 17.5kHz, increase level and lowpass at 17.8kHz.
The second instance of âsincâ seems to be correct but the first âsinc 8000â 29 100â throws an error (using 14.4.2) and (according to others who have looked at this) seems to retain the parameters of the old âfilterâ effect. That would make it a low pass filter with a corner at 8kHz and a window-length of 29 (the default being 128) and a beta of 100 (default being 16 for a Kaiser window). I wonder if 29 and 100 are the right way around even? They are very far from their defaults.
My simplistic attempts to emulate this with âsincâ or âlowpassâ create all sorts of level problems and Iâm trying to understand what this effect is intended to do! If it is indeed supposed to roll off the response of the overall effect at 6dB/octave above 8kHz, that doesnât seem to be recovered further down the chain. Knowing what the chain emulates would help!
Has anyone solved this?
Best regards,
Paul
(*) Most recently Doug Lee at https://sourceforge.net/p/sox/mailman/message/34787636/
Paul Jessop county analytics ltd
---------------------------------------------
rights - technology - markets - music - media
---------------------------------------------
***@countyanalytics.com<mailto:***@countyanalytics.com> +44 7850 685378