AudioTools - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Overview of the AudioTools Package

 

Calling Sequence

Description

Accessing AudioTools Package Commands and Variables

List of AudioTools Package Commands

List of AudioTools Package Variables

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.

• 

The long form, AudioTools:-command, is always available. The short form can be used after loading the package.

List of AudioTools Package Commands

  

The following is a list of available commands:

Clip

clips peaks at the specified low and/or high levels (-1 and 1 if none specified)

Convolution

applies a one-dimensional convolution mask/kernel to a recording

Create

creates an empty recording of the specified length

Duration

computes the duration of a recording in seconds

Extract

extracts a piece of an audio recording

FormatFromName

returns the audio file format from a filename

Modulate

modulates one audio recording using another

Normalize

normalizes audio sample values to a specified maximum amplitude

Play

plays audio data to a speaker

Preview

previews audio data in the worksheet in the form of an audiogram

Read

reads audio data from a file into a rtable

Record

records audio data from a microphone

Resample

resamples audio data to the specified sample rate

Scale

scales audio data by the specified ratio or to the specified size

ToMono

converts a multi-channel audio recording to monophonic

ToStereo

converts an audio record to stereophonic (or more channels)

Write

writes audio data from a rtable into a file

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

type/Audio

UsingPackages

with