Duration - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

AudioTools

  

Duration

  

compute the duration of a recording, in seconds

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Duration(audArray)

Parameters

audArray

-

Array, Vector, or Matrix containing the audio data

Description

• 

The Duration command computes the duration of an audio recording, in seconds, based on the number of samples, and the samples per second as stored in the attributes of audArray.

• 

The audArray parameter must be a dense, rectangular, one or two dimensional Array, Vector, or Matrix with datatype=float[8],

Examples

audiofilecatkerneloptsdatadir,/audio/stereo.wav:

withAudioTools:

audReadaudiofile

audSample Rate22050File FormatPCM File Bit Depth8Channels2Samples/Channel19962Duration0.90531s

(1)

Durationaud

11091225

(2)

evalf

0.9053061224

(3)

See Also

Array

AudioTools

Matrix

Vector

 


Download Help Document