2016-08-23 12:50:54 -04:00
|
|
|
/* FluidSynth - A Software Synthesizer
|
|
|
|
*
|
|
|
|
* Copyright (C) 2003 Peter Hanappe and others.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
2018-10-17 18:41:02 -04:00
|
|
|
* modify it under the terms of the GNU Lesser General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2.1 of
|
2016-08-23 12:50:54 -04:00
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2018-10-17 18:41:02 -04:00
|
|
|
* Lesser General Public License for more details.
|
2016-08-23 12:50:54 -04:00
|
|
|
*
|
2018-10-17 18:41:02 -04:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2016-08-23 12:50:54 -04:00
|
|
|
* License along with this library; if not, write to the Free
|
|
|
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
* 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _FLUID_CONV_H
|
|
|
|
#define _FLUID_CONV_H
|
|
|
|
|
|
|
|
#include "fluidsynth_priv.h"
|
2018-11-23 08:36:52 -05:00
|
|
|
#include "fluid_conv_tables.h"
|
2016-08-23 12:50:54 -04:00
|
|
|
|
|
|
|
fluid_real_t fluid_ct2hz_real(fluid_real_t cents);
|
|
|
|
fluid_real_t fluid_ct2hz(fluid_real_t cents);
|
|
|
|
fluid_real_t fluid_cb2amp(fluid_real_t cb);
|
|
|
|
fluid_real_t fluid_tc2sec(fluid_real_t tc);
|
|
|
|
fluid_real_t fluid_tc2sec_delay(fluid_real_t tc);
|
|
|
|
fluid_real_t fluid_tc2sec_attack(fluid_real_t tc);
|
|
|
|
fluid_real_t fluid_tc2sec_release(fluid_real_t tc);
|
|
|
|
fluid_real_t fluid_act2hz(fluid_real_t c);
|
|
|
|
fluid_real_t fluid_pan(fluid_real_t c, int left);
|
2018-10-17 18:41:02 -04:00
|
|
|
fluid_real_t fluid_balance(fluid_real_t balance, int left);
|
2016-08-23 12:50:54 -04:00
|
|
|
fluid_real_t fluid_concave(fluid_real_t val);
|
|
|
|
fluid_real_t fluid_convex(fluid_real_t val);
|
|
|
|
|
|
|
|
#endif /* _FLUID_CONV_H */
|