class library: SynthDef - replaceUGen fixes
[supercollider.git] / server / plugins / Onsets.h
blob702a77ef8d33f3891d14baa1dbb606612b487918
1 /*
2 Onset detector for SuperCollider
3 Copyright (c) 2007 Dan Stowell. All rights reserved.
4 http://onsetsds.sourceforge.net
6 Now part of:
8 SuperCollider real time audio synthesis system
9 Copyright (c) 2002 James McCartney. All rights reserved.
10 http://www.audiosynth.com
12 This program is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
27 #include "onsetsds.h"
29 struct Onsets : Unit
31 float outval;
32 float *m_odsdata;
33 OnsetsDS *m_ods;
35 bool m_needsinit;
38 extern "C"
40 void load(InterfaceTable *inTable);
42 void Onsets_Ctor(Onsets *unit);
43 void Onsets_next(Onsets *unit, int inNumSamples);
44 void Onsets_next_rawodf(Onsets *unit, int inNumSamples);
45 void Onsets_Dtor(Onsets *unit);