1 /*
2     fgens.h:
3 
4     Copyright (C) 1991 Barry Vercoe
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                                                 /*      FGENS.H         */
24 #ifndef CSOUND_FGENS_H
25 #define CSOUND_FGENS_H
26 
27 #define MAXFNUM 100
28 #define GENMAX  60
29 
30 /**
31  * Create ftable using evtblk data, and store pointer to new table in *ftpp.
32  * If mode is zero, a zero table number is ignored, otherwise a new table
33  * number is automatically assigned.
34  * Returns zero on success.
35  */
36 int hfgens(CSOUND *csound, FUNC **ftpp, const EVTBLK *evtblkp, int mode);
37 
38 /**
39  * Allocates space for 'tableNum' with a length (not including the guard
40  * point) of 'len' samples. The table data is not cleared to zero.
41  * Return value is zero on success.
42  */
43 int csoundFTAlloc(CSOUND *csound, int tableNum, int len);
44 
45 /**
46  * Deletes a function table.
47  * Return value is zero on success.
48  */
49 int csoundFTDelete(CSOUND *csound, int tableNum);
50 
51 #endif  /* CSOUND_FGENS_H */
52 
53