MuseScore  3.4
Music composition and notation
conv.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 #ifndef _FLUID_CONV_H
22 #define _FLUID_CONV_H
23 
24 namespace FluidS {
25 
26 #define FLUID_CENTS_HZ_SIZE 1200
27 #define FLUID_VEL_CB_SIZE 128
28 #define FLUID_CB_AMP_SIZE 961
29 #define FLUID_ATTEN_AMP_SIZE 1441
30 #define FLUID_PAN_SIZE 1002
31 
32 /* EMU 8k/10k don't follow spec in regards to volume attenuation.
33  * This factor is used in the equation pow (10.0, cb / FLUID_ATTEN_POWER_FACTOR).
34  */
35 #define FLUID_ATTEN_POWER_FACTOR (-200.0)
36 
37 void fluid_conversion_config(void);
38 
39 float fluid_cb2amp(float cb);
40 float fluid_atten2amp(float atten);
41 float fluid_tc2sec(float tc);
42 float fluid_tc2sec_delay(float tc);
43 float fluid_tc2sec_attack(float tc);
44 float fluid_tc2sec_release(float tc);
45 float fluid_act2hz(float c);
46 float fluid_pan(float c, int left);
47 float fluid_concave(float val);
48 float fluid_convex(float val);
49 
50 }
51 #endif /* _FLUID_CONV_H */
float fluid_tc2sec_release(float tc)
Definition: conv.cpp:173
float fluid_concave(float val)
Definition: conv.cpp:217
float fluid_act2hz(float c)
Definition: conv.cpp:194
void fluid_conversion_config()
Definition: conv.cpp:37
float fluid_cb2amp(float cb)
Definition: conv.cpp:88
float fluid_tc2sec_delay(float tc)
Definition: conv.cpp:126
float fluid_tc2sec_attack(float tc)
Definition: conv.cpp:146
float fluid_convex(float val)
Definition: conv.cpp:229
float fluid_pan(float c, int left)
Definition: conv.cpp:202
float fluid_atten2amp(float atten)
Definition: conv.cpp:113
Definition: chan.cpp:25
float fluid_tc2sec(float tc)
Definition: conv.cpp:164