* Sox FM Radio Processing Example @ 2021-02-01 11:24 alant123 2021-02-01 13:15 ` Måns Rullgård 0 siblings, 1 reply; 2+ messages in thread From: alant123 @ 2021-02-01 11:24 UTC (permalink / raw) To: sox-users [-- Attachment #1.1: Type: text/plain, Size: 1502 bytes --] Hi all. I have used Sox for simple stuff in the past but am intrigued by the FM Radio processing example which (in different variations over time) appears in the man page. It may be just what I am looking for - but I can't get it to work. Referring to various posts on the Internet asking about this and also different versions of the man page scattered around, I have gleaned that the sinc effect is now the filter effect? However, there is still something wrong I get an error. Oddly, the sox manpage for Ubuntu 18 still uses the "sinc" version. I am using it in a script file that contains this: play t1.wav gain -3 filter 8000- 32 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 filter -17500 256 \ gain 9 lowpass -1 17801 but I get the following error message "play FAIL gain: usage [-e] [-b] .." For reference this is copied from the manpage at https://linux.die.net/man/1/sox Very likely this is just some silly formatting issue I have missed, but if so, I have looked at this for so long now I will probably never find it! Can anyone assist me? Thanks in advance Alan T. Cornwall UK. [-- Attachment #1.2: Type: text/html, Size: 4834 bytes --] [-- Attachment #2: Type: text/plain, Size: 0 bytes --] [-- Attachment #3: Type: text/plain, Size: 158 bytes --] _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Sox FM Radio Processing Example 2021-02-01 11:24 Sox FM Radio Processing Example alant123 @ 2021-02-01 13:15 ` Måns Rullgård 0 siblings, 0 replies; 2+ messages in thread From: Måns Rullgård @ 2021-02-01 13:15 UTC (permalink / raw) To: alant123; +Cc: sox-users <alant123@btconnect.com> writes: > Hi all. > > I have used Sox for simple stuff in the past but am intrigued by the FM > Radio processing example which (in different variations over time) appears > in the man page. It may be just what I am looking for - but I can't get it > to work. Referring to various posts on the Internet asking about this and > also different versions of the man page scattered around, I have gleaned > that the sinc effect is now the filter effect? However, there is still > something wrong I get an error. Oddly, the sox manpage for Ubuntu 18 still > uses the "sinc" version. It's the other way around, sinc is the new name (since 2009). > I am using it in a script file that contains this: > > play t1.wav gain -3 filter 8000- 32 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 filter -17500 256 \ > gain 9 lowpass -1 17801 > > but I get the following error message > > "play FAIL gain: usage [-e] [-b] .." That's because "filter" isn't a valid effect name, to it's parsed as an argument to the "gail" effect which (rightly) rejects it. > For reference this is copied from the manpage at > > https://linux.die.net/man/1/sox That's a very old version of the man page. Unfortunately, the current one is also wrong. Someone simply forgot to update that example at some point. I've fixed it just now. Here's the updated command: play track1.wav gain -3 sinc -n 29 -b 100 8000 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 Hope this helps. -- Måns Rullgård _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-01 13:16 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-02-01 11:24 Sox FM Radio Processing Example alant123 2021-02-01 13:15 ` Måns Rullgård
Code repositories for project(s) associated with this public inbox https://80x24.org/mirrors/sox.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).