sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
* Reduce distortion?
@ 2020-07-16 21:05 Rodolfo Medina
  2020-07-17  8:38 ` Dr. Thomas Tensi
  0 siblings, 1 reply; 8+ messages in thread
From: Rodolfo Medina @ 2020-07-16 21:05 UTC (permalink / raw)
  To: sox-users

Hi Jeremy, hi all...

I regularly use Sox to mix different audio channels, and I find it a fantastic
tool.

Now I did some piano home stereo live recording, and the playback reveals here
and there some distortion, probably because the microphones were too close the
piano strings.  Tomorrow I'll try to fix that error, but I like today's
recordings and am sorry to have to throw them away.  Perhaps can Sox help in
some way to reduce the distortion?  Or any other tool?  I suppose also a little
could be all right...

Thanks for any help,

Rodolfo


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Reduce distortion?
  2020-07-16 21:05 Reduce distortion? Rodolfo Medina
@ 2020-07-17  8:38 ` Dr. Thomas Tensi
  2020-07-17  8:52   ` Rodolfo Medina
  0 siblings, 1 reply; 8+ messages in thread
From: Dr. Thomas Tensi @ 2020-07-17  8:38 UTC (permalink / raw)
  To: sox-users

Hello Rudolfo,


you wrote:
 > I regularly use Sox to mix different audio channels, and I find it a
 > fantastic tool.

So do I.

 > Now I did some piano home stereo live recording, and the playback
 > reveals here and there some distortion, probably because the
 > microphones were too close the piano strings.  Tomorrow I'll try
 > to fix that error, but I like today's recordings and am sorry to
 > have to throw them away.  Perhaps can Sox help in some way to
 > reduce the distortion?  Or any other tool?  I suppose also a
 > little could be all right...

In principle it is hard to get rid of digital distortion.  With SoX I
would use some naive mixing trickery like selective low-pass-filtering
the distorted parts or mixing the distorted signal with a
lowpass-filtered and slightly compressed version.  This could mask the
critical parts somewhat.

You could also try a research project from the Georgia Tech University
called ClipAway from 2016.  I didn't try it myself, but the approach
looks interesting.  They have a web-site available where you can upload
your file and get it "declipped".

https://cplaguna-audio.github.io/ClipAway/

Maybe you can report your success (or failure)?


	Best regards,

		Thomas


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Reduce distortion?
  2020-07-17  8:38 ` Dr. Thomas Tensi
@ 2020-07-17  8:52   ` Rodolfo Medina
  2020-07-17  9:56     ` Dr. Thomas Tensi
  0 siblings, 1 reply; 8+ messages in thread
From: Rodolfo Medina @ 2020-07-17  8:52 UTC (permalink / raw)
  To: Dr. Thomas Tensi; +Cc: sox-users

"Dr. Thomas Tensi" <t.tensi@gmx.de> writes:

> Hello Rudolfo,
>
>
> you wrote:
>> I regularly use Sox to mix different audio channels, and I find it a
>> fantastic tool.
>
> So do I.
>
>> Now I did some piano home stereo live recording, and the playback
>> reveals here and there some distortion, probably because the
>> microphones were too close the piano strings.  Tomorrow I'll try
>> to fix that error, but I like today's recordings and am sorry to
>> have to throw them away.  Perhaps can Sox help in some way to
>> reduce the distortion?  Or any other tool?  I suppose also a
>> little could be all right...
>
> In principle it is hard to get rid of digital distortion.  With SoX I
> would use some naive mixing trickery like selective low-pass-filtering
> the distorted parts or mixing the distorted signal with a
> lowpass-filtered and slightly compressed version.  This could mask the
> critical parts somewhat.
>
> You could also try a research project from the Georgia Tech University
> called ClipAway from 2016.  I didn't try it myself, but the approach
> looks interesting.  They have a web-site available where you can upload
> your file and get it "declipped".
>
> https://cplaguna-audio.github.io/ClipAway/
>
> Maybe you can report your success (or failure)?


Thanks you, Thomas...  At the address you report, I don't manage to load my
example...  I click onto `Load example' but nothing happens...  And also the
other buttons, all inactive for me...  Strange...

Rodolfo


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Reduce distortion?
  2020-07-17  8:52   ` Rodolfo Medina
@ 2020-07-17  9:56     ` Dr. Thomas Tensi
  2020-07-17 12:33       ` Rodolfo Medina
  0 siblings, 1 reply; 8+ messages in thread
From: Dr. Thomas Tensi @ 2020-07-17  9:56 UTC (permalink / raw)
  To: sox-users

Hello Rudolfo,

