1 /* 2 ugtabs.h: new implementation of table readers and writers 3 4 Copyright (C) 2013 V Lazzarini 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 25 typedef struct _tabl { 26 OPDS h; 27 MYFLT *sig, *ndx, *ftable, *mode, *offset, *wrap; 28 MYFLT mul; 29 int32 np2; 30 int32 len; 31 int iwrap; 32 FUNC *ftp; 33 } TABL; 34 35 typedef struct _tlen { 36 OPDS h; 37 MYFLT *ans, *ftable; 38 } TLEN; 39 40 typedef struct _tgp { 41 OPDS h; 42 MYFLT *ftable, *ftsrc; 43 } TGP; 44 45 typedef struct _tablmix { 46 OPDS h; 47 MYFLT *tab, *off, *len, *tab1, *off1, *g1, *tab2, *off2, *g2; 48 } TABLMIX; 49 50 typedef struct _tablra { 51 OPDS h; 52 MYFLT *sig,*ftable,*strt,*off; 53 } TABLRA; 54 55 typedef struct _tablwa { 56 OPDS h; 57 MYFLT *strt,*ftable,*sig,*off,*skipinit; 58 MYFLT pos; 59 } TABLWA; 60