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

Online Help

All Products    Maple    MapleSim


AudioTools

  

Record

  

record audio data from a microphone to an audio data object

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

Record(duration, component, opts)

Parameters

duration

-

duration of time to record

component

-

(optional) string; name of the Microphone component to use.

opts

-

options, described below

Options

• 

 rate =

  

The sample rate with which to record. When set to auto, the sample rate associated with the Microphone component is used. If no units are specified, values are presumed to be in hertz (Hz).

Description

• 

The Record command records audio data of a specified duration from a Microphone component and returns an Audio object containing the recorded data.

• 

If the component parameter is not specified, the default component name Microphone0 will be used.

Examples

In order to record, open the Components Palette and insert a microphone component.

withAudioTools:

Record from the microphone for 1.5 seconds.

audio1Record1.5,Microphone0

Record from the microphone for 2500 milliseconds (2.5 s) at CD quality (44.1 kHz).

audio2Record2500Unitms,Microphone0,rate=44.1UnitkHz

Compatibility

• 

The AudioTools[Record] command was introduced in Maple 2015.

• 

For more information on Maple 2015 changes, see Updates in Maple 2015.

See Also

AudioTools

MicrophoneComponent