- use jsy_min/jsy_max
- fixed includes - removed redundant MW table - added Missing JK_MidiClock
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#ifndef _SYNTH_DEFS_H_
|
||||
#define _SYNTH_DEFS_H_
|
||||
|
||||
#include <limits.h>
|
||||
#include <math.h>
|
||||
#include "synth_types.h"
|
||||
|
||||
// --------------------------------------------------------------
|
||||
@@ -43,10 +45,10 @@
|
||||
|
||||
#define SYNTH_MAX_BUFSIZE 8192
|
||||
|
||||
#ifndef pi
|
||||
#define pi 3.1415926535897932384626433832795
|
||||
#define pi_mult_2 (2*pi)
|
||||
#define pi_div_2 (0.5*pi)
|
||||
#ifndef jsy_pi
|
||||
#define jsy_pi 3.1415926535897932384626433832795
|
||||
#define pi_mult_2 (2*jsy_pi)
|
||||
#define pi_div_2 (0.5*jsy_pi)
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
@@ -57,12 +59,12 @@ void SynthDebug(const char *fmtstr, ...);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef max
|
||||
#define max(a,b) (((a) > (b)) ? (a) : (b))
|
||||
#ifndef jsy_max
|
||||
#define jsy_max(a,b) (((a) > (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a) < (b)) ? (a) : (b))
|
||||
#ifndef jsy_min
|
||||
#define jsy_min(a,b) (((a) < (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user