Mercurial > hg > btrack
comparison doc/html/index.html @ 36:5bd9ae503dcf master 1.0.0
flow: Merged <release> '1.0.0' to <master> ('master').
author | Adam Stark <adamstark.uk@gmail.com> |
---|---|
date | Tue, 08 Jul 2014 12:32:27 +0100 |
parents | 687b8dd41934 |
children | d6d9df2db3e1 |
comparison
equal
deleted
inserted
replaced
13:0d29e68fa2ee | 36:5bd9ae503dcf |
---|---|
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"> | |
3 <head> | |
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | |
5 <meta http-equiv="X-UA-Compatible" content="IE=9"/> | |
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"/> | |
8 <script type="text/javascript" src="jquery.js"></script> | |
9 <script type="text/javascript" src="dynsections.js"></script> | |
10 <link href="search/search.css" rel="stylesheet" type="text/css"/> | |
11 <script type="text/javascript" src="search/search.js"></script> | |
12 <script type="text/javascript"> | |
13 $(document).ready(function() { searchBox.OnSelectItem(0); }); | |
14 </script> | |
15 <link href="doxygen.css" rel="stylesheet" type="text/css" /> | |
16 </head> | |
17 <body> | |
18 <div id="top"><!-- do not remove this div, it is closed by doxygen! --> | |
19 <div id="titlearea"> | |
20 <table cellspacing="0" cellpadding="0"> | |
21 <tbody> | |
22 <tr style="height: 56px;"> | |
23 <td style="padding-left: 0.5em;"> | |
24 <div id="projectname">BTrack - A Real-Time Beat Tracker | |
25 </div> | |
26 </td> | |
27 </tr> | |
28 </tbody> | |
29 </table> | |
30 </div> | |
31 <!-- end header part --> | |
32 <!-- Generated by Doxygen 1.8.2 --> | |
33 <script type="text/javascript"> | |
34 var searchBox = new SearchBox("searchBox", "search",false,'Search'); | |
35 </script> | |
36 <div id="navrow1" class="tabs"> | |
37 <ul class="tablist"> | |
38 <li class="current"><a href="index.html"><span>Main Page</span></a></li> | |
39 <li><a href="annotated.html"><span>Classes</span></a></li> | |
40 <li><a href="files.html"><span>Files</span></a></li> | |
41 <li> | |
42 <div id="MSearchBox" class="MSearchBoxInactive"> | |
43 <span class="left"> | |
44 <img id="MSearchSelect" src="search/mag_sel.png" | |
45 onmouseover="return searchBox.OnSearchSelectShow()" | |
46 onmouseout="return searchBox.OnSearchSelectHide()" | |
47 alt=""/> | |
48 <input type="text" id="MSearchField" value="Search" accesskey="S" | |
49 onfocus="searchBox.OnSearchFieldFocus(true)" | |
50 onblur="searchBox.OnSearchFieldFocus(false)" | |
51 onkeyup="searchBox.OnSearchFieldChange(event)"/> | |
52 </span><span class="right"> | |
53 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> | |
54 </span> | |
55 </div> | |
56 </li> | |
57 </ul> | |
58 </div> | |
59 </div><!-- top --> | |
60 <!-- window showing the filter options --> | |
61 <div id="MSearchSelectWindow" | |
62 onmouseover="return searchBox.OnSearchSelectShow()" | |
63 onmouseout="return searchBox.OnSearchSelectHide()" | |
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><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Pages</a></div> | |
66 | |
67 <!-- iframe showing the search results (closed by default) --> | |
68 <div id="MSearchResultsWindow"> | |
69 <iframe src="javascript:void(0)" frameborder="0" | |
70 name="MSearchResults" id="MSearchResults"> | |
71 </iframe> | |
72 </div> | |
73 | |
74 <div class="header"> | |
75 <div class="headertitle"> | |
76 <div class="title"><a class="el" href="class_b_track.html">BTrack</a> - A Real-Time Beat Tracker </div> </div> | |
77 </div><!--header--> | |
78 <div class="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 --> | |
121 <!-- start footer part --> | |
122 <hr class="footer"/><address class="footer"><small> | |
123 Generated on Tue Jan 28 2014 01:06:53 for BTrack - A Real-Time Beat Tracker by  <a href="http://www.doxygen.org/index.html"> | |
124 <img class="footer" src="doxygen.png" alt="doxygen"/> | |
125 </a> 1.8.2 | |
126 </small></address> | |
127 </body> | |
128 </html> |