sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
* remove known sample from audio
@ 2018-09-25  9:26 Mikko Olkkonen
  2018-09-25 19:42 ` Jan Stary
  0 siblings, 1 reply; 7+ messages in thread
From: Mikko Olkkonen @ 2018-09-25  9:26 UTC (permalink / raw)
  To: Sox-users


[-- Attachment #1.1: Type: text/plain, Size: 1189 bytes --]

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 <X> 0 vol <Y>
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 <X> 0 vol -<Y> // 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.

[-- Attachment #1.2: Type: text/html, Size: 1635 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] 7+ messages in thread

end of thread, other threads:[~2018-09-27  9:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-25  9:26 remove known sample from audio Mikko Olkkonen
2018-09-25 19:42 ` Jan Stary
2018-09-26 13:49   ` Mikko Olkkonen
2018-09-26 18:16     ` Jan Stary
2018-09-26 18:35       ` Jan Stary
2018-09-27  6:24       ` Mikko Olkkonen
2018-09-27  9:48         ` Jan Stary

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).