you wrote:
 > > > [distorted audio: how to clean?]
 > > [Try https://cplaguna-audio.github.io/ClipAway/]
 > Thanks you, Thomas...  At the address you report, I don't manage
 > to load my example...  I click onto `Load example' but nothing
 > happens...  And also the other buttons, all inactive for me...
 > Strange...

Hmm.  I opened the site in my browser (Firefox). When you click the
"Load Example" button some distorted demo file is loaded.  You can
declip it by pressing the "Declip" button.

I also managed to drag and drop a short wav file into the input area and
get it declipped.

So in principle this site seems to be working. Maybe you have to check
the audio format (I used WAV).


	Best regards,

                 Thomas


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Reduce distortion?
  2020-07-17  9:56     ` Dr. Thomas Tensi
@ 2020-07-17 12:33       ` Rodolfo Medina
  2020-07-17 12:45         ` Dr. Thomas Tensi
  0 siblings, 1 reply; 8+ messages in thread
From: Rodolfo Medina @ 2020-07-17 12:33 UTC (permalink / raw)
  To: Dr. Thomas Tensi; +Cc: sox-users

"Dr. Thomas Tensi" <t.tensi@gmx.de> writes:

> Hello Rudolfo,
>
> you wrote:
>> > > [distorted audio: how to clean?]
>> > [Try https://cplaguna-audio.github.io/ClipAway/]
>> Thanks you, Thomas...  At the address you report, I don't manage
>> to load my example...  I click onto `Load example' but nothing
>> happens...  And also the other buttons, all inactive for me...
>> Strange...
>
> Hmm.  I opened the site in my browser (Firefox). When you click the
> "Load Example" button some distorted demo file is loaded.  You can
> declip it by pressing the "Declip" button.
>
> I also managed to drag and drop a short wav file into the input area and
> get it declipped.
>
> So in principle this site seems to be working. Maybe you have to check
> the audio format (I used WAV).


All right, with drag and drop it unlocked and I could try the web test...
Listening to it, it seems to me that Audacity does a better job...  Maybe I'll
be downloading the files from:

 https://github.com/cplaguna-audio/ClipAway

and give a more careful try...

Rodolfo


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Reduce distortion?
  2020-07-17 12:33       ` Rodolfo Medina
@ 2020-07-17 12:45         ` Dr. Thomas Tensi
  2020-07-17 12:49           ` Måns Rullgård
  0 siblings, 1 reply; 8+ messages in thread
From: Dr. Thomas Tensi @ 2020-07-17 12:45 UTC (permalink / raw)
  To: sox-users

Hello Rodolfo,


sorry for misspelling your name in my previous posts!

> All right, with drag and drop it unlocked and I could try the web test...
> Listening to it, it seems to me that Audacity does a better job...

I assume you're using the "Clip Fix" effect?  Sorry, I didn't have
audacity on the radar in our discussion.

It would be interesting why the academic solution is worse.  They should
have tested it against more naive approaches...


	Best regards,

                   Thomas


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Reduce distortion?
  2020-07-17 12:45         ` Dr. Thomas Tensi
@ 2020-07-17 12:49           ` Måns Rullgård
  2020-07-17 13:02             ` Rodolfo Medina
  0 siblings, 1 reply; 8+ messages in thread
From: Måns Rullgård @ 2020-07-17 12:49 UTC (permalink / raw)
  To: Dr. Thomas Tensi; +Cc: sox-users

"Dr. Thomas Tensi" <t.tensi@gmx.de> writes:

> It would be interesting why the academic solution is worse.  They should
> have tested it against more naive approaches...

Sometimes a naive approach works better once you stray from the
particular test set used to develop something more sophisticated.

-- 
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] 8+ messages in thread

* Re: Reduce distortion?
  2020-07-17 12:49           ` Måns Rullgård
@ 2020-07-17 13:02             ` Rodolfo Medina
  0 siblings, 0 replies; 8+ messages in thread
From: Rodolfo Medina @ 2020-07-17 13:02 UTC (permalink / raw)
  To: Måns Rullgård; +Cc: sox-users

Måns Rullgård <mans@mansr.com> writes:

> "Dr. Thomas Tensi" <t.tensi@gmx.de> writes:
>
>> It would be interesting why the academic solution is worse.  They should
>> have tested it against more naive approaches...
>
> Sometimes a naive approach works better once you stray from the
> particular test set used to develop something more sophisticated.


My too quick and hasty web test is probably not a valid one...  let's wait for
those files to be downloaded and installed, hoping installation is not too
complicated...

Rodolfo


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-07-17 13:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-16 21:05 Reduce distortion? Rodolfo Medina
2020-07-17  8:38 ` Dr. Thomas Tensi
2020-07-17  8:52   ` Rodolfo Medina
2020-07-17  9:56     ` Dr. Thomas Tensi
2020-07-17 12:33       ` Rodolfo Medina
2020-07-17 12:45         ` Dr. Thomas Tensi
2020-07-17 12:49           ` Måns Rullgård
2020-07-17 13:02             ` Rodolfo Medina

sox-users@lists.sourceforge.net unofficial mirror

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://public-inbox.org/sox-users

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 sox-users sox-users/ https://public-inbox.org/sox-users \
		sox-users@lists.sourceforge.net
	public-inbox-index sox-users

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.audio.sox
	nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.audio.sox
	nntp://news.gmane.io/gmane.comp.audio.sox
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/sox.git

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git