Debian Codegraph @

src/core/ugen_osc.h

raw symbols SCIP
1 /*----------------------------------------------------------------------------
2 ChucK Strongly-timed Audio Programming Language
3 Compiler, Virtual Machine, and Synthesis Engine
4
5 Copyright (c) 2003 Ge Wang and Perry R. Cook. All rights reserved.
6 http://chuck.stanford.edu/
7 http://chuck.cs.princeton.edu/
8
9 This program is free software; you can redistribute it and/or modify
10 it under the dual-license terms of EITHER the MIT License OR the GNU
11 General Public License (the latter as published by the Free Software
12 Foundation; either version 2 of the License or, at your option, any
13 later version).
14
15 This program is distributed in the hope that it will be useful and/or
16 interesting, but WITHOUT ANY WARRANTY; without even the implied warranty
17 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 MIT Licence and/or the GNU General Public License for details.
19
20 You should have received a copy of the MIT License and the GNU General
21 Public License (GPL) along with this program; a copy of the GPL can also
22 be obtained by writing to the Free Software Foundation, Inc., 59 Temple
23 Place, Suite 330, Boston, MA 02111-1307 U.S.A.
24 -----------------------------------------------------------------------------*/
25
26 //-----------------------------------------------------------------------------
27 // file: ugen_osc.h
28 // desc: oscilliator unit generators
29 //
30 // author: Ge Wang ([email protected] | [email protected])
31 // Philip L. Davidson ([email protected])
32 // Perry R. Cook ([email protected])
33 // Dan Trueman ([email protected])
34 // date: Summer 2004
35 //-----------------------------------------------------------------------------
36 #ifndef __UGEN_OSC_H__
37 #define __UGEN_OSC_H__
38
39 #include "chuck_dl.h"
40
41
42 // query
43 DLL_QUERY osc_query( Chuck_DL_Query * query );
44
45 // osc - base
46 CK_DLL_CTOR( osc_ctor );
47 CK_DLL_DTOR( osc_dtor );
48 CK_DLL_TICK( osc_tick );
49 CK_DLL_PMSG( osc_pmsg );
50 CK_DLL_CTRL( osc_ctrl_freq );
51 CK_DLL_CGET( osc_cget_freq );
52 CK_DLL_CTRL( osc_ctrl_period );
53 CK_DLL_CGET( osc_cget_period );
54 CK_DLL_CTRL( osc_ctrl_phase );
55 CK_DLL_CGET( osc_cget_phase );
56 CK_DLL_CTRL( osc_ctrl_width );
57 CK_DLL_CGET( osc_cget_width );
58 CK_DLL_CTRL( osc_ctrl_sync );
59 CK_DLL_CGET( osc_cget_sync );
60
61 // generic overloaded ctor( float freq )
62 CK_DLL_CTOR( oscx_ctor_1 );
63 // generic overloaded ctor( float freq, float phase )
64 CK_DLL_CTOR( oscx_ctor_2 );
65
66 // sinosc
67 CK_DLL_TICK( sinosc_tick );
68
69 // pulseosc
70 CK_DLL_TICK( pulseosc_tick );
71
72 // triosc
73 CK_DLL_TICK( triosc_tick );
74
75 // sawosc
76 CK_DLL_CTOR( sawosc_ctor );
77 CK_DLL_CTRL( sawosc_ctrl_width );
78
79 // sqrosc
80 CK_DLL_CTOR( sqrosc_ctor );
81 CK_DLL_CTRL( sqrosc_ctrl_width );
82
83
84 //-----------------------------------------------------------------------------
85 // file: ugen_genX
86 // desc: thought it would be a good way to learn the fascinating innards of
87 // ChucK by porting some of the classic lookup table functions and adding
88 // a few new ones that might be of use.
89 // mostly ported from RTcmix (all by WarpTable)
90 //
91 // author: Dan Trueman (dtrueman.princeton.edu)
92 // date: Winter 2007
93 //-----------------------------------------------------------------------------
94 // called by xxx_query
95 DLL_QUERY genX_query( Chuck_DL_Query * query );
96
97 // genX - base
98 CK_DLL_CTOR( genX_ctor );
99 CK_DLL_DTOR( genX_dtor );
100 CK_DLL_TICK( genX_tick );
101 CK_DLL_PMSG( genX_pmsg );
102 CK_DLL_CTRL( genX_lookup );
103 CK_DLL_CTRL( genX_coeffs );
104 CK_DLL_CTRL( gen5_coeffs );
105 CK_DLL_CTRL( gen7_coeffs );
106 CK_DLL_CTRL( gen9_coeffs );
107 CK_DLL_CTRL( gen10_coeffs );
108 CK_DLL_CTRL( gen17_coeffs );
109 CK_DLL_CTRL( curve_coeffs );
110 CK_DLL_CTRL( warp_coeffs );
111
112 t_CKDOUBLE _asymwarp( t_CKDOUBLE inval, t_CKDOUBLE k );
113 t_CKDOUBLE _symwarp( t_CKDOUBLE inval, t_CKDOUBLE k );
114
115
116
117
118 #endif