Positive-Negative Audio Peak Comparison

Help for Audacity 2.x.x on GNU/Linux.
Forum rules
ImageThis forum is for Audacity 2.x.x on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
jotape1960
Posts: 26
Joined: Mon Jul 23, 2012 5:09 pm
Operating System: Please select

Positive-Negative Audio Peak Comparison

Post by jotape1960 » Mon Dec 04, 2017 8:22 pm

Is there some tool to compare the absolute positive and/or negative audio peaks level of any audio piece? ???

It is intended to change the audio signal phase to get the positive peaks greatest than the negatives. Not always we can "see" it with the graphical view.

JUAN
From Chile

Trebor
Posts: 4506
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows Vista

Re: Positive-Negative Audio Peak Comparison

Post by Trebor » Mon Dec 04, 2017 9:01 pm

jotape1960 wrote:Is there some tool to compare the absolute positive and/or negative audio peaks level of any audio piece?
Changing to the dB scale makes it easier to quantify the quiet sections ...
Linear Versus Logarithmic (db) vertical scales.gif
Linear Versus Logarithmic (db) vertical scales.gif (124.45 KiB) Viewed 601 times

steve
Site Admin
Posts: 47274
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu
Contact:

Re: Positive-Negative Audio Peak Comparison

Post by steve » Tue Dec 05, 2017 12:44 am

It would be pretty easy to write a "Nyquist script" to measure the positive and negative extremes, provided that the track being measured is not too long (up to about an hour should be straightforward),

Example as a simple script that can be run in the Nyquist Prompt effect:
(this version is for mono tracks only)

Code: Select all

;version 4
(let ((top (peak (s-max 0 *track*) ny:all))
      (bottom (peak (s-max 0 (mult -1 *track*)) ny:all)))
  (format nil "Max positive: ~a~%Max negative: ~a"
          top bottom))
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

kozikowski
Forum Staff
Posts: 40428
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: OS X 10.9 Mavericks
Location: Los Angeles

Re: Positive-Negative Audio Peak Comparison

Post by kozikowski » Tue Dec 05, 2017 1:39 am

It is intended to change the audio signal phase to get the positive peaks greatest than the negatives.
Can we ask what the goal is? I mean the real goal?

You can't directly compare successive swings of the waveform. The positive and negative swings are never there at there same time. So then you get to decide the time interval. More positive than negative over what time interval.

I have exactly one thing in common with one professional presenter. She and I have profoundly non-symetrical waves when we speak. I can recognize her presentation mixed with some of her other presenters just by looking. No sound needed. In our particular case, all you need is Effect > Invert once at the beginning and almost all of our waves will be formed more up than down.

That's borderline silly, which leads me to ask why you want that.

There is one side issue in case you're going to go all scientific on us. Audacity drives scientists nuts. Audacity is a sound editor and sometimes takes actions that while not scientifically accurate, sound petty good. Because that's our goal.

Koz

jotape1960
Posts: 26
Joined: Mon Jul 23, 2012 5:09 pm
Operating System: Please select

Re: Positive-Negative Audio Peak Comparison

Post by jotape1960 » Fri Dec 08, 2017 11:47 pm

By experience only (nothing about science), I know best sound is obtained when the positive peaks are larger than negative.

The real world audio is asymmetrical, almost all the time.

It is the main reason because it is a very good idea to preserve the original audio phase polarity and, I guess, it is the reason because all microphones, cables, connectors, etc. have a + and - signs.

But..., there are times when the negative peaks are larger than positives. Specially with brass and percussion instruments.

Whatever the reason is, not always we can "see" it, easily, into the graphical interface.

Also... There was some audio processors, in the past (analogue audio world), with the capability to compare positive and negative peaks and change (invert) the polarity, if the difference takes too much long time. Could it be some plug-in, in the future???

JUAN
From Chile

Post Reply