1 /*
2     pvadd.h:
3 
4     Copyright (C) 1998 Richard Karpen
5 
6     This file is part of Csound.
7 
8     The Csound Library is free software; you can redistribute it
9     and/or modify it under the terms of the GNU Lesser General Public
10     License as published by the Free Software Foundation; either
11     version 2.1 of the License, or (at your option) any later version.
12 
13     Csound is distributed in the hope that it will be useful,
14     but WITHOUT ANY WARRANTY; without even the implied warranty of
15     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16     GNU Lesser General Public License for more details.
17 
18     You should have received a copy of the GNU Lesser General Public
19     License along with Csound; if not, write to the Free Software
20     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21     02110-1301 USA
22 */
23 
24 /*                                                      PVADD.H    */
25 
26 #define     MAXBINS         4096
27 #ifndef PVFRAMSIZE
28 #define     PVFRAMSIZE      8192                /* i.e. max FFT point size */
29 #endif
30 #define     PVFFTSIZE       (2*PVFRAMSIZE)      /* 2x for real + imag */
31 #define     pvfrsiz(p)      (p->frSiz)
32 
33 typedef struct {
34     OPDS    h;
35     MYFLT   *rslt, *ktimpnt, *kfmod, *ifilno, *ifn, *ibins;
36     MYFLT   *ibinoffset, *ibinincr, *imode, *ifreqlim, *igatefun;
37     FUNC    *ftp, *AmpGateFunc;
38     AUXCH   auxch;
39     MYFLT   *oscphase, *buf, PvMaxAmp;
40     MYFLT   frPrtim, asr;
41     float   *frPtr, *pvcopy;
42     int32   maxFr, frSiz, prFlg, mems;
43     int32_t
44     maxbin;
45 } PVADD;
46 
47