Display value of individual sample

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at 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
audubon
Posts: 6
Joined: Sat May 05, 2012 2:27 pm
Operating System: Please select

Display value of individual sample

Post by audubon » Mon Aug 05, 2013 5:05 pm

In Audacity 2.0.2, is it possible to display the value of an individual sample?
(One more question: is there a shortcut to view a track full-screen?)
(Windows 7 Professional, SP1)

kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Display value of individual sample

Post by kozikowski » Mon Aug 05, 2013 5:59 pm

Control-F will contract the show left to right so the whole thing fits.

Control-E will zoom into the dragged selection and Control-3 will zoom out a little bit. I live in those three.

Koz

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

Re: Display value of individual sample

Post by steve » Mon Aug 05, 2013 11:18 pm

audubon wrote:In Audacity 2.0.2, is it possible to display the value of an individual sample?
Have a look at Sample Data Export
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

audubon
Posts: 6
Joined: Sat May 05, 2012 2:27 pm
Operating System: Please select

Re: Display value of individual sample

Post by audubon » Tue Aug 06, 2013 1:09 am

Thanks. I'm analyzing some audio waveforms that have certain amplitude features, and it would have been handy to be able to mouse-over or click a sample to read its value.

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

Re: Display value of individual sample

Post by steve » Tue Aug 06, 2013 1:40 am

You can find the value of the first sample in a selection by using the Nyquist Prompt effect and running the following code:

Code: Select all

(snd-fetch s)
If you want the value in dB, use this code:

Code: Select all

(linear-to-db (abs (snd-fetch s)))
You can also see an approximate value by zooming in vertically and horizontally as close in as possible
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

audubon
Posts: 6
Joined: Sat May 05, 2012 2:27 pm
Operating System: Please select

Re: Display value of individual sample

Post by audubon » Tue Aug 06, 2013 4:15 pm

Thanks--I was able to get the data I needed by repeatedly applying the Nyquist command using ^R.
steve wrote:You can find the value of the first sample in a selection by using the Nyquist Prompt effect and running the following code:

Code: Select all

(snd-fetch s)
If you want the value in dB, use this code:

Code: Select all

(linear-to-db (abs (snd-fetch s)))
You can also see an approximate value by zooming in vertically and horizontally as close in as possible

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

Re: Display value of individual sample

Post by steve » Tue Aug 06, 2013 5:08 pm

Just out of interest, what do you need these sample values for?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

audubon
Posts: 6
Joined: Sat May 05, 2012 2:27 pm
Operating System: Please select

Re: Display value of individual sample

Post by audubon » Tue Aug 06, 2013 5:23 pm

Making some audio-gear measurements--attack and release times, e.g.
steve wrote:Just out of interest, what do you need these sample values for?

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

Re: Display value of individual sample

Post by steve » Tue Aug 06, 2013 7:31 pm

Sounds interesting. Good luck with your project.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply