/usr/share/doc/libaubio-doc/html/index.html is in libaubio-doc 0.4.1-2build4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>aubio: Main Page</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script src="file:///usr/share/javascript/mathjax/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">aubio
 <span id="projectnumber">0.4.1~alpha</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li class="current"><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">aubio Documentation</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><h1><a class="anchor" id="introduction"></a>
Introduction</h1>
<p>aubio is a library to extract annotations from audio signals: it provides a set of functions that take an input audio signal, and output pitch estimates, attack times (onset), beat location estimates, and other annotation tasks.</p>
<h1><a class="anchor" id="basics"></a>
Basics</h1>
<p>All object structures in aubio share the same function prefixes and suffixes:</p>
<ul>
<li><code>new_aubio_foo</code> creates the object <code>foo</code> </li>
<li><code>aubio_foo_do</code> executes the object <code>foo</code> </li>
<li><code>del_aubio_foo</code> destroys the object <code>foo</code> </li>
</ul>
<p>All memory allocation and deallocation take place in the <code>new_</code> and <code>del_</code> functions. Optionally, more than one <code>_do</code> methods are available. Additional parameters can be adjusted and observed using:</p>
<ul>
<li><code>aubio_foo_get_param</code>, getter function, gets the value of a parameter</li>
<li><code>aubio_foo_set_param</code>, setter function, changes the value of a parameter</li>
</ul>
<p>Unless specified in its documentation, no memory operations take place in the getter functions. However, memory resizing can take place in setter functions.</p>
<h2><a class="anchor" id="vectors"></a>
Vectors</h2>
<p>Two basic structures are being used in aubio: <a class="el" href="structfvec__t.html" title="Buffer for real data. ">fvec_t</a> and <a class="el" href="structcvec__t.html" title="Vector of real-valued phase and spectrum data. ">cvec_t</a>. The <a class="el" href="structfvec__t.html" title="Buffer for real data. ">fvec_t</a> structures are used to store vectors of floating pointer number. <a class="el" href="structcvec__t.html" title="Vector of real-valued phase and spectrum data. ">cvec_t</a> are used to store complex number, as two vectors of norm and phase elements.</p>
<p>Additionally, the <a class="el" href="structlvec__t.html" title="Buffer for real data in double precision. ">lvec_t</a> structure can be used to store floating point numbers in double precision. They are mostly used to store filter coefficients, to avoid instability.</p>
<h2><a class="anchor" id="objects"></a>
Available objects</h2>
<p>Here is a list of some of the most common objects for aubio:</p>
<div class="fragment"><div class="line"><span class="comment">// fast Fourier transform (FFT)</span></div>
<div class="line"><a class="code" href="fft_8h.html#ad506b94ab0c39da949d97064e394d2c9">aubio_fft_t</a> *fft = <a class="code" href="fft_8h.html#a4673d96bb99fa2e758352cc177516465">new_aubio_fft</a> (winsize);</div>
<div class="line"><span class="comment">// phase vocoder</span></div>
<div class="line"><a class="code" href="phasevoc_8h.html#a0ab307b4e3ade23af88ccebbe81900e5">aubio_pvoc_t</a> *pv = <a class="code" href="phasevoc_8h.html#aff037315bd1ae2caca67ee95e735c31b">new_aubio_pvoc</a> (winsize, stepsize);</div>
<div class="line"><span class="comment">// onset detection</span></div>
<div class="line"><a class="code" href="onset_8h.html#aab9be831df71952f95d3685f86fce281">aubio_onset_t</a> *onset = <a class="code" href="onset_8h.html#a00512092dd9dde0cdf0cf73b9109c149">new_aubio_onset</a> (method, winsize, stepsize, samplerate);</div>
<div class="line"><span class="comment">// pitch detection</span></div>
<div class="line"><a class="code" href="pitch_8h.html#af76b14582e2b766e6b325038fe6426a0">aubio_pitch_t</a> *pitch = <a class="code" href="pitch_8h.html#a962561ea270e0308ed26ac9bab554550">new_aubio_pitch</a> (method, winsize, stepsize, samplerate);</div>
<div class="line"><span class="comment">// beat tracking</span></div>
<div class="line"><a class="code" href="tempo_8h.html#a4d9ae24f5a1ffe740169611a298e991b">aubio_tempo_t</a> *tempo = <a class="code" href="tempo_8h.html#aaa49f5d6554904a452d031775f385521">new_aubio_tempo</a> (method, winsize, stepsize, samplerate);</div>
</div><!-- fragment --><p>See the <a href="globals_type.html">list of typedefs</a> for a complete list.</p>
<h2><a class="anchor" id="example"></a>
Example</h2>
<p>Here is a simple example that creates an A-Weighting filter and applies it to a vector.</p>
<div class="fragment"><div class="line"><span class="comment">// set window size, and sampling rate</span></div>
<div class="line"><a class="code" href="types_8h.html#a12a1e9b3ce141648783a82445d02b58d">uint_t</a> winsize = 1024, sr = 44100;</div>
<div class="line"><span class="comment">// create a vector</span></div>
<div class="line"><a class="code" href="structfvec__t.html">fvec_t</a> *this_buffer = <a class="code" href="fvec_8h.html#aa9bc0906651523429a4ebf7b4342fe73">new_fvec</a> (winsize);</div>
<div class="line"><span class="comment">// create the a-weighting filter</span></div>
<div class="line"><a class="code" href="filter_8h.html#a49b09d27ea1ef7b06d9948048143f67a">aubio_filter_t</a> *this_filter = <a class="code" href="a__weighting_8h.html#a99c12d2c155e374aa55f4c9bea923ef5">new_aubio_filter_a_weighting</a> (sr);</div>
<div class="line"></div>
<div class="line"><span class="keywordflow">while</span> (running) {</div>
<div class="line"> <span class="comment">// here some code to put some data in this_buffer</span></div>
<div class="line"> <span class="comment">// ...</span></div>
<div class="line"></div>
<div class="line"> <span class="comment">// apply the filter, in place</span></div>
<div class="line"> <a class="code" href="filter_8h.html#aca218f7701ad142eb6c0ce95b2d1c49b">aubio_filter_do</a> (this_filter, this_buffer);</div>
<div class="line"></div>
<div class="line"> <span class="comment">// here some code to get some data from this_buffer</span></div>
<div class="line"> <span class="comment">// ...</span></div>
<div class="line">}</div>
<div class="line"></div>
<div class="line"><span class="comment">// and free the structures</span></div>
<div class="line"><a class="code" href="filter_8h.html#a55e4be86dd74d9eddfe544bddc94e482">del_aubio_filter</a> (this_filter);</div>
<div class="line"><a class="code" href="fvec_8h.html#a86fad6d27aad91c910d1b48195922cb9">del_fvec</a> (this_buffer);</div>
</div><!-- fragment --><p>Several examples of C programs are available in the <code>examples/</code> and <code>tests/src</code> directories of the source tree.</p>
<h2><a class="anchor" id="unstable_api"></a>
Unstable API</h2>
<p>Several more functions are available and used within aubio, but not documented here, either because they are not considered useful to the user, or because they may need to be changed in the future. However, they can still be used by defining AUBIO_UNSTABLE to 1 before including the aubio header:</p>
<div class="fragment"><div class="line"><span class="preprocessor">#define AUBIO_UNSTABLE 1</span></div>
<div class="line"><span class="preprocessor">#include <aubio/aubio.h></span></div>
</div><!-- fragment --><p>Future versions of aubio could break API compatibility with these functions without warning. If you choose to use functions in AUBIO_UNSTABLE, you are on your own.</p>
<h1><a class="anchor" id="download"></a>
Download</h1>
<p>Latest versions, further documentation, examples, wiki, and mailing lists can be found at <a href="http://aubio.org">http://aubio.org</a> . </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Aug 11 2015 06:35:50 for aubio by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
|