1 /*
2     ugens4.h:
3 
4     Copyright (C) 1991 Barry Vercoe, John ffitch
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 /*                                                      UGENS4.H        */
25 
26 typedef struct {
27         OPDS    h;
28         MYFLT   *ar, *xamp, *xcps, *knh, *ifn, *iphs;
29         int16   ampcod, cpscod;
30         int32    lphs;
31         FUNC    *ftp;
32         int     reported;
33 } BUZZ;
34 
35 typedef struct {
36         OPDS    h;
37         MYFLT   *ar, *xamp, *xcps, *kn, *kk, *kr, *ifn, *iphs;
38         int16   ampcod, cpscod, prvn;
39         MYFLT   prvr, twor, rsqp1, rtn, rtnp1, rsumr;
40         int32    lphs;
41         FUNC    *ftp;
42         int     reported;
43         MYFLT   last;
44 } GBUZZ;
45 
46 typedef struct {
47         OPDS    h;
48         MYFLT   *ar, *kamp, *kcps, *icps, *ifn, *imeth, *ipar1, *ipar2;
49         MYFLT   sicps, param1, param2;
50         int16   thresh1, thresh2, method;
51         int32    phs256, npts, maxpts;
52         AUXCH   auxch;
53 } PLUCK;
54 
55 typedef struct {
56         OPDS    h;
57         MYFLT   *ar, *xamp, *iseed, *sel, *base;
58         int     rand;
59         int16   ampcod;
60         int16   new;
61 } RAND;
62 
63 typedef struct {
64         OPDS    h;
65         MYFLT   *ar, *xamp, *xcps, *iseed, *sel, *base;
66         int16   ampcod, cpscod, new;
67         int     rand;
68         long    phs;
69         MYFLT   num1;
70 } RANDH;
71 
72 typedef struct {
73         OPDS    h;
74         MYFLT   *ar, *xamp, *xcps, *iseed, *sel, *base;
75         int16   ampcod, cpscod, new;
76         int     rand;
77         long    phs;
78         MYFLT   num1, num2, dfdmax;
79 } RANDI;
80 
81 typedef struct {
82         OPDS    h;
83         MYFLT   *ar, *xamp, *xcps, *iseed, *sel, *base;
84         int16   ampcod, cpscod, new;
85         int     rand;
86         int64_t phs;
87         MYFLT   period, num1, num2;
88         MYFLT   num3, num4;
89 } RANDC;
90