AudioTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Audio Processing : AudioTools/Duration

AudioTools

  

Duration

  

computes 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

aud:= 1..19962 x 1..2 ArrayData Type: float8Storage: rectangularOrder: C_order

(1)

Durationaud

11091225

(2)

evalf

0.9053061224

(3)

See Also

Array

AudioTools

Matrix

Vector

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam