...
 
Commits (3)
......@@ -67,6 +67,7 @@ decay and other times in msec
#include "ext_obex.h"
typedef double t_floatarg; /* from m_pd.h */
typedef float t_float; /* from m_pd.h */
#define flog log
#define fexp exp
#define fsqrt sqrt
......@@ -99,12 +100,12 @@ static t_class *bonk_class;
#define DEFOVERLAP 1
#define DEFFIRSTBIN 1
#define DEFMINBANDWIDTH 1.5
#define DEFHITHRESH 5
#define DEFHITHRESH 5.
#define DEFLOTHRESH 2.5
#define DEFMASKTIME 4
#define DEFMASKDECAY 0.7
#define DEFDEBOUNCEDECAY 0
#define DEFMINVEL 7
#define DEFMINVEL 7.
#define DEFATTACKBINS 1
#define MAXATTACKWAIT 4
......
......@@ -14,7 +14,8 @@ This file is downloadable from http://www.crca.ucsd.edu/~msp .
#ifdef PD
#include "m_pd.h"
#else
#define t_sample float
typedef float t_float;
typedef float t_sample;
#endif
......@@ -96,7 +97,7 @@ static void loopctl_init(t_loopctl *x)
x->l_phase = 0;
}
static void loopctl_set(t_loopctl *x, float val)
static void loopctl_set(t_loopctl *x, t_float val)
{
if (val < 0 || val > 1)
val = 0;
......
......@@ -8,7 +8,7 @@ typedef struct _lrshift_tilde
{
t_object x_obj;
int x_n;
float x_f;
t_float x_f;
} t_lrshift_tilde;
static t_int *leftshift_perform(t_int *w)
......