Path: blob/master/libs/fluidsynth/src/utils/fluid_conv.h
4396 views
/* FluidSynth - A Software Synthesizer1*2* Copyright (C) 2003 Peter Hanappe and others.3*4* This library is free software; you can redistribute it and/or5* modify it under the terms of the GNU Lesser General Public License6* as published by the Free Software Foundation; either version 2.1 of7* the License, or (at your option) any later version.8*9* This library is distributed in the hope that it will be useful, but10* WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU12* Lesser General Public License for more details.13*14* You should have received a copy of the GNU Lesser General Public15* License along with this library; if not, write to the Free16* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA17* 02110-1301, USA18*/1920#ifndef _FLUID_CONV_H21#define _FLUID_CONV_H2223#include "fluidsynth_priv.h"24#include "utils/fluid_conv_tables.h"2526fluid_real_t fluid_ct2hz_real(fluid_real_t cents);27fluid_real_t fluid_ct2hz(fluid_real_t cents);28fluid_real_t fluid_cb2amp(fluid_real_t cb);29fluid_real_t fluid_sec2tc(fluid_real_t sec);30fluid_real_t fluid_tc2sec(fluid_real_t tc);31fluid_real_t fluid_tc2sec_delay(fluid_real_t tc);32fluid_real_t fluid_tc2sec_attack(fluid_real_t tc);33fluid_real_t fluid_tc2sec_release(fluid_real_t tc);34fluid_real_t fluid_hz2ct(fluid_real_t f);35double fluid_act2hz(double c);36fluid_real_t fluid_pan(fluid_real_t c, int left);37fluid_real_t fluid_balance(fluid_real_t balance, int left);38fluid_real_t fluid_concave(fluid_real_t val);39fluid_real_t fluid_convex(fluid_real_t val);4041#endif /* _FLUID_CONV_H */424344