File: gen_8h-source.html

package info (click to toggle)
fluidsynth 1.0.5-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,844 kB
  • ctags: 3,665
  • sloc: ansic: 22,164; sh: 10,532; xml: 705; makefile: 230
file content (138 lines) | stat: -rw-r--r-- 10,385 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>libfluidsynth: gen.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6-20040222 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
<h1>gen.h</h1><a href="gen_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/* FluidSynth - A Software Synthesizer</span>
00002 <span class="comment"> *</span>
00003 <span class="comment"> * Copyright (C) 2003  Peter Hanappe and others.</span>
00004 <span class="comment"> *</span>
00005 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
00006 <span class="comment"> * modify it under the terms of the GNU Library General Public License</span>
00007 <span class="comment"> * as published by the Free Software Foundation; either version 2 of</span>
00008 <span class="comment"> * the License, or (at your option) any later version.</span>
00009 <span class="comment"> *</span>
00010 <span class="comment"> * This library is distributed in the hope that it will be useful, but</span>
00011 <span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
00013 <span class="comment"> * Library General Public License for more details.</span>
00014 <span class="comment"> *  </span>
00015 <span class="comment"> * You should have received a copy of the GNU Library General Public</span>
00016 <span class="comment"> * License along with this library; if not, write to the Free</span>
00017 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA</span>
00018 <span class="comment"> * 02111-1307, USA</span>
00019 <span class="comment"> */</span>
00020 
00021 <span class="preprocessor">#ifndef _FLUIDSYNTH_GEN_H</span>
00022 <span class="preprocessor"></span><span class="preprocessor">#define _FLUIDSYNTH_GEN_H</span>
00023 <span class="preprocessor"></span>
00024 <span class="preprocessor">#ifdef __cplusplus</span>
00025 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
00026 <span class="preprocessor">#endif</span>
00027 <span class="preprocessor"></span>
00028 
<a name="l00031"></a><a class="code" href="gen_8h.html#a66">00031</a> <span class="keyword">enum</span> <a class="code" href="gen_8h.html#a66">fluid_gen_type</a> {
00032   <a class="code" href="gen_8h.html#a66a1">GEN_STARTADDROFS</a>,
00033   <a class="code" href="gen_8h.html#a66a2">GEN_ENDADDROFS</a>,
00034   <a class="code" href="gen_8h.html#a66a3">GEN_STARTLOOPADDROFS</a>,
00035   <a class="code" href="gen_8h.html#a66a4">GEN_ENDLOOPADDROFS</a>,
00036   <a class="code" href="gen_8h.html#a66a5">GEN_STARTADDRCOARSEOFS</a>,
00037   <a class="code" href="gen_8h.html#a66a6">GEN_MODLFOTOPITCH</a>,
00038   <a class="code" href="gen_8h.html#a66a7">GEN_VIBLFOTOPITCH</a>,
00039   <a class="code" href="gen_8h.html#a66a8">GEN_MODENVTOPITCH</a>,
00040   <a class="code" href="gen_8h.html#a66a9">GEN_FILTERFC</a>,
00041   <a class="code" href="gen_8h.html#a66a10">GEN_FILTERQ</a>,
00042   <a class="code" href="gen_8h.html#a66a11">GEN_MODLFOTOFILTERFC</a>,
00043   <a class="code" href="gen_8h.html#a66a12">GEN_MODENVTOFILTERFC</a>,
00044   <a class="code" href="gen_8h.html#a66a13">GEN_ENDADDRCOARSEOFS</a>,
00045   <a class="code" href="gen_8h.html#a66a14">GEN_MODLFOTOVOL</a>,
00046   <a class="code" href="gen_8h.html#a66a15">GEN_UNUSED1</a>,
00047   <a class="code" href="gen_8h.html#a66a16">GEN_CHORUSSEND</a>,
00048   <a class="code" href="gen_8h.html#a66a17">GEN_REVERBSEND</a>,
00049   <a class="code" href="gen_8h.html#a66a18">GEN_PAN</a>,
00050   <a class="code" href="gen_8h.html#a66a19">GEN_UNUSED2</a>,
00051   <a class="code" href="gen_8h.html#a66a20">GEN_UNUSED3</a>,
00052   <a class="code" href="gen_8h.html#a66a21">GEN_UNUSED4</a>,
00053   <a class="code" href="gen_8h.html#a66a22">GEN_MODLFODELAY</a>,
00054   <a class="code" href="gen_8h.html#a66a23">GEN_MODLFOFREQ</a>,
00055   <a class="code" href="gen_8h.html#a66a24">GEN_VIBLFODELAY</a>,
00056   <a class="code" href="gen_8h.html#a66a25">GEN_VIBLFOFREQ</a>,
00057   <a class="code" href="gen_8h.html#a66a26">GEN_MODENVDELAY</a>,
00058   <a class="code" href="gen_8h.html#a66a27">GEN_MODENVATTACK</a>,
00059   <a class="code" href="gen_8h.html#a66a28">GEN_MODENVHOLD</a>,
00060   <a class="code" href="gen_8h.html#a66a29">GEN_MODENVDECAY</a>,
00061   <a class="code" href="gen_8h.html#a66a30">GEN_MODENVSUSTAIN</a>,
00062   <a class="code" href="gen_8h.html#a66a31">GEN_MODENVRELEASE</a>,
00063   <a class="code" href="gen_8h.html#a66a32">GEN_KEYTOMODENVHOLD</a>,
00064   <a class="code" href="gen_8h.html#a66a33">GEN_KEYTOMODENVDECAY</a>,
00065   <a class="code" href="gen_8h.html#a66a34">GEN_VOLENVDELAY</a>,
00066   <a class="code" href="gen_8h.html#a66a35">GEN_VOLENVATTACK</a>,
00067   <a class="code" href="gen_8h.html#a66a36">GEN_VOLENVHOLD</a>,
00068   <a class="code" href="gen_8h.html#a66a37">GEN_VOLENVDECAY</a>,
00069   <a class="code" href="gen_8h.html#a66a38">GEN_VOLENVSUSTAIN</a>,
00070   <a class="code" href="gen_8h.html#a66a39">GEN_VOLENVRELEASE</a>,
00071   <a class="code" href="gen_8h.html#a66a40">GEN_KEYTOVOLENVHOLD</a>,
00072   <a class="code" href="gen_8h.html#a66a41">GEN_KEYTOVOLENVDECAY</a>,
00073   <a class="code" href="gen_8h.html#a66a42">GEN_INSTRUMENT</a>,
00074   <a class="code" href="gen_8h.html#a66a43">GEN_RESERVED1</a>,
00075   <a class="code" href="gen_8h.html#a66a44">GEN_KEYRANGE</a>,
00076   <a class="code" href="gen_8h.html#a66a45">GEN_VELRANGE</a>,
00077   <a class="code" href="gen_8h.html#a66a46">GEN_STARTLOOPADDRCOARSEOFS</a>,
00078   <a class="code" href="gen_8h.html#a66a47">GEN_KEYNUM</a>,
00079   <a class="code" href="gen_8h.html#a66a48">GEN_VELOCITY</a>,
00080   <a class="code" href="gen_8h.html#a66a49">GEN_ATTENUATION</a>,
00081   <a class="code" href="gen_8h.html#a66a50">GEN_RESERVED2</a>,
00082   <a class="code" href="gen_8h.html#a66a51">GEN_ENDLOOPADDRCOARSEOFS</a>,
00083   <a class="code" href="gen_8h.html#a66a52">GEN_COARSETUNE</a>,
00084   <a class="code" href="gen_8h.html#a66a53">GEN_FINETUNE</a>,
00085   <a class="code" href="gen_8h.html#a66a54">GEN_SAMPLEID</a>,
00086   <a class="code" href="gen_8h.html#a66a55">GEN_SAMPLEMODE</a>,
00087   <a class="code" href="gen_8h.html#a66a56">GEN_RESERVED3</a>,
00088   <a class="code" href="gen_8h.html#a66a57">GEN_SCALETUNE</a>,
00089   <a class="code" href="gen_8h.html#a66a58">GEN_EXCLUSIVECLASS</a>,
00090   <a class="code" href="gen_8h.html#a66a59">GEN_OVERRIDEROOTKEY</a>,
00091 
00092   <span class="comment">/* the initial pitch is not a "standard" generator. It is not</span>
00093 <span class="comment">   * mentioned in the list of generator in the SF2 specifications. It</span>
00094 <span class="comment">   * is used, however, as the destination for the default pitch wheel</span>
00095 <span class="comment">   * modulator. */</span>
00096   <a class="code" href="gen_8h.html#a66a60">GEN_PITCH</a>,
00097   <a class="code" href="gen_8h.html#a66a61">GEN_LAST</a> 
00098 };
00099 
00100 
00101   <span class="comment">/*</span>
00102 <span class="comment">   *  fluid_gen_t</span>
00103 <span class="comment">   *  Sound font generator</span>
00104 <span class="comment">   */</span>
<a name="l00105"></a><a class="code" href="struct__fluid__gen__t.html">00105</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__fluid__gen__t.html">_fluid_gen_t</a>
00106 {
<a name="l00107"></a><a class="code" href="struct__fluid__gen__t.html#o0">00107</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="struct__fluid__gen__t.html#o0">flags</a>; <span class="comment">/* is it used or not */</span>
<a name="l00108"></a><a class="code" href="struct__fluid__gen__t.html#o1">00108</a>   <span class="keywordtype">double</span> <a class="code" href="struct__fluid__gen__t.html#o1">val</a>;          <span class="comment">/* The nominal value */</span>
<a name="l00109"></a><a class="code" href="struct__fluid__gen__t.html#o2">00109</a>   <span class="keywordtype">double</span> <a class="code" href="struct__fluid__gen__t.html#o2">mod</a>;          <span class="comment">/* Change by modulators */</span>
<a name="l00110"></a><a class="code" href="struct__fluid__gen__t.html#o3">00110</a>   <span class="keywordtype">double</span> <a class="code" href="struct__fluid__gen__t.html#o3">nrpn</a>;         <span class="comment">/* Change by NRPN messages */</span>
00111 } <a class="code" href="struct__fluid__gen__t.html">fluid_gen_t</a>;
00112 
<a name="l00113"></a><a class="code" href="gen_8h.html#a67">00113</a> <span class="keyword">enum</span> <a class="code" href="gen_8h.html#a67">fluid_gen_flags</a>
00114 {
00115   <a class="code" href="gen_8h.html#a67a62">GEN_UNUSED</a>,
00116   <a class="code" href="gen_8h.html#a67a63">GEN_SET</a>,
00117   <a class="code" href="gen_8h.html#a67a64">GEN_ABS_NRPN</a>
00118 };
00119 
00121 <a class="code" href="fluidsynth_8h.html#a0">FLUIDSYNTH_API</a> <span class="keywordtype">int</span> <a class="code" href="gen_8h.html#a65">fluid_gen_set_default_values</a>(<a class="code" href="struct__fluid__gen__t.html">fluid_gen_t</a>* gen);
00122 
00123 
00124 
00125 <span class="preprocessor">#ifdef __cplusplus</span>
00126 <span class="preprocessor"></span>}
00127 <span class="preprocessor">#endif</span>
00128 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* _FLUIDSYNTH_GEN_H */</span>
00129 
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Aug 17 14:37:45 2004 for libfluidsynth by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.6-20040222 </small></address>
</body>
</html>