2
0
Fork 0

Fix log2, convert to UTF-8, add build.bat.

This commit is contained in:
bruce 2013-11-14 20:25:37 +08:00
parent f742d2f561
commit ebf75b5dd6
3 changed files with 4 additions and 3 deletions

1
dro2midi/build.bat Normal file
View file

@ -0,0 +1 @@
cl midiio.cpp dro2midi.cpp /link /OUT:dro2midi.exe

View file

@ -101,7 +101,7 @@ const double pitchbend_center = 8192.0;
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#define snprintf _snprintf
#define log2(x) logbase(x, 2)
#define log2(x) (log(x) / log(2.))
inline double round( double d )
{
return floor( d + 0.5 );

View file

@ -1,4 +1,4 @@
// midiio.cpp written by G<EFBFBD>nter Nagler 1995 (gnagler@ihm.tu-graz.ac.at)
// midiio.cpp written by Günter Nagler 1995 (gnagler@ihm.tu-graz.ac.at)
#include "midiio.hpp"
#include <assert.h>
#ifdef __MSDOS__
@ -7,7 +7,7 @@
#include <string.h>
#include <stdlib.h>
static const char* copyright = "midiio v1.4 (c) 1995 by G<EFBFBD>nter Nagler (" __DATE__ ")";
static const char* copyright = "midiio v1.4 (c) 1995 by Günter Nagler (" __DATE__ ")";
int compress = 1;