mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-10 16:43:33 +02:00
Converted CRLF to LF.
This commit is contained in:
@@ -1,107 +1,107 @@
|
||||
# Linux makefile for scorealign
|
||||
# please use either make -f Makfile.linux
|
||||
# -OR- ln -s Makfile.linux Makefile
|
||||
|
||||
# profile = -pg
|
||||
profile =
|
||||
|
||||
DEBUGFLAGS =
|
||||
|
||||
optimize = -g $(DEBUGFLAGS) $(profile)
|
||||
# optimize = -O
|
||||
|
||||
#PORTSMF LIBRARY PATH:
|
||||
# (set this to the location of allegro.cpp, allegrosmfrd.cpp, allegrosmfwr.cpp, etc.)
|
||||
# (if you do not have this directory, look for portsmf in the portmedia project
|
||||
# on sourceforge)
|
||||
PORTSMF = ../portsmf
|
||||
|
||||
INCLUDES = -Isnd -Ifft3 -I$(PORTSMF)
|
||||
|
||||
#OPTIONS FOR LINUX:
|
||||
c_opts = $(optimize) -DLINUX $(INCLUDES)
|
||||
|
||||
cc = gcc $(c_opts)
|
||||
c++ = g++ $(c_opts)
|
||||
cclink = gcc
|
||||
c++link = g++
|
||||
syslibs = -lm
|
||||
|
||||
scorealign_o = comp_chroma.o gen_chroma.o scorealign.o snd/audionone.o \
|
||||
snd/sndcvt.o snd/sndheader.o snd/sndio.o snd/snd.o \
|
||||
snd/ieeecvt.o snd/sndlinux.o snd/sndfaillinux.o \
|
||||
fft3/FFT.o $(PORTSMF)/mfmidi.o $(PORTSMF)/allegro.o \
|
||||
$(PORTSMF)/allegrosmfrd.o $(PORTSMF)/allegrosmfwr.o \
|
||||
$(PORTSMF)/allegrord.o $(PORTSMF)/strparse.o trace.o \
|
||||
regression.o sautils.o curvefit.o hillclimb.o
|
||||
|
||||
.SUFFIXES: .cpp .c .h .aur .o
|
||||
|
||||
.cpp.o:
|
||||
$(c++) -c $< -o $*.o
|
||||
|
||||
.c.o:
|
||||
$(cc) -c $< -o $*.o
|
||||
|
||||
all: scorealign
|
||||
|
||||
header:
|
||||
echo "**********************************************************"
|
||||
echo "**********************************************************"
|
||||
|
||||
clean:
|
||||
echo "removing objects"
|
||||
find . -name "*~" | xargs rm -f
|
||||
rm -f $(scorealign_o)
|
||||
rm -f core*
|
||||
|
||||
cleaner: clean
|
||||
rm -f TAGS
|
||||
|
||||
cleanest: cleaner
|
||||
rm -f scorealign
|
||||
rm -f scorealign.ncb
|
||||
rm -f scorealign.opt
|
||||
rm -f scorealign.plg
|
||||
|
||||
TAGS:
|
||||
find . \( -name "*.cpp" -o -name "*.h" \) -print | etags -
|
||||
|
||||
tags: TAGS
|
||||
|
||||
backup: cleanest
|
||||
tar cvf ../scorealign.tar .
|
||||
gzip ../scorealign.tar
|
||||
echo "please rename ../scorealign.tar.gz"
|
||||
|
||||
|
||||
scorealign: $(scorealign_o)
|
||||
$(c++link) $(scorealign_o) -o scorealign $(syslibs)
|
||||
|
||||
test0:
|
||||
./scorealign /home/rbd/wdh/music/nyquist-temp.wav /home/rbd/wdh/music/chrom_nyquist-temp.wav > output.txt
|
||||
diff output.txt /home/rbd/wdh/music/output.txt | less
|
||||
|
||||
test:
|
||||
./scorealign /home/rbd/scorealign/data/live-beeth-s5m1-25s-mono.wav /home/rbd/scorealign/data/midi-beeth-s5m1-25s-mono.wav > output.txt
|
||||
diff output.txt /home/rbd/wdh/music/output.txt | less
|
||||
|
||||
bigtest:
|
||||
./scorealign data/live-Beethoven_Symphony_No5_Mvt1.wav data/midi-Beethoven_Symphony_No5_Mvt1.wav
|
||||
|
||||
bigtest2:
|
||||
./scorealign data/midi-Beethoven_Symphony_No5_Mvt1.wav data/live-Beethoven_Symphony_No5_Mvt1.wav
|
||||
|
||||
|
||||
# DEPENDENCIES
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Linux makefile for scorealign
|
||||
# please use either make -f Makfile.linux
|
||||
# -OR- ln -s Makfile.linux Makefile
|
||||
|
||||
# profile = -pg
|
||||
profile =
|
||||
|
||||
DEBUGFLAGS =
|
||||
|
||||
optimize = -g $(DEBUGFLAGS) $(profile)
|
||||
# optimize = -O
|
||||
|
||||
#PORTSMF LIBRARY PATH:
|
||||
# (set this to the location of allegro.cpp, allegrosmfrd.cpp, allegrosmfwr.cpp, etc.)
|
||||
# (if you do not have this directory, look for portsmf in the portmedia project
|
||||
# on sourceforge)
|
||||
PORTSMF = ../portsmf
|
||||
|
||||
INCLUDES = -Isnd -Ifft3 -I$(PORTSMF)
|
||||
|
||||
#OPTIONS FOR LINUX:
|
||||
c_opts = $(optimize) -DLINUX $(INCLUDES)
|
||||
|
||||
cc = gcc $(c_opts)
|
||||
c++ = g++ $(c_opts)
|
||||
cclink = gcc
|
||||
c++link = g++
|
||||
syslibs = -lm
|
||||
|
||||
scorealign_o = comp_chroma.o gen_chroma.o scorealign.o snd/audionone.o \
|
||||
snd/sndcvt.o snd/sndheader.o snd/sndio.o snd/snd.o \
|
||||
snd/ieeecvt.o snd/sndlinux.o snd/sndfaillinux.o \
|
||||
fft3/FFT.o $(PORTSMF)/mfmidi.o $(PORTSMF)/allegro.o \
|
||||
$(PORTSMF)/allegrosmfrd.o $(PORTSMF)/allegrosmfwr.o \
|
||||
$(PORTSMF)/allegrord.o $(PORTSMF)/strparse.o trace.o \
|
||||
regression.o sautils.o curvefit.o hillclimb.o
|
||||
|
||||
.SUFFIXES: .cpp .c .h .aur .o
|
||||
|
||||
.cpp.o:
|
||||
$(c++) -c $< -o $*.o
|
||||
|
||||
.c.o:
|
||||
$(cc) -c $< -o $*.o
|
||||
|
||||
all: scorealign
|
||||
|
||||
header:
|
||||
echo "**********************************************************"
|
||||
echo "**********************************************************"
|
||||
|
||||
clean:
|
||||
echo "removing objects"
|
||||
find . -name "*~" | xargs rm -f
|
||||
rm -f $(scorealign_o)
|
||||
rm -f core*
|
||||
|
||||
cleaner: clean
|
||||
rm -f TAGS
|
||||
|
||||
cleanest: cleaner
|
||||
rm -f scorealign
|
||||
rm -f scorealign.ncb
|
||||
rm -f scorealign.opt
|
||||
rm -f scorealign.plg
|
||||
|
||||
TAGS:
|
||||
find . \( -name "*.cpp" -o -name "*.h" \) -print | etags -
|
||||
|
||||
tags: TAGS
|
||||
|
||||
backup: cleanest
|
||||
tar cvf ../scorealign.tar .
|
||||
gzip ../scorealign.tar
|
||||
echo "please rename ../scorealign.tar.gz"
|
||||
|
||||
|
||||
scorealign: $(scorealign_o)
|
||||
$(c++link) $(scorealign_o) -o scorealign $(syslibs)
|
||||
|
||||
test0:
|
||||
./scorealign /home/rbd/wdh/music/nyquist-temp.wav /home/rbd/wdh/music/chrom_nyquist-temp.wav > output.txt
|
||||
diff output.txt /home/rbd/wdh/music/output.txt | less
|
||||
|
||||
test:
|
||||
./scorealign /home/rbd/scorealign/data/live-beeth-s5m1-25s-mono.wav /home/rbd/scorealign/data/midi-beeth-s5m1-25s-mono.wav > output.txt
|
||||
diff output.txt /home/rbd/wdh/music/output.txt | less
|
||||
|
||||
bigtest:
|
||||
./scorealign data/live-Beethoven_Symphony_No5_Mvt1.wav data/midi-Beethoven_Symphony_No5_Mvt1.wav
|
||||
|
||||
bigtest2:
|
||||
./scorealign data/midi-Beethoven_Symphony_No5_Mvt1.wav data/live-Beethoven_Symphony_No5_Mvt1.wav
|
||||
|
||||
|
||||
# DEPENDENCIES
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -1,100 +1,100 @@
|
||||
# OS X Makefile for scorealign
|
||||
# NOTE: This is out of date. See the score-align.vcproj -OR- Makefile.linux
|
||||
|
||||
# profile = -pg
|
||||
profile =
|
||||
|
||||
DEBUGFLAGS =
|
||||
|
||||
#optimize = -g $(DEBUGFLAGS) $(profile)
|
||||
optimize = -O
|
||||
|
||||
#PORTSMF LIBRARY PATH:
|
||||
# (set this to the location of allegro.cpp, allegrosmfrd.cpp, allegrosmfwr.cpp, etc.)
|
||||
# (if you do not have this directory, look for portsmf in the portmedia project
|
||||
# on sourceforge)
|
||||
PORTSMF = ../portsmf
|
||||
|
||||
INCLUDES = -Isnd -Ifft3 -I$(PORTSMF)
|
||||
|
||||
#OPTIONS FOR LINUX:
|
||||
c_opts = $(optimize) -DLINUX $(INCLUDES)
|
||||
|
||||
cc = gcc $(c_opts)
|
||||
c++ = g++ $(c_opts)
|
||||
cclink = gcc
|
||||
c++link = g++
|
||||
syslibs = -lm
|
||||
|
||||
scorealign_o = comp_chroma.o gen_chroma.o scorealign.o snd/audionone.o snd/sndcvt.o snd/sndheader.o snd/sndio.o snd/snd.o snd/ieeecvt.o snd/sndlinux.o snd/sndfaillinux.o fft3/FFT.o mfmidi.o $(PORTSMF)/allegro.o $(PORTSMF)/allegrosmfrd.o $(PORTSMF)/allegrosmfwr.o $(PORTSMF)/allegrord.o $(PORTSMF)/strparse.o trace.o regression.o
|
||||
|
||||
.SUFFIXES: .cpp .c .h .aur .o
|
||||
|
||||
.cpp.o:
|
||||
$(c++) -c $< -o $*.o
|
||||
|
||||
.c.o:
|
||||
$(cc) -c $< -o $*.o
|
||||
|
||||
all: scorealign
|
||||
|
||||
header:
|
||||
echo "**********************************************************"
|
||||
echo "**********************************************************"
|
||||
|
||||
clean:
|
||||
echo "removing objects"
|
||||
find . -name "*~" | xargs rm -f
|
||||
rm -f $(scorealign_o)
|
||||
rm -f core*
|
||||
|
||||
cleaner: clean
|
||||
rm -f TAGS
|
||||
|
||||
cleanest: cleaner
|
||||
rm -f scorealign
|
||||
rm -f scorealign.ncb
|
||||
rm -f scorealign.opt
|
||||
rm -f scorealign.plg
|
||||
|
||||
TAGS:
|
||||
find . \( -name "*.cpp" -o -name "*.h" \) -print | etags -
|
||||
|
||||
tags: TAGS
|
||||
|
||||
backup: cleanest
|
||||
tar cvf ../scorealign.tar .
|
||||
gzip ../scorealign.tar
|
||||
echo "please rename ../scorealign.tar.gz"
|
||||
|
||||
|
||||
scorealign: $(scorealign_o)
|
||||
$(c++link) $(scorealign_o) -o scorealign $(syslibs)
|
||||
|
||||
test0:
|
||||
./scorealign /home/rbd/wdh/music/nyquist-temp.wav /home/rbd/wdh/music/chrom_nyquist-temp.wav > output.txt
|
||||
diff output.txt /home/rbd/wdh/music/output.txt | less
|
||||
|
||||
test:
|
||||
./scorealign /home/rbd/scorealign/data/live-beeth-s5m1-25s-mono.wav /home/rbd/scorealign/data/midi-beeth-s5m1-25s-mono.wav > output.txt
|
||||
diff output.txt /home/rbd/wdh/music/output.txt | less
|
||||
|
||||
bigtest:
|
||||
./scorealign data/live-Beethoven_Symphony_No5_Mvt1.wav data/midi-Beethoven_Symphony_No5_Mvt1.wav
|
||||
|
||||
bigtest2:
|
||||
./scorealign data/midi-Beethoven_Symphony_No5_Mvt1.wav data/live-Beethoven_Symphony_No5_Mvt1.wav
|
||||
|
||||
|
||||
# DEPENDENCIES
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# OS X Makefile for scorealign
|
||||
# NOTE: This is out of date. See the score-align.vcproj -OR- Makefile.linux
|
||||
|
||||
# profile = -pg
|
||||
profile =
|
||||
|
||||
DEBUGFLAGS =
|
||||
|
||||
#optimize = -g $(DEBUGFLAGS) $(profile)
|
||||
optimize = -O
|
||||
|
||||
#PORTSMF LIBRARY PATH:
|
||||
# (set this to the location of allegro.cpp, allegrosmfrd.cpp, allegrosmfwr.cpp, etc.)
|
||||
# (if you do not have this directory, look for portsmf in the portmedia project
|
||||
# on sourceforge)
|
||||
PORTSMF = ../portsmf
|
||||
|
||||
INCLUDES = -Isnd -Ifft3 -I$(PORTSMF)
|
||||
|
||||
#OPTIONS FOR LINUX:
|
||||
c_opts = $(optimize) -DLINUX $(INCLUDES)
|
||||
|
||||
cc = gcc $(c_opts)
|
||||
c++ = g++ $(c_opts)
|
||||
cclink = gcc
|
||||
c++link = g++
|
||||
syslibs = -lm
|
||||
|
||||
scorealign_o = comp_chroma.o gen_chroma.o scorealign.o snd/audionone.o snd/sndcvt.o snd/sndheader.o snd/sndio.o snd/snd.o snd/ieeecvt.o snd/sndlinux.o snd/sndfaillinux.o fft3/FFT.o mfmidi.o $(PORTSMF)/allegro.o $(PORTSMF)/allegrosmfrd.o $(PORTSMF)/allegrosmfwr.o $(PORTSMF)/allegrord.o $(PORTSMF)/strparse.o trace.o regression.o
|
||||
|
||||
.SUFFIXES: .cpp .c .h .aur .o
|
||||
|
||||
.cpp.o:
|
||||
$(c++) -c $< -o $*.o
|
||||
|
||||
.c.o:
|
||||
$(cc) -c $< -o $*.o
|
||||
|
||||
all: scorealign
|
||||
|
||||
header:
|
||||
echo "**********************************************************"
|
||||
echo "**********************************************************"
|
||||
|
||||
clean:
|
||||
echo "removing objects"
|
||||
find . -name "*~" | xargs rm -f
|
||||
rm -f $(scorealign_o)
|
||||
rm -f core*
|
||||
|
||||
cleaner: clean
|
||||
rm -f TAGS
|
||||
|
||||
cleanest: cleaner
|
||||
rm -f scorealign
|
||||
rm -f scorealign.ncb
|
||||
rm -f scorealign.opt
|
||||
rm -f scorealign.plg
|
||||
|
||||
TAGS:
|
||||
find . \( -name "*.cpp" -o -name "*.h" \) -print | etags -
|
||||
|
||||
tags: TAGS
|
||||
|
||||
backup: cleanest
|
||||
tar cvf ../scorealign.tar .
|
||||
gzip ../scorealign.tar
|
||||
echo "please rename ../scorealign.tar.gz"
|
||||
|
||||
|
||||
scorealign: $(scorealign_o)
|
||||
$(c++link) $(scorealign_o) -o scorealign $(syslibs)
|
||||
|
||||
test0:
|
||||
./scorealign /home/rbd/wdh/music/nyquist-temp.wav /home/rbd/wdh/music/chrom_nyquist-temp.wav > output.txt
|
||||
diff output.txt /home/rbd/wdh/music/output.txt | less
|
||||
|
||||
test:
|
||||
./scorealign /home/rbd/scorealign/data/live-beeth-s5m1-25s-mono.wav /home/rbd/scorealign/data/midi-beeth-s5m1-25s-mono.wav > output.txt
|
||||
diff output.txt /home/rbd/wdh/music/output.txt | less
|
||||
|
||||
bigtest:
|
||||
./scorealign data/live-Beethoven_Symphony_No5_Mvt1.wav data/midi-Beethoven_Symphony_No5_Mvt1.wav
|
||||
|
||||
bigtest2:
|
||||
./scorealign data/midi-Beethoven_Symphony_No5_Mvt1.wav data/live-Beethoven_Symphony_No5_Mvt1.wav
|
||||
|
||||
|
||||
# DEPENDENCIES
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -1,70 +1,70 @@
|
||||
#include "stdio.h"
|
||||
#include "stdlib.h"
|
||||
#include "string.h"
|
||||
#include "math.h"
|
||||
|
||||
bool read_stuff(FILE *f, int &p, float &start, float &dur)
|
||||
{
|
||||
int n, chan, vel;
|
||||
int c;
|
||||
while ((c = getc(f)) == '#') {
|
||||
while ((c = getc(f)) != '\n' && c != EOF) ;
|
||||
}
|
||||
ungetc(c, f);
|
||||
int fields = fscanf(f, "%d %d %d %d %f %f", &n, &chan, &p, &vel, &start, &dur);
|
||||
if (fields == EOF) {
|
||||
return false;
|
||||
} else if (fields != 6) {
|
||||
printf("Error scanning file\n");
|
||||
exit(1);
|
||||
}
|
||||
while ((c = getc(f)) != '\n' && c != EOF) ;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void print_usage(char *progname)
|
||||
{
|
||||
printf("%s file1 file2\n", progname);
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
char *file1;
|
||||
char *file2;
|
||||
char *progname = strrchr(argv[0], '/');
|
||||
progname = progname ? progname + 1 : argv[0];
|
||||
if (argc < 3) {
|
||||
print_usage(progname);
|
||||
return 1;
|
||||
}
|
||||
file1 = argv[1];
|
||||
file2 = argv[2];
|
||||
FILE *f1 = fopen(file1, "r");
|
||||
FILE *f2 = fopen(file2, "r");
|
||||
int count = 0;
|
||||
float sum = 0.0;
|
||||
float sumsqr = 0.0;
|
||||
while (true) {
|
||||
int p1, p2;
|
||||
float start1, start2;
|
||||
float dur1, dur2;
|
||||
bool ok1 = read_stuff(f1, p1, start1, dur1);
|
||||
bool ok2 = read_stuff(f2, p2, start2, dur2);
|
||||
if (ok1 != ok2 || p1 != p2) {
|
||||
printf("Transcripts are not compatible\n");
|
||||
exit(1);
|
||||
}
|
||||
if (!ok1) break;
|
||||
count++;
|
||||
float diff = start2 - start1;
|
||||
sum += diff;
|
||||
sumsqr += diff * diff;
|
||||
}
|
||||
float avg = sum / count;
|
||||
float stddev = sqrt((sumsqr / count) - (avg * avg));
|
||||
printf("average error = %g\nstandard deviation = %g\n", avg, stddev);
|
||||
|
||||
return 0;
|
||||
#include "stdio.h"
|
||||
#include "stdlib.h"
|
||||
#include "string.h"
|
||||
#include "math.h"
|
||||
|
||||
bool read_stuff(FILE *f, int &p, float &start, float &dur)
|
||||
{
|
||||
int n, chan, vel;
|
||||
int c;
|
||||
while ((c = getc(f)) == '#') {
|
||||
while ((c = getc(f)) != '\n' && c != EOF) ;
|
||||
}
|
||||
ungetc(c, f);
|
||||
int fields = fscanf(f, "%d %d %d %d %f %f", &n, &chan, &p, &vel, &start, &dur);
|
||||
if (fields == EOF) {
|
||||
return false;
|
||||
} else if (fields != 6) {
|
||||
printf("Error scanning file\n");
|
||||
exit(1);
|
||||
}
|
||||
while ((c = getc(f)) != '\n' && c != EOF) ;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void print_usage(char *progname)
|
||||
{
|
||||
printf("%s file1 file2\n", progname);
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
char *file1;
|
||||
char *file2;
|
||||
char *progname = strrchr(argv[0], '/');
|
||||
progname = progname ? progname + 1 : argv[0];
|
||||
if (argc < 3) {
|
||||
print_usage(progname);
|
||||
return 1;
|
||||
}
|
||||
file1 = argv[1];
|
||||
file2 = argv[2];
|
||||
FILE *f1 = fopen(file1, "r");
|
||||
FILE *f2 = fopen(file2, "r");
|
||||
int count = 0;
|
||||
float sum = 0.0;
|
||||
float sumsqr = 0.0;
|
||||
while (true) {
|
||||
int p1, p2;
|
||||
float start1, start2;
|
||||
float dur1, dur2;
|
||||
bool ok1 = read_stuff(f1, p1, start1, dur1);
|
||||
bool ok2 = read_stuff(f2, p2, start2, dur2);
|
||||
if (ok1 != ok2 || p1 != p2) {
|
||||
printf("Transcripts are not compatible\n");
|
||||
exit(1);
|
||||
}
|
||||
if (!ok1) break;
|
||||
count++;
|
||||
float diff = start2 - start1;
|
||||
sum += diff;
|
||||
sumsqr += diff * diff;
|
||||
}
|
||||
float avg = sum / count;
|
||||
float stddev = sqrt((sumsqr / count) - (avg * avg));
|
||||
printf("average error = %g\nstandard deviation = %g\n", avg, stddev);
|
||||
|
||||
return 0;
|
||||
}
|
@@ -1,20 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "compare_transcripts", "compare_transcripts.vcproj", "{C7876B12-4C66-4C26-9318-3363CD9A3FE9}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C7876B12-4C66-4C26-9318-3363CD9A3FE9}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{C7876B12-4C66-4C26-9318-3363CD9A3FE9}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{C7876B12-4C66-4C26-9318-3363CD9A3FE9}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{C7876B12-4C66-4C26-9318-3363CD9A3FE9}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "compare_transcripts", "compare_transcripts.vcproj", "{C7876B12-4C66-4C26-9318-3363CD9A3FE9}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C7876B12-4C66-4C26-9318-3363CD9A3FE9}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{C7876B12-4C66-4C26-9318-3363CD9A3FE9}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{C7876B12-4C66-4C26-9318-3363CD9A3FE9}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{C7876B12-4C66-4C26-9318-3363CD9A3FE9}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
@@ -1,28 +1,28 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual C++ Express 2008
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "score-align", "score-align.vcproj", "{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{AB1E315A-3503-4EA6-8888-9652EA4A11E6} = {AB1E315A-3503-4EA6-8888-9652EA4A11E6}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libsndfile", "libsndfile\libsndfile.vcproj", "{AB1E315A-3503-4EA6-8888-9652EA4A11E6}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Release|Win32.Build.0 = Release|Win32
|
||||
{AB1E315A-3503-4EA6-8888-9652EA4A11E6}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{AB1E315A-3503-4EA6-8888-9652EA4A11E6}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{AB1E315A-3503-4EA6-8888-9652EA4A11E6}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{AB1E315A-3503-4EA6-8888-9652EA4A11E6}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual C++ Express 2008
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "score-align", "score-align.vcproj", "{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{AB1E315A-3503-4EA6-8888-9652EA4A11E6} = {AB1E315A-3503-4EA6-8888-9652EA4A11E6}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libsndfile", "libsndfile\libsndfile.vcproj", "{AB1E315A-3503-4EA6-8888-9652EA4A11E6}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Release|Win32.Build.0 = Release|Win32
|
||||
{AB1E315A-3503-4EA6-8888-9652EA4A11E6}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{AB1E315A-3503-4EA6-8888-9652EA4A11E6}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{AB1E315A-3503-4EA6-8888-9652EA4A11E6}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{AB1E315A-3503-4EA6-8888-9652EA4A11E6}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
@@ -1,19 +1,19 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual C++ Express 2010
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "scorealign-vc2010", "scorealign-vc2010.vcxproj", "{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual C++ Express 2010
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "scorealign-vc2010", "scorealign-vc2010.vcxproj", "{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
@@ -1,25 +1,25 @@
|
||||
#include "stdarg.h"
|
||||
#include "stdio.h"
|
||||
|
||||
#ifdef __linux__
|
||||
#define _vsnprintf vsnprintf
|
||||
#elif defined(__MACH__)
|
||||
#define _vsnprintf vsnprintf
|
||||
#else
|
||||
#include "crtdbg.h"
|
||||
#endif
|
||||
|
||||
void trace(char *format, ...)
|
||||
{
|
||||
char msg[256];
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
_vsnprintf(msg, 256, format, args);
|
||||
va_end(args);
|
||||
|
||||
#if defined(_DEBUG) && !defined(__linux__)
|
||||
_CrtDbgReport(_CRT_WARN, NULL, NULL, NULL, msg);
|
||||
#else
|
||||
printf(msg);
|
||||
#endif
|
||||
}
|
||||
#include "stdarg.h"
|
||||
#include "stdio.h"
|
||||
|
||||
#ifdef __linux__
|
||||
#define _vsnprintf vsnprintf
|
||||
#elif defined(__MACH__)
|
||||
#define _vsnprintf vsnprintf
|
||||
#else
|
||||
#include "crtdbg.h"
|
||||
#endif
|
||||
|
||||
void trace(char *format, ...)
|
||||
{
|
||||
char msg[256];
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
_vsnprintf(msg, 256, format, args);
|
||||
va_end(args);
|
||||
|
||||
#if defined(_DEBUG) && !defined(__linux__)
|
||||
_CrtDbgReport(_CRT_WARN, NULL, NULL, NULL, msg);
|
||||
#else
|
||||
printf(msg);
|
||||
#endif
|
||||
}
|
||||
|
@@ -1,2 +1,2 @@
|
||||
void trace(char *format, ...);
|
||||
|
||||
void trace(char *format, ...);
|
||||
|
||||
|
Reference in New Issue
Block a user