type/ AudioTools:-Audio - Maple Programming Help

Home : Support : Online Help : Programming : Audio Processing : type/AudioTools/Audio

type/ AudioTools:-Audio

check for an audio data structure

 Calling Sequence type( x, AudioTools:-Audio )

Parameters

 x - anything; expression to test.

Description

 • The type(x, AudioTools:-Audio) function call returns true if x is of type AudioTools:-Audio.
 • Within the AudioTools package, audio data is represented as dense rectangular Arrays of 64-bit hardware floating-point numbers. Monophonic audio data is one-dimensional, whereas stereo (or more channel) audio data is two-dimensional (the second dimension representing the individual channels).
 • Audio data also has three attributes describing the data:
 – The first is the sample rate, in samples per second.
 – The second is the number of bits per sample that were recorded in the file.
 – The third is the sub-format of the file, if applicable (or zero otherwise - some file formats, like .WAV, have a number of sub-formats, like PCM, ADPCM, or IEEE_FLOAT, represented as an integer from 1 to 3).

Examples

 > $\mathrm{with}\left(\mathrm{AudioTools}\right):$
 > $\mathrm{audiofile}≔\mathrm{Read}\left(\mathrm{cat}\left(\mathrm{kernelopts}\left(\mathrm{datadir}\right),"/audio/stereo.wav"\right)\right):$
 > $\mathrm{type}\left(\mathrm{audiofile},\mathrm{AudioTools}:-\mathrm{Audio}\right)$
 ${\mathrm{true}}$ (1)

Compatibility

 • The type/ AudioTools:-Audio command was updated in Maple 2017.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 4, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.6728718280792236, "perplexity": 4663.740445464151}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-45/segments/1603107909746.93/warc/CC-MAIN-20201030063319-20201030093319-00430.warc.gz"}