nongnu.org/gsequencer


gsequencer 7.0.5
Advanced Gtk+ Sequencer
ags_vst_futils.h
Go to the documentation of this file.
1/* GSequencer - Advanced GTK Sequencer
2 * Copyright (C) 2005-2019 Joël Krähemann
3 *
4 * This file is part of GSequencer.
5 *
6 * GSequencer is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * GSequencer is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with GSequencer. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef __AGS_VST_FUTIL_H__
21#define __AGS_VST_FUTIL_H__
22
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29 void ags_vst_util_min_int32(gint32 a, gint32 b,
30 gint32 *retval);
31 void ags_vst_util_min_float(gfloat a, gfloat b,
32 gfloat *retval);
33
34 void ags_vst_util_max_int32(gint32 a, gint32 b,
35 gint32 *retval);
36 void ags_vst_util_max_float(gfloat a, gfloat b,
37 gfloat *retval);
38
39 void ags_vst_util_abs_int32(gint32 value,
40 gint32 *retval);
41 void ags_vst_util_abs_float(gfloat value,
42 gfloat *retval);
43
44 void ags_vst_util_sign_int32(gint32 value,
45 gint32 *retval);
46 void ags_vst_util_sign_float(gfloat value,
47 gfloat *retval);
48
49 void ags_vst_util_bound_int32(gint32 minval, gint32 maxval, gint32 x,
50 gint32 *retval);
51 void ags_vst_util_bound_float(gfloat minval, gfloat maxval, gfloat x,
52 gfloat *retval);
53
54 void ags_vst_util_swap_int32(gint32 *t1, gint32 *t2);
55 void ags_vst_util_swap_float(gfloat *t1, gfloat *t2);
56
57 gboolean ags_vst_util_is_approximate_equal_int32(gint32 t1, gint32 t2, gint32 epsilon);
58 gboolean ags_vst_util_is_approximate_equal_float(gfloat t1, gfloat t2, gfloat epsilon);
59
60 void ags_vst_util_to_normalized_int32(gint32 value, gint32 num_steps,
61 gint32 *retval);
62 void ags_vst_util_to_normalized_float(gfloat value, gfloat num_steps,
63 gfloat *retval);
64
65 void ags_vst_util_from_normalized_int32(gint32 norm, gint32 num_steps,
66 gint32 *retval);
67 void ags_vst_util_from_normalized_float(gfloat norm, gfloat num_steps,
68 gfloat *retval);
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif /*__AGS_VST_FUTIL_H__*/
75
76
void ags_vst_util_abs_float(gfloat value, gfloat *retval)
Definition ags_vst_futils.cpp:118
void ags_vst_util_max_int32(gint32 a, gint32 b, gint32 *retval)
Definition ags_vst_futils.cpp:69
void ags_vst_util_bound_float(gfloat minval, gfloat maxval, gfloat x, gfloat *retval)
Definition ags_vst_futils.cpp:186
gboolean ags_vst_util_is_approximate_equal_int32(gint32 t1, gint32 t2, gint32 epsilon)
Definition ags_vst_futils.cpp:230
void ags_vst_util_sign_float(gfloat value, gfloat *retval)
Definition ags_vst_futils.cpp:150
void ags_vst_util_min_int32(gint32 a, gint32 b, gint32 *retval)
Definition ags_vst_futils.cpp:35
void ags_vst_util_from_normalized_float(gfloat norm, gfloat num_steps, gfloat *retval)
Definition ags_vst_futils.cpp:310
void ags_vst_util_max_float(gfloat a, gfloat b, gfloat *retval)
Definition ags_vst_futils.cpp:86
void ags_vst_util_bound_int32(gint32 minval, gint32 maxval, gint32 x, gint32 *retval)
Definition ags_vst_futils.cpp:168
void ags_vst_util_sign_int32(gint32 value, gint32 *retval)
Definition ags_vst_futils.cpp:134
void ags_vst_util_min_float(gfloat a, gfloat b, gfloat *retval)
Definition ags_vst_futils.cpp:52
void ags_vst_util_swap_float(gfloat *t1, gfloat *t2)
Definition ags_vst_futils.cpp:215
void ags_vst_util_from_normalized_int32(gint32 norm, gint32 num_steps, gint32 *retval)
Definition ags_vst_futils.cpp:293
void ags_vst_util_to_normalized_int32(gint32 value, gint32 num_steps, gint32 *retval)
Definition ags_vst_futils.cpp:259
gboolean ags_vst_util_is_approximate_equal_float(gfloat t1, gfloat t2, gfloat epsilon)
Definition ags_vst_futils.cpp:245
void ags_vst_util_abs_int32(gint32 value, gint32 *retval)
Definition ags_vst_futils.cpp:102
void ags_vst_util_to_normalized_float(gfloat value, gfloat num_steps, gfloat *retval)
Definition ags_vst_futils.cpp:276
void ags_vst_util_swap_int32(gint32 *t1, gint32 *t2)
Definition ags_vst_futils.cpp:202