Revision 6:55d7698f79f8 doc/mainpage.dox
| doc/mainpage.dox | ||
|---|---|---|
| 22 | 22 |
<h2>Download</h2> |
| 23 | 23 |
|
| 24 | 24 |
<ul> |
| 25 |
<li><a href="https://sourceforge.net/project/showfiles.php?group_id=210998">Download the sourcecode bundle</a></li>
|
|
| 25 |
<li><a href="https://sourceforge.net/projects/onsetsds/files/onsetsds/OnsetsDS-source/">Download the sourcecode bundle</a></li>
|
|
| 26 | 26 |
<li>Or access the current development version using subversion [<small><a href="http://sourceforge.net/svn/?group_id=54622" title="What is subversion, and how to use it">info</a></small>]: <br /> |
| 27 | 27 |
<tt>svn co %https://onsetsds.svn.sourceforge.net/svnroot/onsetsds onsetsds</tt></li> |
| 28 | 28 |
</ul> |
| ... | ... | |
| 43 | 43 |
OnsetsDS ods; |
| 44 | 44 |
|
| 45 | 45 |
|
| 46 |
///////// (1) INITIALISATION: /////////
|
|
| 46 |
//-/////// (1) INITIALISATION: ///////-//
|
|
| 47 | 47 |
|
| 48 | 48 |
// There are various types of onset detector available, we must choose one |
| 49 | 49 |
odftype = ODS_ODF_RCOMPLEX; |
| ... | ... | |
| 55 | 55 |
onsetsds_init(&ods, odsdata, ODS_FFT_FFTW3_HC, odftype, 512, 11, 44100.f); |
| 56 | 56 |
|
| 57 | 57 |
|
| 58 |
///////// (2) EXECUTION: /////////
|
|
| 58 |
//-/////// (2) EXECUTION: ///////-//
|
|
| 59 | 59 |
|
| 60 | 60 |
bool onset; |
| 61 | 61 |
while(running){
|
| ... | ... | |
| 66 | 66 |
} |
| 67 | 67 |
|
| 68 | 68 |
|
| 69 |
///////// (3) TIDYING UP: /////////
|
|
| 69 |
//-/////// (3) TIDYING UP: ///////-//
|
|
| 70 | 70 |
|
| 71 | 71 |
free(ods->data); // Or free(odsdata), they point to the same thing in this case |
| 72 | 72 |
|
Also available in: Unified diff