Mercurial > hg > btrack
comparison doc/html/index.html @ 24:deb49a2590f3 develop
Updated README, commented more code, added a Vamp plug-in
author | Adam <adamstark.uk@gmail.com> |
---|---|
date | Mon, 27 Jan 2014 23:11:31 +0000 |
parents | 92ee4ace9d46 |
children | 7af87d3f2ce2 |
comparison
equal
deleted
inserted
replaced
23:92ee4ace9d46 | 24:deb49a2590f3 |
---|---|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 <html xmlns="http://www.w3.org/1999/xhtml"> | 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
3 <head> | 3 <head> |
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | 4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
5 <meta http-equiv="X-UA-Compatible" content="IE=9"/> | 5 <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
6 <title>BTrack - A Real-Time Beat Tracker: Main Page</title> | 6 <title>BTrack - A Real-Time Beat Tracker: BTrack - A Real-Time Beat Tracker</title> |
7 <link href="tabs.css" rel="stylesheet" type="text/css"/> | 7 <link href="tabs.css" rel="stylesheet" type="text/css"/> |
8 <script type="text/javascript" src="jquery.js"></script> | 8 <script type="text/javascript" src="jquery.js"></script> |
9 <script type="text/javascript" src="dynsections.js"></script> | 9 <script type="text/javascript" src="dynsections.js"></script> |
10 <link href="search/search.css" rel="stylesheet" type="text/css"/> | 10 <link href="search/search.css" rel="stylesheet" type="text/css"/> |
11 <script type="text/javascript" src="search/search.js"></script> | 11 <script type="text/javascript" src="search/search.js"></script> |
60 <!-- window showing the filter options --> | 60 <!-- window showing the filter options --> |
61 <div id="MSearchSelectWindow" | 61 <div id="MSearchSelectWindow" |
62 onmouseover="return searchBox.OnSearchSelectShow()" | 62 onmouseover="return searchBox.OnSearchSelectShow()" |
63 onmouseout="return searchBox.OnSearchSelectHide()" | 63 onmouseout="return searchBox.OnSearchSelectHide()" |
64 onkeydown="return searchBox.OnSearchSelectKey(event)"> | 64 onkeydown="return searchBox.OnSearchSelectKey(event)"> |
65 <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Enumerations</a></div> | 65 <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Pages</a></div> |
66 | 66 |
67 <!-- iframe showing the search results (closed by default) --> | 67 <!-- iframe showing the search results (closed by default) --> |
68 <div id="MSearchResultsWindow"> | 68 <div id="MSearchResultsWindow"> |
69 <iframe src="javascript:void(0)" frameborder="0" | 69 <iframe src="javascript:void(0)" frameborder="0" |
70 name="MSearchResults" id="MSearchResults"> | 70 name="MSearchResults" id="MSearchResults"> |
71 </iframe> | 71 </iframe> |
72 </div> | 72 </div> |
73 | 73 |
74 <div class="header"> | 74 <div class="header"> |
75 <div class="headertitle"> | 75 <div class="headertitle"> |
76 <div class="title">BTrack - A Real-Time Beat Tracker Documentation</div> </div> | 76 <div class="title"><a class="el" href="class_b_track.html">BTrack</a> - A Real-Time Beat Tracker </div> </div> |
77 </div><!--header--> | 77 </div><!--header--> |
78 <div class="contents"> | 78 <div class="contents"> |
79 </div><!-- contents --> | 79 <div class="textblock"><p>A real-time beat tracker, implemented in C++.</p> |
80 <p>Written by Adam Stark, Matthew Davies and Mark Plumbley.</p> | |
81 <h2>License</h2> | |
82 <p><a class="el" href="class_b_track.html">BTrack</a> is made available under the GNU General Public License, version 3. Please see the included LICENSE.txt for more details.</p> | |
83 <h2>Usage - C++</h2> | |
84 <p><b>STEP 1</b></p> | |
85 <p>Include the <a class="el" href="class_b_track.html">BTrack</a> header file as follows: </p> | |
86 <pre class="fragment"> #include "BTrack.h" | |
87 </pre><p><b>STEP 2</b></p> | |
88 <p>Instantiate the algorithm by one of the following: </p> | |
89 <pre class="fragment">// to use the default 512 hop size and 1024 frame size | |
90 BTrack b; | |
91 </pre><p>or: </p> | |
92 <pre class="fragment">// to specify a hop size (e.g. 512) and have a frame size of 2 x the hop size | |
93 BTrack b(512); | |
94 </pre><p>or: </p> | |
95 <pre class="fragment">// to specify both the hop size and frame size | |
96 BTrack b(512,1024); | |
97 </pre><p><b>STEP 3.1 - Audio Input</b></p> | |
98 <p>In the processing loop, fill a double precision array with one frame of audio samples (as determined in step 2): </p> | |
99 <pre class="fragment">double *frame; | |
100 | |
101 // ! | |
102 // do something here to fill the frame with audio samples | |
103 // ! | |
104 </pre><p>and then call: </p> | |
105 <pre class="fragment">b.processAudioFrame(frame); | |
106 </pre><p>and to check for beats, simply call: </p> | |
107 <pre class="fragment">if (b.beatDueInCurrentFrame()) | |
108 { | |
109 // do something on the beat | |
110 } | |
111 </pre><p><b>STEP 3.2 - Onset Detection Function Input</b></p> | |
112 <p>The algorithm can process onset detection function samples. Given a double precision onset detection function sample called 'newSamples', at each step, call: </p> | |
113 <pre class="fragment">b.processOnsetDetectionFunctionSample(newSample); | |
114 </pre><p>and then check for beats with: </p> | |
115 <pre class="fragment">if (b.beatDueInCurrentFrame()) | |
116 { | |
117 // do something on the beat | |
118 } | |
119 </pre><p>For any questions, please email Adam Stark (email at <a href="http://www.adamstark.co.uk">http://www.adamstark.co.uk</a>). </p> | |
120 </div></div><!-- contents --> | |
80 <!-- start footer part --> | 121 <!-- start footer part --> |
81 <hr class="footer"/><address class="footer"><small> | 122 <hr class="footer"/><address class="footer"><small> |
82 Generated on Sat Jan 25 2014 18:11:17 for BTrack - A Real-Time Beat Tracker by  <a href="http://www.doxygen.org/index.html"> | 123 Generated on Mon Jan 27 2014 22:01:21 for BTrack - A Real-Time Beat Tracker by  <a href="http://www.doxygen.org/index.html"> |
83 <img class="footer" src="doxygen.png" alt="doxygen"/> | 124 <img class="footer" src="doxygen.png" alt="doxygen"/> |
84 </a> 1.8.2 | 125 </a> 1.8.2 |
85 </small></address> | 126 </small></address> |
86 </body> | 127 </body> |
87 </html> | 128 </html> |