2 ZynAddSubFX - a software synthesizer
4 Util.h - Miscellaneous functions
5 Copyright (C) 2002-2005 Nasca Octavian Paul
6 Author: Nasca Octavian Paul
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of version 2 of the GNU General Public License
10 as published by the Free Software Foundation.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License (version 2) for more details.
17 You should have received a copy of the GNU General Public License (version 2)
18 along with this program; if not, write to the Free Software Foundation,
19 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 } /* Adjust editor indent */
33 // Velocity Sensing function
34 extern REALTYPE
VelF(REALTYPE velocity
,unsigned char scaling
);
37 zyn_velocity_scale(float velocity
, float scaling
);
48 zyn_sample_type
* buffer
,
53 zyn_sample_type
* buffer1
,
54 zyn_sample_type
* buffer2
,
59 zyn_sample_type
* buffer_mix_1
,
60 zyn_sample_type
* buffer_mix_2
,
61 zyn_sample_type
* buffer1
,
62 zyn_sample_type
* buffer2
,
67 zyn_sample_type
* buffer1
,
68 zyn_sample_type
* buffer2
,
73 zyn_sample_type
* buffer_dest
,
74 zyn_sample_type
* buffer_src
,
79 zyn_sample_type
* buffer
,
84 * Random generator (0.0..1.0)
89 #define ZYN_BOOL_XOR(p, q) (((p) && !(q)) || (!(p) && (q)))
92 { /* Adjust editor indent */