A SoX puzzle: the flanger equivalent to phaser?
Martin Guy <[email protected]> Wed, 22 Oct 2025 10:33:05 +0200
| Newsgroups | gmane.comp.audio.sox |
|---|---|
| Message-ID | <CAL4-wQoZnK=pXKR9VW3MohwCS5hy=LA_E+z4Ba4wSZd+KUGJ0Q@mail.gmail.com> |
--===============6993683587341050887==
Content-Type: multipart/alternative; boundary="00000000000005a9e40641bb2b83"
--00000000000005a9e40641bb2b83
Content-Type: text/plain; charset="UTF-8"
This month I've been working mostly on the documentation
and one of the additions to the manual is:
chorus -l gain-in gain-out delay decay speed depth -wave
is equivalent to
flanger delay depth 0 100/(decay/gain-in) speed wave 0 linear \
vol (decay+gain-in)xgain-out
and I've scratched my head to figure out the same for phaser but
haven't yet managed to make flanger produce a similar-enough wave
to phaser, except for all-input-and-no-delay
If anyone fancies a mathematical puzzle, what are the formulae to derive
the arguments to flanger, given
phaser -l gain-in gain-out delay regen speed -wave
I've got to
vol gain-in/(1+regen) \
flanger 0 delay regen*100 100*regen speed wave 0 \
vol gain-out
but the waveform's not even similar.
phaser -l is to interpret linearly between samples but is only in the
main branch as yet so I've made a 14.6.1+git20251022 release
in case someone wants to check hypotheses at
https://codeberg.org/sox_ng/sox_ng/releases
M
--00000000000005a9e40641bb2b83
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"ltr"><div>This month I've been working mos=
tly on the documentation</div><div>and one of the additions to the manual i=
s:</div><div><br></div><div>=C2=A0 =C2=A0 chorus -l gain-in gain-out delay =
decay speed depth -wave<br><br>=C2=A0 =C2=A0 is equivalent to<br><br>=C2=A0=
=C2=A0 flanger delay depth 0 100/(decay/gain-in) speed wave 0 linear \<br>=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 vol (decay+gain-in)xgain-out</div><div><br></di=
v><div>and I've scratched my head to figure out the same for phaser but=
</div><div>haven't yet managed to make flanger produce a similar-enough=
wave</div><div>to phaser, except for all-input-and-no-delay</div><div><br>=
</div><div>If anyone fancies a mathematical puzzle, what are the formulae t=
o derive</div><div>the arguments to flanger, given</div><div><br></div><div=
>=C2=A0=C2=A0=C2=A0 phaser -l gain-in gain-out delay regen speed -wave</div=
><div><br></div><div>I've got to</div><div><br></div><div>=C2=A0=C2=A0=
=C2=A0 vol gain-in/(1+regen) \</div><div>=C2=A0=C2=A0=C2=A0 flanger 0 delay=
regen*100 100*regen speed wave 0 \</div><div>=C2=A0=C2=A0=C2=A0 vol gain-o=
ut</div><div><br></div><div>but the waveform's not even similar.</div><=
div><br></div><div>phaser -l is to interpret linearly between samples but i=
s only in the</div><div>main branch as yet so I've made a 14.6.1+git202=
51022 release</div><div>in case someone wants to check hypotheses at<br></d=
iv><div><a href=3D"https://codeberg.org/sox_ng/sox_ng/releases">https://cod=
eberg.org/sox_ng/sox_ng/releases</a></div><div><br></div><div>=C2=A0=C2=A0=
=C2=A0 M<br></div></div>
</div>
--00000000000005a9e40641bb2b83--
--===============6993683587341050887==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============6993683587341050887==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Sox-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-users
--===============6993683587341050887==--