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-ASN: AS6130 216.105.38.0/24 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 69EAD1F4B4 for ; Sun, 18 Apr 2021 18:50:51 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1lYCVD-00018o-Tu; Sun, 18 Apr 2021 18:50:39 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYCVC-00018Z-Fa for sox-users@lists.sourceforge.net; Sun, 18 Apr 2021 18:50:38 +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:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: 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=E0FHw4Ev03qNnoLhU4sV6XoJd2zO183foBbMb0VbVJI=; b=Xx29FDUKUjc2KC8XY+10Eg+SOP xUYX68ob6lc3hAyB5Rp3AU0lWA2v/USzmfcDnFfZfhJ2IlDDeWHO4vmAH7+uelAosNE4u2Pra5Qug 95aYL0jRptA6RGDtGvwRN2IF1fDBPQWjCsR8ifim3G4H6CNh5ib+gPtzkIVK+FBt48lc=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: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=E0FHw4Ev03qNnoLhU4sV6XoJd2zO183foBbMb0VbVJI=; b=Ed29RThPvEHuZNjM9Z25HkQ/vf 968BktPoJn61EZxpXtB3pI9aTCCM/pL/Dw5dUx7eDSM1gl1C4heCCs6vkntJtJxeO8SWPqbqXU6bS X00PBA98JLMocqewv7f+XwEYHH75PQoZsXrzchYDz5kbxM5Qu6c8GZf+b2x3MCOc5vos=; Received: from mout.gmx.net ([212.227.15.15]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) id 1lYCV7-0000J1-17 for sox-users@lists.sourceforge.net; Sun, 18 Apr 2021 18:50:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1618771826; bh=HiHXoboTygb/LPbmTWnbXtfBvbDJnfczCc9vJEU6xSM=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=aHmXCrMycrYLU3eVZ65q/KukQSwbSXn4HUg0P4K+bzpOZv6lns4Wun4Ra8thLCG9l 06W1Ayr9Y0OUzgOpomGpA5pSAXLRZfeUi9EylTJ5U56vqwE6O3SEQg3nLOOzqsffHz pX3drAoc8C/1rL/noIa65hEPAUBEV9a+T2eXGg7c= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.13.137] ([178.27.171.42]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MkHQh-1lwlfn2LYf-00kkG1 for ; Sun, 18 Apr 2021 20:50:26 +0200 To: sox-users@lists.sourceforge.net References: From: "Dr. Thomas Tensi" Message-ID: <8ab46d92-0fc3-f972-250e-c22659741c3a@gmx.de> Date: Sun, 18 Apr 2021 20:50:26 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K1:7HkHTbCU5O2Ay6RA7HRT5937mOEI48PLNZOw3rhTKQBw+L32Afg 8RTdO2sjShvclKJk/A0TO8Fak5c+vJyxA4RYAIZpaoOGXjICFR8MwpssGjUwh3UrIEecXCG +M2uTb/HFrN8NnEwsdTybsSOYyTululbhFg4oq2U9ZdAkE4oqT5goVXrvDvJcyqla9fuAii uIAt9slyZXpFiiXVlQ2Bg== X-UI-Out-Filterresults: notjunk:1;V03:K0:O1IiyBNDZQ4=:vHcAgjmC9fDBMcbqvVa0Kf Msn+NvvYzvy+5Vbmb4mtBF80sczXsPzEjBRTkVqSXYOcS5IXHotdKldqyD9GgiwIVlU8Uq28v g0qpxcqBJfclp+jWO4nL33b9iRJVtfIfU3IqYZvq/JcXSN3Bjq/bayY0kpyp+OoGSkzdsug/L ESPzykxmlfsBcS8fWRThzCiR3lAWf2m2ROCU2Ul6u/BNZaia0tnBpHWIlU0Fzk7jHXX4TI3H6 0QXfYNMdKGlIJ3dwEV1Vsi7PlDms65gcNNL/1tduT8Dmzvr+JiJN0j1rslv18fpk+L7E1GKAj sYusk+riNwkY+B4bNpK8XQJinjcNH5/Su+FBAi7UkcjJJXCrXxYigDF+7wkHNGF2THFBaANT4 u6uGIvH+/QuEWNDd/Fw4QlQPWPYspsYyWKQPysUGyJrVY2N/NHXFOF2eFkgEBe+E2Exji/O0t IA6hg7xvAzxkk9X0o56KEaiOP3mtB4gBTLAHBXXHdxlKpfsBUa11gH6kEucC97lJZOIlFVIYO O7qFUEnfOflbNera9bMWLJb68Z88qZQ40qIYkPYrCeH0nBOmiuuJyPWGz8KwYhrBO+Ipz8bii qQM8cUTBLKSIj4OCipi8sv1hqJFmAkyDTI+c0tDPtsD3jH6F5bilcl5OZc5G1wz1CxpZkefC0 nxGw9zoOc3zkJ6n3E7EOfKeAkKJrtaeHA4DsRCV3PchesPFMiZq/ppf9TTRoAsMrciuW/M1dJ RsiUVMgyC+RAnhl7THsPtEu4LQR82w2PKyDxZK0O+zmaCiXeKbXb12a/N/O5w8a2TOOHYO2SF tastuiiDfpjGUxZPytQlfJCmRVjEoirHMXapixOE9yrlyxyyTSXfyZYQFgZIcmXlsg/BWKs+n Af/L67ce6TaQgBfrWDEjxnJFiC8IU4zO6YXTxHrmtLOIa8BCKfRD3DE6sKHjUWEVc1GfV6cJk /4SyhjqNMZ0NMU4ititn9ee36k5JlxCWJ/HN8cjeYyy0I8ncdFiVdpuZlf4NrxhJ4ZIBOgI0A 0RfR/04c2E4Y7MkTrIMSt5yeYiCVNWWZlT8NKuSbYfasgWHk5AC0GCKk0GehA45GM7Qxanpmt 5pw0iVB3g2B81Hv7dYLAACx+8plE5xyyYR//Z1tJPkt6OXlf67qdcnjiE67EkyFVHRjz5F4SV DBB7GJRFLidM9PQDk8syoLdrC0YQ48O8rj9ySaO9tpl/N9iltaoxSLAjHKxnh6CfPqtSM= X-Headers-End: 1lYCV7-0000J1-17 Subject: Re: Multi Band Processor 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 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: sox-users-bounces@lists.sourceforge.net Hello Robert, sorry for the late answer, hope this helps nevertheless! > I spent a very long time trying to get the multi band processor shown > in man sox to work. > It seems the manual is older then the code which has changed. Hmm. I am in currently rewriting some of the SoX code for (open-source) SoX-VST-Plugins for DAWs (with bit-exact identical behaviour to the command-line version) and as far as I can tell, the compand and mcompand parameters work as described in the manual. > I needed a processor that would take audio from various not so great > sources, adjust the dynamic range to suit a talk radio stream, and try > and correct the frequency balance. One source consistently has poor > room acoustics. Another has levels that vary wildly and a range of > audio frequency bandwidths. > > compand works as advertised. Perhaps not that clearly. > mcompand does not work as implied. It does some of what mcompand does > but not all. I find the transfer function definition in SoX a little bit weird, but it is extremely flexible. You do not define some compression ratio or some compression threshold directly, but define base points of that function. Your functions look okay, but you could consider rounding off the corners of the transfer function by adding a knee value of e.g. 4dB. > I would encourage comments suggestions and improvements. What you could do is factor out the common parameters and just put in the changed values instead; you already did that in part, but putting this further would make your script more modular. As far as I can see, your transfer functions, gain and initial volumes are very similar for all of the bands, hence the modular approach could be helpful. The crossover frequencies look okay for me. I find your release times of 1.2s or even 2.0 quite extreme, but if they work for your sound material, that's fine. Hope this helps! Best regards, Thomas _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users