Get number of samples

A command that becomes available in the Query submenu if you select a Sound or LongSound object.

The Info window will tell you the total number of time samples in this object.


If the sampling frequency is 44100 hertz, a recording with a duration of 60 seconds will contain 2,646,000 samples.

Details for hackers

If you select a Sound or LongSound and click Inspect, you can see how the number of samples is stored in the object: it is the nx attribute.

© ppgb 20221202