WLJS LogoWLJS Notebook

AudioBlockMap

AudioBlockMap[f, audio, dur] applies f to non-overlapping partitions of length dur in audio.

AudioBlockMap[f, audio, {dur, offset}] applies f to partitions with offset offset in audio.

AudioBlockMap[f, audio, {dur, offset, wfun}] applies f after applying wfun to partitions in audio.

Examples

Apply function to audio blocks:

AudioBlockMap[Mean, audio, Quantity[0.1, "Seconds"]]

Please visit the official Wolfram Language Reference for more details.

On this page