AudioInsert

AudioInsert[audio,tnew]

inserts the audio signal new at time t.

AudioInsert[audio,{t1,t2,}new]

inserts the same audio at multiple positions.

AudioInsert[audio,{t1new1,}]

inserts multiple audio signals at different positions.

Details

  • AudioInsert can be used to insert one or multiple audio signals into an existing audio object at various times.
  • The time t can be any of the following:
  • ttime given in seconds
    Quantity[t,"unit"]time given in "unit" compatible with seconds
    Quantity[t,"Samples"]time given as number of samples

Examples

open allclose all

Basic Examples  (1)

Insert a sinusoid at time 0.5s:

Scope  (2)

Insert a sinusoid at different times:

Insert a different signal at different times:

Applications  (1)

Inset a short sinusoid to remark parts of interest in a recording:

View the spectrogram:

Find the intervals with a nonzero amplitude and the fundamental frequency in a specified range:

Insert a sinusoid just before the beginning of the intervals:

Properties & Relations  (2)

The duration of the result is equal to the sum of the durations of the input signal and all new signals:

If the input and the new audio have different characteristics, the new audio is modified:

While the duration is maintained, the number of channels and the sample rate are conformed to the input audio:

Possible Issues  (1)

Inserting signals at duplicate times inserts sequentially the new audio objects:

Wolfram Research (2017), AudioInsert, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioInsert.html.

Text

Wolfram Research (2017), AudioInsert, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioInsert.html.

CMS

Wolfram Language. 2017. "AudioInsert." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AudioInsert.html.

APA

Wolfram Language. (2017). AudioInsert. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioInsert.html

BibTeX

@misc{reference.wolfram_2024_audioinsert, author="Wolfram Research", title="{AudioInsert}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/AudioInsert.html}", note=[Accessed: 30-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_audioinsert, organization={Wolfram Research}, title={AudioInsert}, year={2017}, url={https://reference.wolfram.com/language/ref/AudioInsert.html}, note=[Accessed: 30-December-2024 ]}