44 #define N_MIDI_PAD 128 47 #define TAMMUESTRA 570 48 #define TTminusTM (TAMTRAMA-TAMMUESTRA) 51 #define T_COSTS (2*N_COSTS-1) 52 #define TBLOCK (N_COSTS+1) 54 #define Scaling 0.000030517578125 58 #define maxThreads 512 64 #define MyFFTCPUType fftwf_plan 67 #define MyFFTCPUType fftw_plan 69 #define MyFFTGPUType cufftHandle 71 #define WAVHeaderLength 44 75 #define AlsaAccessMode SND_PCM_ACCESS_RW_INTERLEAVED 76 #define AlsaChannels 1 77 #define AlsaRate 44100 78 #define AlsaAccessFormat SND_PCM_FORMAT_S16_LE 84 #define AQBufferSize TAMMUESTRA 86 #define AQBitsPerChannel 16 87 #define kNumberRecordBuffers 4 88 #define MiddleBufferSize (TAMTRAMA*2) 95 #define RunJumpTime 0.012925 96 #define TrainJumpTime 0.012925 97 #define DelayTimeMidi 1 99 #define NUMAPPAIRS (NUMAPMAX*(NUMAPMAX-1)/2) 102 #define HMMchange 0.20 103 #define HMMremain 0.80 107 #define ErrReadFile -1 108 #define ErrWriteFile -2 109 #define ErrInfoReaded -3 110 #define ErrGpuWrong -4 111 #define ErrFFTSched -5 112 #define ErrReadDevice -6 113 #define ErrSendOSC -7 115 #define ErrWavFormat -9 117 #define ErrTimer -11; 119 #define CHECKERR(x) do { if((x)<0) { \ 120 printf("Error %d calling %s line %d\n", x, __FILE__, __LINE__);\ 123 #define CHECKNULL(x) do { if((x)==NULL) { \ 124 printf("NULL (when open file or memory allocation calling %s line %d\n", __FILE__, __LINE__);\ 125 return ErrNULL;}} while(0) 127 #define CUDAERR(x) do { if((x)!=cudaSuccess) { \ 128 printf("CUDA error: %s : %s, line %d\n", cudaGetErrorString(x), __FILE__, __LINE__);\ 129 return EXIT_FAILURE;}} while(0) 131 #define CUBLASERR(x) do { if((x)!=CUBLAS_STATUS_SUCCESS) { \ 132 printf("CUBLAS error: %s, line %d\n", __FILE__, __LINE__);\ 133 return EXIT_FAILURE;}} while(0) 135 #define CUFFTERR(x) do { if((x)!=CUFFT_SUCCESS) { \ 136 printf("CUFFT error: %s, line %d\n", __FILE__, __LINE__);\ 137 return EXIT_FAILURE;}} while(0) 140 #define min(x,y) ((x < y) ? x : y) 153 typedef struct PosMin PosMin;
156 #pragma omp declare reduction(MIN : PosMin : \ 157 omp_out = ((omp_in.val < omp_out.val) || ((omp_in.val == omp_out.val) && (omp_in.pos < omp_out.pos))) ? omp_in : omp_out) \ 158 initializer(omp_priv = { FLT_MAX, 0 }) 160 #pragma omp declare reduction(MIN : PosMin : \ 161 omp_out = ((omp_in.val < omp_out.val) || ((omp_in.val == omp_out.val) && (omp_in.pos < omp_out.pos))) ? omp_in : omp_out) \ 162 initializer(omp_priv = { DBL_MAX, 0 }) 200 char HostIP[MaxOSC][16];
201 char HostPort[MaxOSC][5];
286 typedef struct STempo STempo;
298 int AudioTimeAP[NUMAPMAX];
299 int ScoreTimeAP[NUMAPMAX];
Struct for store the name of input/verificaton files. Each composition needs a file with values for ...
Struct for Compute tempos.
Struct for Compute tempos.
Struct for store global information of the problem. Each composition needs a file with values for th...