00001
00004 #ifndef __SCRIPTS_H_INCLUDED__
00005 #define __SCRIPTS_H_INCLUDED__
00006
00007 #include <math.h>
00008 #include <stdio.h>
00009 #include <stdlib.h>
00010
00011 #include <mgk60.h>
00012 #include <simgui.h>
00013
00014 #include "System.h"
00015 #include "fft.h"
00016
00017
00018 #ifndef M_PI
00019 #define M_PI 3.1415926
00020 #endif
00021 #ifndef NULL
00022 #define NULL 0
00023 #endif
00024 #ifndef TRUE
00025 #define TRUE 1
00026 #endif
00027 #ifndef FALSE
00028 #define FALSE 0
00029 #endif
00030
00031 #ifndef min
00032 #define min(x,y) (((x) < (y)) ? (x) : (y))
00033 #endif
00034 #ifndef max
00035 #define max(x,y) (((x) > (y)) ? (x) : (y))
00036 #endif
00037 #ifndef sqr
00038 #define sqr(x) ((x) * (x))
00039 #endif
00040
00041
00042 #define CT_SINAMP "Chan %d sine ampl"
00043 #define CT_SINFREQ "Chan %d sine freq"
00044 #define CT_NOISEAMP "Chan %d noise ampl"
00045
00046
00047 #define ENV_RESET "Reset envelopes"
00048 #define FILT_RESET "Reset filters"
00049
00050 #endif
00051