To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

The primary repository for this project is hosted at svn://svn.code.sf.net/p/onsetsds/code/ .
This repository is a read-only copy which is updated automatically every hour.

Statistics Download as Zip
| Branch: | Revision:

root / README

History | View | Annotate | Download (908 Bytes)

1 0:a7c2bda0dfd9 danstowell
2
 ----------------------------------------------------------
3
 OnsetsDS
4
5
 Musical onset detection library
6
 (c) 2007 Dan Stowell
7
 Made available under the GPL v2 - see COPYING for details.
8
 ----------------------------------------------------------
9
10
11
12
USAGE
13
14
If your system can provide frequency-domain data (e.g. by performing FFT on the
15
input audio), then to perform onset detection you only need onsetsds.h and
16
onsetsds.c. These need no additional libraries beyond the standard C libraries.
17
18
If you aren't already doing the FFT then you can also use onsetsdshelpers.c
19
and onsetsdshelpers.h, which can process raw audio, from a buffer or from a
20
file. These require two additional libraries:
21
22
 * libsndfile - I used version 1.0.17
23
   http://www.meganerd.com/libsndfile
24
25
 * FFTW 3 (floating-point version) - I used version 3.1.2
26
   http://www.fftw.org
27
28
See the HTML documentation for a worked example.