Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
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
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
To display the help page for a particular AudioTools command or variable, see Getting Help with a Command in a Package.
See Also
help, UsingPackages, with
Download Help Document