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
AudioTools[Modulate] - modulates one audio recording using another
Calling Sequence
Modulate(audArray, maskArray)
Parameters
audArray
-
Array, Vector, or Matrix containing the audio to be modulated
maskArray
Array, Vector, or Matrix specifying the modulation mask
Description
The Modulate command uses one audio recording to modulate another.
The audArray parameter specifies the audio to be modulated, and must be a dense, rectangular, one or two dimensional Array, Vector, or Matrix with datatype=float[8].
The maskArray parameter specifies the modulation mask, and must be a dense rectangular Array, Vector, or Matrix with datatype=float[8], and the same dimensions as audArray.
The Modulate operation consists of multiplying each sample in the audArray by the corresponding sample in the maskArray, and writing the result to the output. Notice that this operation is commutative; the data and mask can be interchanged and will still give the same result.
Samples with a value of 1.0 in the maskArray will cause the corresponding audArray sample to be copied verbatim into the output. Samples of value 0.0 in the mask will result in 0.0 in the output, regardless of the value of the corresponding audio sample. Samples of value -1.0 in the mask will invert the value of the corresponding audio sample.
For example, consider a mask M that gradually transitions from 1.0 on the left to 0.0 on the right. Using the Modulate command with this mask and audio data A produces audio data that starts out sounding like A and fades to silence. Modulating audio B with the inverse of M, namely , will produce audio data that starts out silent and intensifies to full volume.
Combining these two audio objects by simple addition, , yields audio data that fades from A to B.
Examples
See Also
Array, AudioTools, AudioTools[Convolution], AudioTools[Scale], Matrix, Vector
Download Help Document