From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.3 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 3EA601F4B4 for ; Mon, 1 Feb 2021 13:16:11 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1l6Z3h-0004GN-Gj; Mon, 01 Feb 2021 13:16:01 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6Z3g-0004GG-7i for sox-users@lists.sourceforge.net; Mon, 01 Feb 2021 13:16:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lTePxx4/dGEB5J4EZL4KOWS6XZNjVsyvraCGvUADYuA=; b=cOdpAuUE9PCsyYSdjBa1xb8D3E ko/0fI/E2Ud8wgd5tk5BTTeF4WlEtLkALfWa9V2afQqdrD137yUtSILaMmqxJL+TPVUWxN83D8ZWW dt3Mw3zWjJ2Ba4nlJLekjvaX2rJlvRvOCiYalL50EQObryL3+ouQPrxB18EFXy9YdKLk=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=lTePxx4/dGEB5J4EZL4KOWS6XZNjVsyvraCGvUADYuA=; b=mHlD5XZT+Y4O86TIqf+AvLxy9Q 8jPu4VY+Y0fvVeRXYnym6EN7anutetV3afx113jf8KMlXxsmfQQRrz6ODSdcuc1WhPjGigXzJtY7C IcNrW0cgpAC8g5maaf/+Ti3ndncU1fiqn65ShhvYCXOERsAg4M08erV1xY4FvSeRHn1o=; Received: from [81.2.72.234] (helo=unicorn.mansr.com) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) id 1l6Z3Y-0007KE-Kd for sox-users@lists.sourceforge.net; Mon, 01 Feb 2021 13:15:59 +0000 Received: from raven.mansr.com (raven.mansr.com [81.2.72.235]) by unicorn.mansr.com (Postfix) with ESMTPS id 55F3D15360; Mon, 1 Feb 2021 13:15:36 +0000 (GMT) Received: by raven.mansr.com (Postfix, from userid 51770) id F2ED4219FCF; Mon, 1 Feb 2021 13:15:35 +0000 (GMT) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: References: <000b01d6f88c$dff1bd40$9fd537c0$@btconnect.com> Date: Mon, 01 Feb 2021 13:15:35 +0000 In-Reply-To: <000b01d6f88c$dff1bd40$9fd537c0$@btconnect.com> (alant's message of "Mon, 1 Feb 2021 11:24:57 -0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Headers-End: 1l6Z3Y-0007KE-Kd Subject: Re: Sox FM Radio Processing Example X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-users@lists.sourceforge.net Cc: sox-users@lists.sourceforge.net Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: sox-users-bounces@lists.sourceforge.net 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 sti= ll > 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=E5ns Rullg=E5rd _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users