ugens7.h

Go to the documentation of this file.
00001 /*
00002     ugens7.h:
00003 
00004     Copyright (C) 1995 Michael Clarke, based on ideas from CHANT (IRCAM)
00005                   1996 Barry Vercoe
00006 
00007     This file is part of Csound.
00008 
00009     The Csound Library is free software; you can redistribute it
00010     and/or modify it under the terms of the GNU Lesser General Public
00011     License as published by the Free Software Foundation; either
00012     version 2.1 of the License, or (at your option) any later version.
00013 
00014     Csound is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017     GNU Lesser General Public License for more details.
00018 
00019     You should have received a copy of the GNU Lesser General Public
00020     License along with Csound; if not, write to the Free Software
00021     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00022     02111-1307 USA
00023 */
00024 
00025 /*                                                      UGENS7.H        */
00026 
00027 #define PFRAC1(x)   ((MYFLT)((x) & ftp1->lomask) * ftp1->lodiv)
00028 
00029 typedef struct ovrlap {
00030         struct ovrlap  *nxtact, *nxtfree;
00031         long    timrem, dectim, formphs, forminc, risphs, risinc, decphs, decinc;
00032         MYFLT   curamp, expamp;
00033         MYFLT   glissbas;/* Gliss factor to add to forminc (ifna index incr) */
00034         long    sampct;         /* Sample count since grain started */
00035 } OVRLAP;
00036 
00037 typedef struct {
00038         OPDS    h;
00039         MYFLT   *ar, *xamp, *xfund, *xform, *koct, *kband, *kris, *kdur, *kdec;
00040         MYFLT   *iolaps, *ifna, *ifnb, *itotdur, *iphs, *ifmode, *iskip;
00041   /* kgliss and ifmode are same field */
00042         OVRLAP  basovrlap;
00043         long    durtogo, fundphs, fofcount, prvsmps;
00044         MYFLT   prvband, expamp, preamp;
00045         short   foftype;        /* Distinguish fof and fof2 */
00046         short   xincod, ampcod, fundcod, formcod, fmtmod;
00047         AUXCH   auxch;
00048         FUNC    *ftp1, *ftp2;
00049 } FOFS;
00050 
00051 typedef struct {
00052         OPDS    h;
00053         MYFLT   *ar, *asig, *kest, *kvar, *kfrq1, *kfrq2;
00054         MYFLT   *icpsmode, *ilowest, *iptrkprd;
00055         long    nbufsmps, n2bufsmps, phase1, phase2, period, autoktim, autokcnt;
00056         long    mindist, maxdist, max2dist, lomaxdist, cpsmode;
00057         MYFLT   c1, c2, prvq, prvest, prvar, minfrq, estprd, lsicvt;
00058         MYFLT   *bufp, *midp, *inp1, *inp2;
00059         MYFLT   *bufq, *midq, *inq1, *inq2, *autobuf;
00060         MYFLT   *puls1, *puls2, *puls3, lin1, lin2, lin3;
00061         MYFLT   inc1, inc2, inc11, inc12, inc21, inc22, inc31, inc32;
00062         long    cnt1, cnt2, cnt3, pnt1, pnt2, pnt3;
00063         long    pnt11, pnt12, pnt13, pnt21, pnt22, pnt23, pnt31, pnt32, pnt33;
00064         AUXCH   auxch;
00065 } HARMON;

Generated on Sun Nov 9 00:04:52 2008 for Csound and CsoundAC by  doxygen 1.5.6