AudioPartition
✖
AudioPartition
partitions an audio object into non-overlapping segments of duration dur.
Details and Options
- AudioPartition returns a list of Audio objects.
- AudioPartition[audio,dur,…] generates as many audio partitions of duration t as possible, padding incomplete segments at the end.
- The specifications dur and offset can be any of the following:
-
dur time given in seconds Quantity[dur,"unit"] time given in "unit" compatible with seconds Quantity[dur,"Samples"] time given as number of samples - AudioPartition[audio,{dur}, …] can create up to duration dur segments.
- AudioPartition accepts a Padding option. See the reference page for AudioPad for possible settings.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Partition audio into non-overlapping, 1-second blocks:
https://wolfram.com/xid/0d6g1v11le-783ky0
https://wolfram.com/xid/0d6g1v11le-wk5jok
Partition audio into overlapping blocks:
https://wolfram.com/xid/0d6g1v11le-c2qf1e
https://wolfram.com/xid/0d6g1v11le-5ph0ka
https://wolfram.com/xid/0d6g1v11le-eflnbv
https://wolfram.com/xid/0d6g1v11le-b09izq
Scope (2)Survey of the scope of standard use cases
Options (4)Common values & functionality for each option
Padding (4)
By default, incomplete partitions are padded with zeros to have a length equal to other partitions:
https://wolfram.com/xid/0d6g1v11le-24jio4
Partition into equal-duration segments, dropping some samples at the end:
https://wolfram.com/xid/0d6g1v11le-vek6fo
Partition into unequal-duration blocks; no samples are dropped:
https://wolfram.com/xid/0d6g1v11le-b4r9fl
https://wolfram.com/xid/0d6g1v11le-j4pbuo
https://wolfram.com/xid/0d6g1v11le-iudjjr
Wolfram Research (2016), AudioPartition, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioPartition.html.
Text
Wolfram Research (2016), AudioPartition, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioPartition.html.
Wolfram Research (2016), AudioPartition, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioPartition.html.
CMS
Wolfram Language. 2016. "AudioPartition." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AudioPartition.html.
Wolfram Language. 2016. "AudioPartition." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AudioPartition.html.
APA
Wolfram Language. (2016). AudioPartition. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioPartition.html
Wolfram Language. (2016). AudioPartition. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioPartition.html
BibTeX
@misc{reference.wolfram_2024_audiopartition, author="Wolfram Research", title="{AudioPartition}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/AudioPartition.html}", note=[Accessed: 08-January-2025
]}
BibLaTeX
@online{reference.wolfram_2024_audiopartition, organization={Wolfram Research}, title={AudioPartition}, year={2016}, url={https://reference.wolfram.com/language/ref/AudioPartition.html}, note=[Accessed: 08-January-2025
]}