From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6130 216.105.38.0/24 X-Spam-Status: No, score=-3.4 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_DKIM_INVALID shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 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 8B5C61F453 for ; Tue, 25 Sep 2018 09:27:01 +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 1g4jcP-0005Vd-HJ; Tue, 25 Sep 2018 09:26:57 +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 1g4jcO-0005VU-89 for Sox-users@lists.sourceforge.net; Tue, 25 Sep 2018 09:26:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:To:Subject:Message-ID:Date:From: MIME-Version:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qsKvVB3UnvKRIqHE7KhfSiF9xAUu/bZhmoYAB8aa0as=; b=Ub9hMvV8y5I7zCXj53Aw+3oxYy eHmtALn8mXEzcoPooLJMc0s7P/mBpDilQsJE4B18XFjeOothvcL7acxbnZHRnc83vX+OGR+0nPMCX VYhKW5Bx/dm7/USgyTCDMD9vE4wOlwmd4wKUz4mbrm0CXlvBET+e0TCj7iFmklw6KqK4=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:To:Subject:Message-ID:Date:From:MIME-Version:Sender:Reply-To :Cc:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=qsKvVB3UnvKRIqHE7KhfSiF9xAUu/bZhmoYAB8aa0as=; b=V XIJaG61BiLf4ZsauuFY2NG6WS9vC2PNKH+87z8kpdFXYjrffsu3ULRAXetn405ZEgFS/ZTxNULW2R ntWbC7wiS8MDtyOUtjY0ECPeA1mDAP7hIgA2Mmoo3tiboopPo180Y1Jh66K6uZoPVgukhHRXYmm/8 nP1KEiG3omkBQjW0=; Received: from mail-lj1-f180.google.com ([209.85.208.180]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) id 1g4jcM-0063dM-Jv for Sox-users@lists.sourceforge.net; Tue, 25 Sep 2018 09:26:56 +0000 Received: by mail-lj1-f180.google.com with SMTP id p89-v6so4852634ljb.3 for ; Tue, 25 Sep 2018 02:26:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=qsKvVB3UnvKRIqHE7KhfSiF9xAUu/bZhmoYAB8aa0as=; b=vRMVtIa4kPRavaj1+BHqNb+y0lhMo9bweDyipCpyazLoWA3kPhwQ3CDKQ2SScAFvL1 ljhOV8MNw9c2OsrgddZTJ06MWbkYqBdgO/Wkj0X2+I2Njj7y6ywilA1K6fqp6Fal+7SD TOsf4mttmUhGuTex3xO+6DkL9W7rGCmINhupgp6U6qgbYd9o08AB87L4rDs6e6VbKzKj yWTLY3xmhOXe2Cq5Z+e+JA5aVDYGjKicIB3DHK064Hle+mVqLTztD4lyc+a7Dl1bA8WR bbEv/2zXKgrf6oFg3aexaElSw3D+YpXB0N0mJyCJosATcL8UJNyrE1fqSHmRlWTF+OVs rN0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qsKvVB3UnvKRIqHE7KhfSiF9xAUu/bZhmoYAB8aa0as=; b=LZz4eHsERap9Sqxj0Nm0j3qNOq3lu/lQ5kUpJ0tdJoyhfqojdq8hBIynJ85yr07Fj6 ejgOPstbJPK8NOVKAwAWRYJ6PDYUOYcHoWg79hf9lsnBnr6dS50QtHwGB+JTvzSFRNjz ZE2Zjelo4eHB/tvNEF5c8LFLDl5LKAauae2LJgKk7ZFYKYkyRfGJHoZwEez8brdSpqH6 JrdpHydAWspgfbzHmcATAqKbZmQLsUQV9tH648B7t5pUolgCRNh21M7XJvBrYpgKwaAR J9ARaOcKLtp4r42oz5qEiLNsGjHJ6i5h+efUFcZev7jmY/4yFTkD0Etk2gGoL8pH0AcL nw3Q== X-Gm-Message-State: ABuFfohQsG7NBrCJuf9J89THvQCgujs8AyJakt630Xxw8VXcQyIKu/3z ZVGbSptz5rR6XUuA+aKkoNwkbM8CKGf+xmMe8Nn4A2lF X-Google-Smtp-Source: ACcGV611OG//2sdeV3b8y22FzRg63AvOZgEgfJOBuPjSfR4IZqb4K8aZ05x2RM8JT9Jt8wHndvvtRbPGy1RQBKTDXt4= X-Received: by 2002:a2e:4702:: with SMTP id u2-v6mr94760lja.147.1537867607399; Tue, 25 Sep 2018 02:26:47 -0700 (PDT) MIME-Version: 1.0 From: Mikko Olkkonen Date: Tue, 25 Sep 2018 12:26:36 +0300 Message-ID: To: Sox-users@lists.sourceforge.net X-Headers-End: 1g4jcM-0063dM-Jv Subject: remove known sample from audio 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-Type: multipart/mixed; boundary="===============3010618990546393379==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============3010618990546393379== Content-Type: multipart/alternative; boundary="0000000000007361d20576aeb4b5" --0000000000007361d20576aeb4b5 Content-Type: text/plain; charset="UTF-8" Hello, What is the best way to subtract a known sample from given audio i.e. extract/reconstruct the original.wav from final.wav when final.wav has been created with commands: sox knownsample.wav knownsample_delay_gain.wav pad 0 vol sox -m original.wav knownsample_delay_gain.wav final.wav original.wav is not anymore available. knownsample.wav and final.wav are available. pad delay and the vol parameter are known _roughly_ (X =~10ms, Y=~0.1) regards, Mikk00 PS1, I can reconstruct the original with the process below but this method is very cumbersome: repeat { come up with some guessed X and Y sox knownsample.wav knownsample_delay_gain.wav pad 0 vol - // is also inverted sox -m -v 1 original.wav -v 1 knownsample_delay_gain.wav final.wav stat } until RMS amplitude reported by stat has reached local minimum I am after more streamlined way to remove known sample from given audio. PS2, The original problem is a two musical instruments recorded simultaneously in the same space. They have their own mics but the other instrument is audible in each recording. I want to remove the "wrong instrument" from each recording and have clean audio for both instruments. --0000000000007361d20576aeb4b5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
Wh= at is the best way to subtract a known sample from given audio i.e. extract= /reconstruct the original.wav from final.wav when final.wav has been create= d with commands:

sox knownsample.wav knownsample_d= elay_gain.wav pad <X> 0 vol <Y>
sox -m original.wav kn= ownsample_delay_gain.wav final.wav

origi= nal.wav is not anymore available. knownsample.wav and final.wav are availab= le. pad delay and the vol parameter are known _roughly_ (X =3D~10ms, Y=3D~0= .1)

regards, Mikk00
=

PS1, I can recon= struct the original with the process below but this method is very cumberso= me:
repeat {
come up with some guessed X and Y
<= /div>
sox knownsample.wav knownsample_delay_gain.wav pad <X> 0 vo= l -<Y> // is also inverted
sox -m -v 1 original.wav -v 1 kno= wnsample_delay_gain.wav final.wav stat
= } until RMS amplitude reported by stat has reached local minimum
<= div>I am after more streamlined way to remove known sample from given audio= .

PS2, The original problem is a two musical instr= uments recorded simultaneously in the same space. They have their own mics = but the other instrument is audible in each recording. I want to remove the= "wrong instrument" from each recording and have clean audio for = both instruments.


--0000000000007361d20576aeb4b5-- --===============3010618990546393379== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============3010618990546393379== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users --===============3010618990546393379==--