MuseScore  3.4
Music composition and notation
gen.h
Go to the documentation of this file.
1 /* FluidSynth - A Software Synthesizer
2  *
3  * Copyright (C) 2003 Peter Hanappe and others.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public License
7  * as published by the Free Software Foundation; either version 2 of
8  * the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the Free
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18  * 02111-1307, USA
19  */
20 
21 
22 #ifndef _FLUID_GEN_H
23 #define _FLUID_GEN_H
24 
25 namespace FluidS {
26 
27 class Channel;
28 class Generator;
29 
30 class GenInfo {
31  public:
32  char num; /* Generator number */
33  char init; /* Does the generator need to be initialized (cfr. fluid_voice_init()) */
34  char nrpn_scale; /* The scale to convert from NRPN (cfr. fluid_gen_map_nrpn()) */
35  float min; /* The minimum value */
36  float max; /* The maximum value */
37  float def; /* The default value (cfr. fluid_gen_set_default_values()) */
38  };
39 
40 float fluid_gen_scale(int gen, float value);
41 float fluid_gen_scale_nrpn(int gen, int nrpn);
42 void fluid_gen_init(Generator* gen, Channel* channel);
43 
44 }
45 
46 #endif /* _FLUID_GEN_H */
float def
Definition: gen.h:37
Definition: fluid.h:216
Definition: gen.h:30
float max
Definition: gen.h:36
char num
Definition: gen.h:32
char init
Definition: gen.h:33
float min
Definition: gen.h:35
float fluid_gen_scale_nrpn(int gen, int data)
Definition: gen.cpp:133
char nrpn_scale
Definition: gen.h:34
SoundFont generator structure.
Definition: fluid.h:498
Definition: chan.cpp:25
float fluid_gen_scale(int gen, float value)
Definition: gen.cpp:127
void fluid_gen_init(Generator *gen, Channel *channel)
Definition: gen.cpp:112
Definition: channel.h:23