type/ AudioTools:-Audio
check for an audio data structure
Calling Sequence
Parameters
Description
Examples
Compatibility
type( x, AudioTools:-Audio )
x
-
anything; expression to test
The type(x, AudioTools:-Audio) function call returns true if x is of type AudioTools:-Audio.
Within the AudioTools package, audio data is represented as dense rectangular Arrays of 64-bit hardware floating-point numbers. Monophonic audio data is one-dimensional, whereas stereo (or more channel) audio data is two-dimensional (the second dimension representing the individual channels).
Audio data also has three attributes describing the data:
The first is the sample rate, in samples per second.
The second is the number of bits per sample that were recorded in the file.
The third is the sub-format of the file, if applicable (or zero otherwise - some file formats, like .WAV, have a number of sub-formats, like PCM, ADPCM, or IEEE_FLOAT, represented as an integer from 1 to 3).
with⁡AudioTools:
audiofile≔Read⁡cat⁡kernelopts⁡datadir,/audio/stereo.wav:
type⁡audiofile,AudioTools:-Audio
true
The type/ AudioTools:-Audio command was updated in Maple 2017.
See Also
AudioTools
AudioTools,Formats
AudioTools[Create]
AudioTools[Read]
AudioTools[Write]
type
Download Help Document