Overview of the AudioTools Package
|
Calling Sequence
|
|
AudioTools[command](arguments)
command(arguments)
AudioTools[variable]
variable
|
|
Description
|
|
•
|
The AudioTools package is a collection of utilities for reading and writing common audio file formats, and for performing basic audio processing operations within Maple.
|
•
|
Within Maple, 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).
|
•
|
In addition to the commands in this package, many ordinary Array and Matrix operations are useful for audio processing. For example, combining one recording with another is done with the expression aud1*0.5 + aud2*0.5.
|
|
|
Accessing AudioTools Package Commands and Variables
|
|
•
|
Each command and variable in the AudioTools package can be accessed by using either the long form or the short form of the name in the calling sequence.
|
|
As the underlying implementation of the AudioTools package is a module, it is also possible to use the form AudioTools:-command or AudioTools:-variable to access a command or variable from the package. For more information, see Module Members.
|
|
|
List of AudioTools Package Commands
|
|
|
The following is a list of available commands.
|
Create
|
creates an empty recording of the
|
|
specified length
|
Read
|
reads audio data from a file into an
|
|
Array, Matrix, or Vector
|
Write
|
writes audio data from an Array, Matrix,
|
|
or Vector into a file
|
Preview
|
produces an audiogram from an audio
|
|
Array, Matrix, or Vector
|
Duration
|
computes the duration of a recording
|
|
in seconds
|
Extract
|
extracts a section of a recording
|
|
between a specified start and end time
|
Convolution
|
applies a one-dimensional convolution
|
|
mask/kernel to a recording
|
Scale
|
lengthens or shortens a recording (which
|
|
will also affect the pitch)
|
Resample
|
resamples a recording without affecting
|
|
the pitch
|
Modulate
|
modulates one recording with another
|
Clip
|
clips peaks at the specified low
|
|
and/or high levels (-1 and 1 if none
|
|
specified)
|
Normalize
|
normalizes the amplitude of a recording
|
ToMono
|
converts a multi-channel recording
|
|
to mono
|
ToStereo
|
converts a mono recording to stereo
|
|
(or more channels)
|
FormatFromName
|
try to determine the audio format based on
|
|
a filename
|
|
|
|
|
List of AudioTools Package Variables
|
|
|
The following is a list of available variables.
|
Formats
|
names of the supported audio file formats
|
|
|
|
|
Download Help Document
Was this information helpful?