Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/libs/fluidsynth/src/utils/fluid_conv.h
4396 views
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 Lesser General Public License
7
* as published by the Free Software Foundation; either version 2.1 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
* Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free
17
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18
* 02110-1301, USA
19
*/
20
21
#ifndef _FLUID_CONV_H
22
#define _FLUID_CONV_H
23
24
#include "fluidsynth_priv.h"
25
#include "utils/fluid_conv_tables.h"
26
27
fluid_real_t fluid_ct2hz_real(fluid_real_t cents);
28
fluid_real_t fluid_ct2hz(fluid_real_t cents);
29
fluid_real_t fluid_cb2amp(fluid_real_t cb);
30
fluid_real_t fluid_sec2tc(fluid_real_t sec);
31
fluid_real_t fluid_tc2sec(fluid_real_t tc);
32
fluid_real_t fluid_tc2sec_delay(fluid_real_t tc);
33
fluid_real_t fluid_tc2sec_attack(fluid_real_t tc);
34
fluid_real_t fluid_tc2sec_release(fluid_real_t tc);
35
fluid_real_t fluid_hz2ct(fluid_real_t f);
36
double fluid_act2hz(double c);
37
fluid_real_t fluid_pan(fluid_real_t c, int left);
38
fluid_real_t fluid_balance(fluid_real_t balance, int left);
39
fluid_real_t fluid_concave(fluid_real_t val);
40
fluid_real_t fluid_convex(fluid_real_t val);
41
42
#endif /* _FLUID_CONV_H */
43
44