moved jack and sndfile to aubioext
authorPaul Brossier <piem@altern.org>
Mon, 6 Dec 2004 19:05:28 +0000 (19:05 +0000)
committerPaul Brossier <piem@altern.org>
Mon, 6 Dec 2004 19:05:28 +0000 (19:05 +0000)
17 files changed:
examples/aubioonset.c
ext/Makefile.am [new file with mode: 0644]
ext/Makefile.in [new file with mode: 0644]
ext/jackio.c [new file with mode: 0644]
ext/jackio.h [new file with mode: 0644]
ext/sndfileio.c [new file with mode: 0644]
ext/sndfileio.h [new file with mode: 0644]
src/Makefile.am
src/Makefile.in
src/aubio.h
src/jackio.c [deleted file]
src/jackio.h [deleted file]
src/sndfileio.c [deleted file]
src/sndfileio.h [deleted file]
swig/Makefile.am
swig/Makefile.in
swig/aubio.i

index 36c8aa4..40be246 100644 (file)
@@ -22,6 +22,7 @@
 #include <getopt.h>
 #include <unistd.h>
 #include "aubio.h"
+#include "aubioext.h"
 #include "utils.h"
 
 int aubio_process(float **input, float **output, int nframes);
diff --git a/ext/Makefile.am b/ext/Makefile.am
new file mode 100644 (file)
index 0000000..637a944
--- /dev/null
@@ -0,0 +1,44 @@
+EXTRA_DIST = aubio_priv.h
+
+pkginclude_HEADERS = aubioext.h \
+       jackio.h \
+       sndfileio.h \
+       midi/midi.h \
+       midi/list.h \
+       midi/timer.h \
+       midi/midi_file.h \
+       midi/midi_driver.h \
+       midi/midi_event.h \
+       midi/midi_track.h \
+       midi/midi_player.h \
+       midi/midi_parser.h
+
+lib_LTLIBRARIES = libaubioext.la 
+libaubioext_la_SOURCES = aubioext.h \
+       jackio.c \
+       jackio.h \
+       sndfileio.c \
+       sndfileio.h \
+       midi/midi.c \
+       midi/midi.h \
+       midi/list.c \
+       midi/list.h \
+       midi/timer.c \
+       midi/timer.h \
+       midi/midi_alsa_seq.c \
+       midi/midi_alsa_raw.c \
+       midi/midi_file.c \
+       midi/midi_file.h \
+       midi/midi_event.c \
+       midi/midi_event.h \
+       midi/midi_track.c \
+       midi/midi_track.h \
+       midi/midi_player.c \
+       midi/midi_player.h \
+       midi/midi_parser.c \
+       midi/midi_parser.h \
+       midi/midi_driver.h \
+       midi/midi_driver.c
+
+AM_CFLAGS = @SNDLIB_CFLAGS@ @JACK_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@ @ALSA_CFLAGS@ @LADCCA_CFLAGS@
+libaubioext_la_LIBADD = @SNDLIB_LIBS@ @JACK_LIBS@ @FFTWLIB_LIBS@ @SAMPLERATE_LIBS@ @ALSA_LIBS@ @LADCCA_LIBS@ @LTLIBOBJS@
diff --git a/ext/Makefile.in b/ext/Makefile.in
new file mode 100644 (file)
index 0000000..96b3711
--- /dev/null
@@ -0,0 +1,906 @@
+# Makefile.in generated by automake 1.7.9 from Makefile.am.
+# @configure_input@
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+# Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ..
+
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_triplet = @host@
+ACLOCAL = @ACLOCAL@
+ALSA_CFLAGS = @ALSA_CFLAGS@
+ALSA_LIBS = @ALSA_LIBS@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+FFTWLIB_CFLAGS = @FFTWLIB_CFLAGS@
+FFTWLIB_LIBS = @FFTWLIB_LIBS@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+JACK_CFLAGS = @JACK_CFLAGS@
+JACK_LIBS = @JACK_LIBS@
+LADCCA_CFLAGS = @LADCCA_CFLAGS@
+LADCCA_LIBS = @LADCCA_LIBS@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PYTHON = @PYTHON@
+PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
+PYTHON_PLATFORM = @PYTHON_PLATFORM@
+PYTHON_PREFIX = @PYTHON_PREFIX@
+PYTHON_VERSION = @PYTHON_VERSION@
+RANLIB = @RANLIB@
+SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@
+SAMPLERATE_LIBS = @SAMPLERATE_LIBS@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SNDLIB_CFLAGS = @SNDLIB_CFLAGS@
+SNDLIB_LIBS = @SNDLIB_LIBS@
+STRIP = @STRIP@
+VERSION = @VERSION@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+ac_ct_RANLIB = @ac_ct_RANLIB@
+ac_ct_STRIP = @ac_ct_STRIP@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+oldincludedir = @oldincludedir@
+pkgpyexecdir = @pkgpyexecdir@
+pkgpythondir = @pkgpythondir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+pyexecdir = @pyexecdir@
+pythondir = @pythondir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+EXTRA_DIST = aubio_priv.h
+
+pkginclude_HEADERS = aubioext.h \
+       jackio.h \
+       sndfileio.h \
+       midi/midi.h \
+       midi/list.h \
+       midi/timer.h \
+       midi/midi_file.h \
+       midi/midi_driver.h \
+       midi/midi_event.h \
+       midi/midi_track.h \
+       midi/midi_player.h \
+       midi/midi_parser.h
+
+
+lib_LTLIBRARIES = libaubioext.la 
+libaubioext_la_SOURCES = aubioext.h \
+       jackio.c \
+       jackio.h \
+       sndfileio.c \
+       sndfileio.h \
+       midi/midi.c \
+       midi/midi.h \
+       midi/list.c \
+       midi/list.h \
+       midi/timer.c \
+       midi/timer.h \
+       midi/midi_alsa_seq.c \
+       midi/midi_alsa_raw.c \
+       midi/midi_file.c \
+       midi/midi_file.h \
+       midi/midi_event.c \
+       midi/midi_event.h \
+       midi/midi_track.c \
+       midi/midi_track.h \
+       midi/midi_player.c \
+       midi/midi_player.h \
+       midi/midi_parser.c \
+       midi/midi_parser.h \
+       midi/midi_driver.h \
+       midi/midi_driver.c
+
+
+AM_CFLAGS = @SNDLIB_CFLAGS@ @JACK_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@ @ALSA_CFLAGS@ @LADCCA_CFLAGS@
+libaubioext_la_LIBADD = @SNDLIB_LIBS@ @JACK_LIBS@ @FFTWLIB_LIBS@ @SAMPLERATE_LIBS@ @ALSA_LIBS@ @LADCCA_LIBS@ @LTLIBOBJS@
+subdir = ext
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/src/config.h
+CONFIG_CLEAN_FILES =
+LTLIBRARIES = $(lib_LTLIBRARIES)
+
+libaubioext_la_LDFLAGS =
+libaubioext_la_DEPENDENCIES = @LTLIBOBJS@
+am_libaubioext_la_OBJECTS = jackio.lo sndfileio.lo midi.lo list.lo \
+       timer.lo midi_alsa_seq.lo midi_alsa_raw.lo midi_file.lo \
+       midi_event.lo midi_track.lo midi_player.lo midi_parser.lo \
+       midi_driver.lo
+libaubioext_la_OBJECTS = $(am_libaubioext_la_OBJECTS)
+
+DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)/src
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/jackio.Plo ./$(DEPDIR)/list.Plo \
+@AMDEP_TRUE@   ./$(DEPDIR)/midi.Plo ./$(DEPDIR)/midi_alsa_raw.Plo \
+@AMDEP_TRUE@   ./$(DEPDIR)/midi_alsa_seq.Plo \
+@AMDEP_TRUE@   ./$(DEPDIR)/midi_driver.Plo \
+@AMDEP_TRUE@   ./$(DEPDIR)/midi_event.Plo \
+@AMDEP_TRUE@   ./$(DEPDIR)/midi_file.Plo \
+@AMDEP_TRUE@   ./$(DEPDIR)/midi_parser.Plo \
+@AMDEP_TRUE@   ./$(DEPDIR)/midi_player.Plo \
+@AMDEP_TRUE@   ./$(DEPDIR)/midi_track.Plo \
+@AMDEP_TRUE@   ./$(DEPDIR)/sndfileio.Plo ./$(DEPDIR)/timer.Plo
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+       $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+       $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+DIST_SOURCES = $(libaubioext_la_SOURCES)
+HEADERS = $(pkginclude_HEADERS)
+
+DIST_COMMON = $(pkginclude_HEADERS) $(srcdir)/Makefile.in Makefile.am
+SOURCES = $(libaubioext_la_SOURCES)
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
+       cd $(top_srcdir) && \
+         $(AUTOMAKE) --gnu  ext/Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+       cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+libLTLIBRARIES_INSTALL = $(INSTALL)
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+       @$(NORMAL_INSTALL)
+       $(mkinstalldirs) $(DESTDIR)$(libdir)
+       @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+         if test -f $$p; then \
+           f="`echo $$p | sed -e 's|^.*/||'`"; \
+           echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f"; \
+           $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f; \
+         else :; fi; \
+       done
+
+uninstall-libLTLIBRARIES:
+       @$(NORMAL_UNINSTALL)
+       @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+           p="`echo $$p | sed -e 's|^.*/||'`"; \
+         echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \
+         $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
+       done
+
+clean-libLTLIBRARIES:
+       -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+       @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+         dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+         test "$$dir" = "$$p" && dir=.; \
+         echo "rm -f \"$${dir}/so_locations\""; \
+         rm -f "$${dir}/so_locations"; \
+       done
+libaubioext.la: $(libaubioext_la_OBJECTS) $(libaubioext_la_DEPENDENCIES) 
+       $(LINK) -rpath $(libdir) $(libaubioext_la_LDFLAGS) $(libaubioext_la_OBJECTS) $(libaubioext_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+       -rm -f *.$(OBJEXT) core *.core
+
+distclean-compile:
+       -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jackio.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/list.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midi.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midi_alsa_raw.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midi_alsa_seq.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midi_driver.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midi_event.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midi_file.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midi_parser.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midi_player.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/midi_track.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sndfileio.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timer.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@   if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
+@am__fastdepCC_TRUE@     -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
+
+.c.obj:
+@am__fastdepCC_TRUE@   if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
+@am__fastdepCC_TRUE@     -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
+
+.c.lo:
+@am__fastdepCC_TRUE@   if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
+@am__fastdepCC_TRUE@     -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
+
+midi.o: midi/midi.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi.o -MD -MP -MF "$(DEPDIR)/midi.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi.o `test -f 'midi/midi.c' || echo '$(srcdir)/'`midi/midi.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi.Tpo" "$(DEPDIR)/midi.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi.c' object='midi.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi.Po' tmpdepfile='$(DEPDIR)/midi.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi.o `test -f 'midi/midi.c' || echo '$(srcdir)/'`midi/midi.c
+
+midi.obj: midi/midi.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi.obj -MD -MP -MF "$(DEPDIR)/midi.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi.obj `if test -f 'midi/midi.c'; then $(CYGPATH_W) 'midi/midi.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi.c'; fi`; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi.Tpo" "$(DEPDIR)/midi.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi.c' object='midi.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi.Po' tmpdepfile='$(DEPDIR)/midi.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi.obj `if test -f 'midi/midi.c'; then $(CYGPATH_W) 'midi/midi.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi.c'; fi`
+
+midi.lo: midi/midi.c
+@am__fastdepCC_TRUE@   if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi.lo -MD -MP -MF "$(DEPDIR)/midi.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi.lo `test -f 'midi/midi.c' || echo '$(srcdir)/'`midi/midi.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi.Tpo" "$(DEPDIR)/midi.Plo"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi.c' object='midi.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi.Plo' tmpdepfile='$(DEPDIR)/midi.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi.lo `test -f 'midi/midi.c' || echo '$(srcdir)/'`midi/midi.c
+
+list.o: midi/list.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT list.o -MD -MP -MF "$(DEPDIR)/list.Tpo" \
+@am__fastdepCC_TRUE@     -c -o list.o `test -f 'midi/list.c' || echo '$(srcdir)/'`midi/list.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/list.Tpo" "$(DEPDIR)/list.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/list.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/list.c' object='list.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/list.Po' tmpdepfile='$(DEPDIR)/list.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o list.o `test -f 'midi/list.c' || echo '$(srcdir)/'`midi/list.c
+
+list.obj: midi/list.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT list.obj -MD -MP -MF "$(DEPDIR)/list.Tpo" \
+@am__fastdepCC_TRUE@     -c -o list.obj `if test -f 'midi/list.c'; then $(CYGPATH_W) 'midi/list.c'; else $(CYGPATH_W) '$(srcdir)/midi/list.c'; fi`; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/list.Tpo" "$(DEPDIR)/list.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/list.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/list.c' object='list.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/list.Po' tmpdepfile='$(DEPDIR)/list.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o list.obj `if test -f 'midi/list.c'; then $(CYGPATH_W) 'midi/list.c'; else $(CYGPATH_W) '$(srcdir)/midi/list.c'; fi`
+
+list.lo: midi/list.c
+@am__fastdepCC_TRUE@   if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT list.lo -MD -MP -MF "$(DEPDIR)/list.Tpo" \
+@am__fastdepCC_TRUE@     -c -o list.lo `test -f 'midi/list.c' || echo '$(srcdir)/'`midi/list.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/list.Tpo" "$(DEPDIR)/list.Plo"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/list.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/list.c' object='list.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/list.Plo' tmpdepfile='$(DEPDIR)/list.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o list.lo `test -f 'midi/list.c' || echo '$(srcdir)/'`midi/list.c
+
+timer.o: midi/timer.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT timer.o -MD -MP -MF "$(DEPDIR)/timer.Tpo" \
+@am__fastdepCC_TRUE@     -c -o timer.o `test -f 'midi/timer.c' || echo '$(srcdir)/'`midi/timer.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/timer.Tpo" "$(DEPDIR)/timer.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/timer.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/timer.c' object='timer.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/timer.Po' tmpdepfile='$(DEPDIR)/timer.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o timer.o `test -f 'midi/timer.c' || echo '$(srcdir)/'`midi/timer.c
+
+timer.obj: midi/timer.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT timer.obj -MD -MP -MF "$(DEPDIR)/timer.Tpo" \
+@am__fastdepCC_TRUE@     -c -o timer.obj `if test -f 'midi/timer.c'; then $(CYGPATH_W) 'midi/timer.c'; else $(CYGPATH_W) '$(srcdir)/midi/timer.c'; fi`; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/timer.Tpo" "$(DEPDIR)/timer.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/timer.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/timer.c' object='timer.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/timer.Po' tmpdepfile='$(DEPDIR)/timer.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o timer.obj `if test -f 'midi/timer.c'; then $(CYGPATH_W) 'midi/timer.c'; else $(CYGPATH_W) '$(srcdir)/midi/timer.c'; fi`
+
+timer.lo: midi/timer.c
+@am__fastdepCC_TRUE@   if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT timer.lo -MD -MP -MF "$(DEPDIR)/timer.Tpo" \
+@am__fastdepCC_TRUE@     -c -o timer.lo `test -f 'midi/timer.c' || echo '$(srcdir)/'`midi/timer.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/timer.Tpo" "$(DEPDIR)/timer.Plo"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/timer.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/timer.c' object='timer.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/timer.Plo' tmpdepfile='$(DEPDIR)/timer.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o timer.lo `test -f 'midi/timer.c' || echo '$(srcdir)/'`midi/timer.c
+
+midi_alsa_seq.o: midi/midi_alsa_seq.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_alsa_seq.o -MD -MP -MF "$(DEPDIR)/midi_alsa_seq.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_alsa_seq.o `test -f 'midi/midi_alsa_seq.c' || echo '$(srcdir)/'`midi/midi_alsa_seq.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_alsa_seq.Tpo" "$(DEPDIR)/midi_alsa_seq.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_alsa_seq.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_alsa_seq.c' object='midi_alsa_seq.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_alsa_seq.Po' tmpdepfile='$(DEPDIR)/midi_alsa_seq.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_alsa_seq.o `test -f 'midi/midi_alsa_seq.c' || echo '$(srcdir)/'`midi/midi_alsa_seq.c
+
+midi_alsa_seq.obj: midi/midi_alsa_seq.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_alsa_seq.obj -MD -MP -MF "$(DEPDIR)/midi_alsa_seq.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_alsa_seq.obj `if test -f 'midi/midi_alsa_seq.c'; then $(CYGPATH_W) 'midi/midi_alsa_seq.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_alsa_seq.c'; fi`; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_alsa_seq.Tpo" "$(DEPDIR)/midi_alsa_seq.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_alsa_seq.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_alsa_seq.c' object='midi_alsa_seq.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_alsa_seq.Po' tmpdepfile='$(DEPDIR)/midi_alsa_seq.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_alsa_seq.obj `if test -f 'midi/midi_alsa_seq.c'; then $(CYGPATH_W) 'midi/midi_alsa_seq.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_alsa_seq.c'; fi`
+
+midi_alsa_seq.lo: midi/midi_alsa_seq.c
+@am__fastdepCC_TRUE@   if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_alsa_seq.lo -MD -MP -MF "$(DEPDIR)/midi_alsa_seq.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_alsa_seq.lo `test -f 'midi/midi_alsa_seq.c' || echo '$(srcdir)/'`midi/midi_alsa_seq.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_alsa_seq.Tpo" "$(DEPDIR)/midi_alsa_seq.Plo"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_alsa_seq.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_alsa_seq.c' object='midi_alsa_seq.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_alsa_seq.Plo' tmpdepfile='$(DEPDIR)/midi_alsa_seq.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_alsa_seq.lo `test -f 'midi/midi_alsa_seq.c' || echo '$(srcdir)/'`midi/midi_alsa_seq.c
+
+midi_alsa_raw.o: midi/midi_alsa_raw.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_alsa_raw.o -MD -MP -MF "$(DEPDIR)/midi_alsa_raw.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_alsa_raw.o `test -f 'midi/midi_alsa_raw.c' || echo '$(srcdir)/'`midi/midi_alsa_raw.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_alsa_raw.Tpo" "$(DEPDIR)/midi_alsa_raw.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_alsa_raw.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_alsa_raw.c' object='midi_alsa_raw.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_alsa_raw.Po' tmpdepfile='$(DEPDIR)/midi_alsa_raw.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_alsa_raw.o `test -f 'midi/midi_alsa_raw.c' || echo '$(srcdir)/'`midi/midi_alsa_raw.c
+
+midi_alsa_raw.obj: midi/midi_alsa_raw.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_alsa_raw.obj -MD -MP -MF "$(DEPDIR)/midi_alsa_raw.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_alsa_raw.obj `if test -f 'midi/midi_alsa_raw.c'; then $(CYGPATH_W) 'midi/midi_alsa_raw.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_alsa_raw.c'; fi`; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_alsa_raw.Tpo" "$(DEPDIR)/midi_alsa_raw.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_alsa_raw.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_alsa_raw.c' object='midi_alsa_raw.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_alsa_raw.Po' tmpdepfile='$(DEPDIR)/midi_alsa_raw.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_alsa_raw.obj `if test -f 'midi/midi_alsa_raw.c'; then $(CYGPATH_W) 'midi/midi_alsa_raw.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_alsa_raw.c'; fi`
+
+midi_alsa_raw.lo: midi/midi_alsa_raw.c
+@am__fastdepCC_TRUE@   if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_alsa_raw.lo -MD -MP -MF "$(DEPDIR)/midi_alsa_raw.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_alsa_raw.lo `test -f 'midi/midi_alsa_raw.c' || echo '$(srcdir)/'`midi/midi_alsa_raw.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_alsa_raw.Tpo" "$(DEPDIR)/midi_alsa_raw.Plo"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_alsa_raw.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_alsa_raw.c' object='midi_alsa_raw.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_alsa_raw.Plo' tmpdepfile='$(DEPDIR)/midi_alsa_raw.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_alsa_raw.lo `test -f 'midi/midi_alsa_raw.c' || echo '$(srcdir)/'`midi/midi_alsa_raw.c
+
+midi_file.o: midi/midi_file.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_file.o -MD -MP -MF "$(DEPDIR)/midi_file.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_file.o `test -f 'midi/midi_file.c' || echo '$(srcdir)/'`midi/midi_file.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_file.Tpo" "$(DEPDIR)/midi_file.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_file.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_file.c' object='midi_file.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_file.Po' tmpdepfile='$(DEPDIR)/midi_file.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_file.o `test -f 'midi/midi_file.c' || echo '$(srcdir)/'`midi/midi_file.c
+
+midi_file.obj: midi/midi_file.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_file.obj -MD -MP -MF "$(DEPDIR)/midi_file.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_file.obj `if test -f 'midi/midi_file.c'; then $(CYGPATH_W) 'midi/midi_file.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_file.c'; fi`; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_file.Tpo" "$(DEPDIR)/midi_file.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_file.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_file.c' object='midi_file.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_file.Po' tmpdepfile='$(DEPDIR)/midi_file.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_file.obj `if test -f 'midi/midi_file.c'; then $(CYGPATH_W) 'midi/midi_file.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_file.c'; fi`
+
+midi_file.lo: midi/midi_file.c
+@am__fastdepCC_TRUE@   if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_file.lo -MD -MP -MF "$(DEPDIR)/midi_file.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_file.lo `test -f 'midi/midi_file.c' || echo '$(srcdir)/'`midi/midi_file.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_file.Tpo" "$(DEPDIR)/midi_file.Plo"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_file.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_file.c' object='midi_file.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_file.Plo' tmpdepfile='$(DEPDIR)/midi_file.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_file.lo `test -f 'midi/midi_file.c' || echo '$(srcdir)/'`midi/midi_file.c
+
+midi_event.o: midi/midi_event.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_event.o -MD -MP -MF "$(DEPDIR)/midi_event.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_event.o `test -f 'midi/midi_event.c' || echo '$(srcdir)/'`midi/midi_event.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_event.Tpo" "$(DEPDIR)/midi_event.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_event.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_event.c' object='midi_event.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_event.Po' tmpdepfile='$(DEPDIR)/midi_event.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_event.o `test -f 'midi/midi_event.c' || echo '$(srcdir)/'`midi/midi_event.c
+
+midi_event.obj: midi/midi_event.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_event.obj -MD -MP -MF "$(DEPDIR)/midi_event.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_event.obj `if test -f 'midi/midi_event.c'; then $(CYGPATH_W) 'midi/midi_event.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_event.c'; fi`; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_event.Tpo" "$(DEPDIR)/midi_event.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_event.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_event.c' object='midi_event.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_event.Po' tmpdepfile='$(DEPDIR)/midi_event.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_event.obj `if test -f 'midi/midi_event.c'; then $(CYGPATH_W) 'midi/midi_event.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_event.c'; fi`
+
+midi_event.lo: midi/midi_event.c
+@am__fastdepCC_TRUE@   if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_event.lo -MD -MP -MF "$(DEPDIR)/midi_event.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_event.lo `test -f 'midi/midi_event.c' || echo '$(srcdir)/'`midi/midi_event.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_event.Tpo" "$(DEPDIR)/midi_event.Plo"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_event.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_event.c' object='midi_event.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_event.Plo' tmpdepfile='$(DEPDIR)/midi_event.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_event.lo `test -f 'midi/midi_event.c' || echo '$(srcdir)/'`midi/midi_event.c
+
+midi_track.o: midi/midi_track.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_track.o -MD -MP -MF "$(DEPDIR)/midi_track.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_track.o `test -f 'midi/midi_track.c' || echo '$(srcdir)/'`midi/midi_track.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_track.Tpo" "$(DEPDIR)/midi_track.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_track.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_track.c' object='midi_track.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_track.Po' tmpdepfile='$(DEPDIR)/midi_track.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_track.o `test -f 'midi/midi_track.c' || echo '$(srcdir)/'`midi/midi_track.c
+
+midi_track.obj: midi/midi_track.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_track.obj -MD -MP -MF "$(DEPDIR)/midi_track.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_track.obj `if test -f 'midi/midi_track.c'; then $(CYGPATH_W) 'midi/midi_track.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_track.c'; fi`; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_track.Tpo" "$(DEPDIR)/midi_track.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_track.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_track.c' object='midi_track.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_track.Po' tmpdepfile='$(DEPDIR)/midi_track.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_track.obj `if test -f 'midi/midi_track.c'; then $(CYGPATH_W) 'midi/midi_track.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_track.c'; fi`
+
+midi_track.lo: midi/midi_track.c
+@am__fastdepCC_TRUE@   if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_track.lo -MD -MP -MF "$(DEPDIR)/midi_track.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_track.lo `test -f 'midi/midi_track.c' || echo '$(srcdir)/'`midi/midi_track.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_track.Tpo" "$(DEPDIR)/midi_track.Plo"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_track.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_track.c' object='midi_track.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_track.Plo' tmpdepfile='$(DEPDIR)/midi_track.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_track.lo `test -f 'midi/midi_track.c' || echo '$(srcdir)/'`midi/midi_track.c
+
+midi_player.o: midi/midi_player.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_player.o -MD -MP -MF "$(DEPDIR)/midi_player.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_player.o `test -f 'midi/midi_player.c' || echo '$(srcdir)/'`midi/midi_player.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_player.Tpo" "$(DEPDIR)/midi_player.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_player.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_player.c' object='midi_player.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_player.Po' tmpdepfile='$(DEPDIR)/midi_player.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_player.o `test -f 'midi/midi_player.c' || echo '$(srcdir)/'`midi/midi_player.c
+
+midi_player.obj: midi/midi_player.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_player.obj -MD -MP -MF "$(DEPDIR)/midi_player.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_player.obj `if test -f 'midi/midi_player.c'; then $(CYGPATH_W) 'midi/midi_player.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_player.c'; fi`; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_player.Tpo" "$(DEPDIR)/midi_player.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_player.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_player.c' object='midi_player.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_player.Po' tmpdepfile='$(DEPDIR)/midi_player.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_player.obj `if test -f 'midi/midi_player.c'; then $(CYGPATH_W) 'midi/midi_player.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_player.c'; fi`
+
+midi_player.lo: midi/midi_player.c
+@am__fastdepCC_TRUE@   if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_player.lo -MD -MP -MF "$(DEPDIR)/midi_player.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_player.lo `test -f 'midi/midi_player.c' || echo '$(srcdir)/'`midi/midi_player.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_player.Tpo" "$(DEPDIR)/midi_player.Plo"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_player.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_player.c' object='midi_player.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_player.Plo' tmpdepfile='$(DEPDIR)/midi_player.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_player.lo `test -f 'midi/midi_player.c' || echo '$(srcdir)/'`midi/midi_player.c
+
+midi_parser.o: midi/midi_parser.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_parser.o -MD -MP -MF "$(DEPDIR)/midi_parser.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_parser.o `test -f 'midi/midi_parser.c' || echo '$(srcdir)/'`midi/midi_parser.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_parser.Tpo" "$(DEPDIR)/midi_parser.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_parser.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_parser.c' object='midi_parser.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_parser.Po' tmpdepfile='$(DEPDIR)/midi_parser.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_parser.o `test -f 'midi/midi_parser.c' || echo '$(srcdir)/'`midi/midi_parser.c
+
+midi_parser.obj: midi/midi_parser.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_parser.obj -MD -MP -MF "$(DEPDIR)/midi_parser.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_parser.obj `if test -f 'midi/midi_parser.c'; then $(CYGPATH_W) 'midi/midi_parser.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_parser.c'; fi`; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_parser.Tpo" "$(DEPDIR)/midi_parser.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_parser.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_parser.c' object='midi_parser.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_parser.Po' tmpdepfile='$(DEPDIR)/midi_parser.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_parser.obj `if test -f 'midi/midi_parser.c'; then $(CYGPATH_W) 'midi/midi_parser.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_parser.c'; fi`
+
+midi_parser.lo: midi/midi_parser.c
+@am__fastdepCC_TRUE@   if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_parser.lo -MD -MP -MF "$(DEPDIR)/midi_parser.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_parser.lo `test -f 'midi/midi_parser.c' || echo '$(srcdir)/'`midi/midi_parser.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_parser.Tpo" "$(DEPDIR)/midi_parser.Plo"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_parser.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_parser.c' object='midi_parser.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_parser.Plo' tmpdepfile='$(DEPDIR)/midi_parser.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_parser.lo `test -f 'midi/midi_parser.c' || echo '$(srcdir)/'`midi/midi_parser.c
+
+midi_driver.o: midi/midi_driver.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_driver.o -MD -MP -MF "$(DEPDIR)/midi_driver.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_driver.o `test -f 'midi/midi_driver.c' || echo '$(srcdir)/'`midi/midi_driver.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_driver.Tpo" "$(DEPDIR)/midi_driver.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_driver.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_driver.c' object='midi_driver.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_driver.Po' tmpdepfile='$(DEPDIR)/midi_driver.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_driver.o `test -f 'midi/midi_driver.c' || echo '$(srcdir)/'`midi/midi_driver.c
+
+midi_driver.obj: midi/midi_driver.c
+@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_driver.obj -MD -MP -MF "$(DEPDIR)/midi_driver.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_driver.obj `if test -f 'midi/midi_driver.c'; then $(CYGPATH_W) 'midi/midi_driver.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_driver.c'; fi`; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_driver.Tpo" "$(DEPDIR)/midi_driver.Po"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_driver.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_driver.c' object='midi_driver.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_driver.Po' tmpdepfile='$(DEPDIR)/midi_driver.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_driver.obj `if test -f 'midi/midi_driver.c'; then $(CYGPATH_W) 'midi/midi_driver.c'; else $(CYGPATH_W) '$(srcdir)/midi/midi_driver.c'; fi`
+
+midi_driver.lo: midi/midi_driver.c
+@am__fastdepCC_TRUE@   if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT midi_driver.lo -MD -MP -MF "$(DEPDIR)/midi_driver.Tpo" \
+@am__fastdepCC_TRUE@     -c -o midi_driver.lo `test -f 'midi/midi_driver.c' || echo '$(srcdir)/'`midi/midi_driver.c; \
+@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/midi_driver.Tpo" "$(DEPDIR)/midi_driver.Plo"; \
+@am__fastdepCC_TRUE@   else rm -f "$(DEPDIR)/midi_driver.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@   fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='midi/midi_driver.c' object='midi_driver.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      depfile='$(DEPDIR)/midi_driver.Plo' tmpdepfile='$(DEPDIR)/midi_driver.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o midi_driver.lo `test -f 'midi/midi_driver.c' || echo '$(srcdir)/'`midi/midi_driver.c
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+
+distclean-libtool:
+       -rm -f libtool
+uninstall-info-am:
+pkgincludeHEADERS_INSTALL = $(INSTALL_HEADER)
+install-pkgincludeHEADERS: $(pkginclude_HEADERS)
+       @$(NORMAL_INSTALL)
+       $(mkinstalldirs) $(DESTDIR)$(pkgincludedir)
+       @list='$(pkginclude_HEADERS)'; for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         f="`echo $$p | sed -e 's|^.*/||'`"; \
+         echo " $(pkgincludeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(pkgincludedir)/$$f"; \
+         $(pkgincludeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(pkgincludedir)/$$f; \
+       done
+
+uninstall-pkgincludeHEADERS:
+       @$(NORMAL_UNINSTALL)
+       @list='$(pkginclude_HEADERS)'; for p in $$list; do \
+         f="`echo $$p | sed -e 's|^.*/||'`"; \
+         echo " rm -f $(DESTDIR)$(pkgincludedir)/$$f"; \
+         rm -f $(DESTDIR)$(pkgincludedir)/$$f; \
+       done
+
+ETAGS = etags
+ETAGSFLAGS =
+
+CTAGS = ctags
+CTAGSFLAGS =
+
+tags: TAGS
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+       list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       mkid -fID $$unique
+
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+               $(TAGS_FILES) $(LISP)
+       tags=; \
+       here=`pwd`; \
+       list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       test -z "$(ETAGS_ARGS)$$tags$$unique" \
+         || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+            $$tags $$unique
+
+ctags: CTAGS
+CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+               $(TAGS_FILES) $(LISP)
+       tags=; \
+       here=`pwd`; \
+       list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       test -z "$(CTAGS_ARGS)$$tags$$unique" \
+         || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+            $$tags $$unique
+
+GTAGS:
+       here=`$(am__cd) $(top_builddir) && pwd` \
+         && cd $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+distdir: $(DISTFILES)
+       $(mkinstalldirs) $(distdir)/midi
+       @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+       list='$(DISTFILES)'; for file in $$list; do \
+         case $$file in \
+           $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+           $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+         esac; \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+           dir="/$$dir"; \
+           $(mkinstalldirs) "$(distdir)$$dir"; \
+         else \
+           dir=''; \
+         fi; \
+         if test -d $$d/$$file; then \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+           fi; \
+           cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+         else \
+           test -f $(distdir)/$$file \
+           || cp -p $$d/$$file $(distdir)/$$file \
+           || exit 1; \
+         fi; \
+       done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES) $(HEADERS)
+
+installdirs:
+       $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(pkgincludedir)
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+         install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+         `test -z '$(STRIP)' || \
+           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+       -rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
+       mostlyclean-am
+
+distclean: distclean-am
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+       distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-pkgincludeHEADERS
+
+install-exec-am: install-libLTLIBRARIES
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+       mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
+       uninstall-pkgincludeHEADERS
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+       clean-libLTLIBRARIES clean-libtool ctags distclean \
+       distclean-compile distclean-generic distclean-libtool \
+       distclean-tags distdir dvi dvi-am info info-am install \
+       install-am install-data install-data-am install-exec \
+       install-exec-am install-info install-info-am \
+       install-libLTLIBRARIES install-man install-pkgincludeHEADERS \
+       install-strip installcheck installcheck-am installdirs \
+       maintainer-clean maintainer-clean-generic mostlyclean \
+       mostlyclean-compile mostlyclean-generic mostlyclean-libtool pdf \
+       pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am \
+       uninstall-libLTLIBRARIES uninstall-pkgincludeHEADERS
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/ext/jackio.c b/ext/jackio.c
new file mode 100644 (file)
index 0000000..03ee2df
--- /dev/null
@@ -0,0 +1,175 @@
+/*
+   Copyright (C) 2003 Paul Brossier
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include "config.h"
+#ifdef JACK_SUPPORT
+#include <jack/jack.h>
+#include "aubio_priv.h"
+#include "jackio.h"
+
+/*typedef jack_default_audio_sample_t jack_sample_t; */
+/* work with float, never tried in double */
+typedef smpl_t jack_sample_t;
+
+/**
+ * jack device structure 
+ */
+struct _aubio_jack_t {
+  /** jack client */
+  jack_client_t *client;
+  /** jack output ports */
+  jack_port_t **oports;
+  /** jack input ports */
+  jack_port_t **iports;
+  /** jack input buffer */
+  jack_sample_t **ibufs;
+  /** jack output buffer */
+  jack_sample_t **obufs;
+  /** jack input channels */
+  uint_t ichan;
+  /** jack output channels */
+  uint_t ochan;
+  /** jack samplerate (Hz) */
+  uint_t samplerate;
+  /** jack processing function */
+  aubio_process_func_t callback; 
+};
+
+/* static memory management */
+static aubio_jack_t * aubio_jack_alloc(uint_t ichan, uint_t ochan);
+static uint_t aubio_jack_free(aubio_jack_t * jack_setup);
+/* jack callback functions */
+static int aubio_jack_process(jack_nframes_t nframes, void *arg);
+static void aubio_jack_shutdown (void *arg);
+
+aubio_jack_t * new_aubio_jack(uint_t ichan, uint_t ochan, 
+    aubio_process_func_t callback) {
+  aubio_jack_t * jack_setup = aubio_jack_alloc (ichan, ochan);
+  uint_t i;
+  char * client_name = "aubio";
+  char name[64];
+  /* initial jack client setup */
+  if ((jack_setup->client = jack_client_new (client_name)) == 0) {
+    AUBIO_ERR ("jack server not running?\n");
+    AUBIO_QUIT(AUBIO_FAIL);
+  }
+
+  /* set callbacks */
+  jack_set_process_callback (jack_setup->client, aubio_jack_process, 
+      (void*) jack_setup);
+  jack_on_shutdown (jack_setup->client, aubio_jack_shutdown, 
+      (void*) jack_setup);
+
+  /* register jack output ports */
+  for (i = 0; i < ochan; i++) 
+  {
+    AUBIO_SPRINTF(name, "out_%d", i+1);
+    AUBIO_MSG("%s\n", name);
+    if ((jack_setup->oports[i] = 
+          jack_port_register (jack_setup->client, name, 
+            JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0)) == 0) 
+    {
+      AUBIO_ERR("failed registering output port \"%s\"!\n", name);
+      jack_client_close (jack_setup->client);
+      AUBIO_QUIT(AUBIO_FAIL);
+    }
+  }
+
+  /* register jack input ports */
+  for (i = 0; i < ichan; i++) 
+  {
+    AUBIO_SPRINTF(name, "in_%d", i+1);
+    AUBIO_MSG("%s\n", name);
+    if ((jack_setup->iports[i] = 
+          jack_port_register (jack_setup->client, name, 
+            JACK_DEFAULT_AUDIO_TYPE, JackPortIsInput, 0)) == 0)
+    {
+      AUBIO_ERR("failed registering input port \"%s\"!\n", name);
+      jack_client_close (jack_setup->client);
+      AUBIO_QUIT(AUBIO_FAIL);
+    }
+  }
+
+  /* set processing callback */
+  jack_setup->callback = callback;
+  return jack_setup;
+}
+
+uint_t aubio_jack_activate(aubio_jack_t *jack_setup) {
+  /* get sample rate */
+  jack_setup->samplerate = jack_get_sample_rate (jack_setup->client);
+  /* actual jack process activation */
+  if (jack_activate (jack_setup->client)) 
+  {
+    AUBIO_ERR("jack client activation failed");
+    return 1;
+  }
+  return 0;
+}
+
+void aubio_jack_close(aubio_jack_t *jack_setup) {
+  /* bug : should disconnect all ports first */
+  jack_client_close(jack_setup->client);
+  aubio_jack_free(jack_setup);
+}
+
+/* memory management */
+static aubio_jack_t * aubio_jack_alloc(uint_t ichan, uint_t ochan) {
+  aubio_jack_t *jack_setup = AUBIO_NEW(aubio_jack_t);
+  jack_setup->ichan = ichan;
+  jack_setup->ochan = ochan;
+  jack_setup->oports = AUBIO_ARRAY(jack_port_t*, ichan); 
+  jack_setup->iports = AUBIO_ARRAY(jack_port_t*, ochan); 
+  jack_setup->ibufs  = AUBIO_ARRAY(jack_sample_t*, ichan); 
+  jack_setup->obufs  = AUBIO_ARRAY(jack_sample_t*, ochan); 
+  return jack_setup;
+}
+
+static uint_t aubio_jack_free(aubio_jack_t * jack_setup) {
+  AUBIO_FREE(jack_setup->oports);
+  AUBIO_FREE(jack_setup->iports);
+  AUBIO_FREE(jack_setup->ibufs );
+  AUBIO_FREE(jack_setup->obufs );
+  AUBIO_FREE(jack_setup);
+  return AUBIO_OK;
+}
+
+/* jack callback functions */
+static void aubio_jack_shutdown (void *arg){
+  AUBIO_ERR("jack shutdown\n");
+  AUBIO_QUIT(AUBIO_OK);
+}
+
+static int aubio_jack_process(jack_nframes_t nframes, void *arg) {
+  aubio_jack_t* dev = (aubio_jack_t *)arg;
+  uint_t i;
+  for (i=0;i<dev->ichan;i++) { 
+    /* get readable input */
+    dev->ibufs[i] = 
+      (jack_sample_t *) jack_port_get_buffer (dev->iports[i], nframes);
+    /* get writable output */
+    dev->obufs[i] = 
+      (jack_sample_t *) jack_port_get_buffer (dev->oports[i], nframes);
+  }
+  dev->callback(dev->ibufs,dev->obufs,nframes);
+  return 0;
+}
+
+
+#endif /* JACK_SUPPORT */
diff --git a/ext/jackio.h b/ext/jackio.h
new file mode 100644 (file)
index 0000000..9d0768e
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+   Copyright (C) 2003 Paul Brossier
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#ifndef JACKIO_H
+#define JACKIO_H
+
+/** 
+ * @file
+ *
+ * Jack driver for aubio
+ * 
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/** jack object */
+typedef struct _aubio_jack_t aubio_jack_t;
+/** jack process function */
+typedef int (*aubio_process_func_t)(smpl_t **input, smpl_t **output, int
+    nframes);
+
+/** jack device creation function */
+aubio_jack_t * new_aubio_jack (uint_t inchannels, uint_t outchannels,
+    aubio_process_func_t callback);
+/** activate jack client (run jackprocess function) */
+uint_t aubio_jack_activate(aubio_jack_t *jack_setup);
+/** close and delete jack client */
+void aubio_jack_close(aubio_jack_t *jack_setup);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* JACKIO_H */
diff --git a/ext/sndfileio.c b/ext/sndfileio.c
new file mode 100644 (file)
index 0000000..53af1e8
--- /dev/null
@@ -0,0 +1,207 @@
+/*
+   Copyright (C) 2003 Paul Brossier
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include <string.h>
+
+#include <sndfile.h>
+
+#include "aubio_priv.h"
+#include "sample.h"
+#include "sndfileio.h"
+#include "mathutils.h"
+
+#define MAX_CHANNELS 6
+#define MAX_SIZE 4096
+
+struct _aubio_file_t {
+        SNDFILE *handle;
+        int samplerate;
+        int channels;
+        int format;
+        float *tmpdata; /** scratch pad for interleaving/deinterleaving. */
+        int size;       /** store the size to check if realloc needed */
+};
+
+aubio_file_t * new_file_ro(const char* outputname) {
+        aubio_file_t * f = AUBIO_NEW(aubio_file_t);
+        SF_INFO sfinfo;
+        AUBIO_MEMSET(&sfinfo, 0, sizeof (sfinfo));
+
+        if (! (f->handle = sf_open (outputname, SFM_READ, &sfinfo))) {
+                AUBIO_ERR("Not able to open input file %s.\n", outputname);
+                AUBIO_ERR("%s\n",sf_strerror (NULL)); /* libsndfile err msg */
+                AUBIO_QUIT(AUBIO_FAIL);
+        }      
+
+        if (sfinfo.channels > MAX_CHANNELS) { 
+                AUBIO_ERR("Not able to process more than %d channels\n", MAX_CHANNELS);
+                AUBIO_QUIT(AUBIO_FAIL);
+        }
+
+        f->size       = MAX_SIZE*sfinfo.channels;
+        f->tmpdata    = AUBIO_ARRAY(float,f->size);
+        /* get input specs */
+        f->samplerate = sfinfo.samplerate;
+        f->channels   = sfinfo.channels;
+        f->format     = sfinfo.format;
+
+        return f;
+}
+
+int file_open_wo(aubio_file_t * f, const char* inputname) {
+        SF_INFO sfinfo;
+        memset (&sfinfo, 0, sizeof (sfinfo));
+
+        /* define file output spec */
+        sfinfo.samplerate = f->samplerate;
+        sfinfo.channels   = f->channels;
+        sfinfo.format     = f->format;
+
+        if (! (f->handle = sf_open (inputname, SFM_WRITE, &sfinfo))) {
+                AUBIO_ERR("Not able to open output file %s.\n", inputname);
+                AUBIO_ERR("%s\n",sf_strerror (NULL)); /* libsndfile err msg */
+                AUBIO_QUIT(AUBIO_FAIL);
+        }      
+
+        if (sfinfo.channels > MAX_CHANNELS) { 
+                AUBIO_ERR("Not able to process more than %d channels\n", MAX_CHANNELS);
+                AUBIO_QUIT(AUBIO_FAIL);
+        }
+        f->size       = MAX_SIZE*sfinfo.channels;
+        f->tmpdata    = AUBIO_ARRAY(float,f->size);
+        return AUBIO_OK;
+}
+
+/* setup file struct from existing one */
+aubio_file_t * new_file_wo(aubio_file_t * fmodel, const char *outputname) {
+        aubio_file_t * f = AUBIO_NEW(aubio_file_t);
+        f->samplerate    = fmodel->samplerate;
+        f->channels      = fmodel->channels;
+        f->format        = fmodel->format;
+        file_open_wo(f, outputname);
+        return f;
+}
+
+
+/* return 0 if properly closed, 1 otherwise */
+int del_file(aubio_file_t * f) {
+        if (sf_close(f->handle)) {
+                AUBIO_ERR("Error closing file.");
+                puts (sf_strerror (NULL));
+                return 1;
+        }
+        AUBIO_FREE(f->tmpdata);
+        AUBIO_FREE(f);
+        //AUBIO_DBG("File closed.\n");
+        return 0;
+}
+
+/**************************************************************
+ *
+ * Read write methods 
+ *
+ */
+
+
+/* read frames from file in data 
+ *  return the number of frames actually read */
+int file_read(aubio_file_t * f, int frames, fvec_t * read) {
+        sf_count_t read_frames;
+        int i,j, channels = f->channels;
+        int nsamples = frames*channels;
+        int aread;
+        float *pread;  
+
+        /* allocate data for de/interleaving reallocated when needed. */
+        if (nsamples >= f->size) {
+                AUBIO_ERR("Maximum file_read buffer size exceeded.");
+                return -1;
+                /*
+                AUBIO_FREE(f->tmpdata);
+                f->tmpdata = AUBIO_ARRAY(float,nsamples);
+                */
+        }
+        //f->size = nsamples;
+
+        /* do actual reading */
+        read_frames = sf_read_float (f->handle, f->tmpdata, nsamples);
+
+        aread = (int)FLOOR(read_frames/(float)channels);
+
+        /* de-interleaving data  */
+        for (i=0; i<channels; i++) {
+                pread = fvec_get_channel(read,i);
+                for (j=0; j<aread; j++) {
+                        pread[j] = f->tmpdata[channels*j+i];
+                }
+        }
+        return aread;
+}
+
+/* write 'frames' samples to file from data 
+ *   return the number of frames actually written 
+ */
+int file_write(aubio_file_t * f, int frames, fvec_t * write) {
+        sf_count_t written_frames = 0;
+        int i, j,      channels = f->channels;
+        int nsamples = channels*frames;
+        float *pwrite;
+
+        /* allocate data for de/interleaving reallocated when needed. */
+        if (nsamples >= f->size) {
+                AUBIO_ERR("Maximum file_write buffer size exceeded.");
+                return -1;
+                /*
+                AUBIO_FREE(f->tmpdata);
+                f->tmpdata = AUBIO_ARRAY(float,nsamples);
+                */
+        }
+        //f->size = nsamples;
+
+        /* interleaving data  */
+        for (i=0; i<channels; i++) {
+                pwrite = fvec_get_channel(write,i);
+                for (j=0; j<frames; j++) {
+                        f->tmpdata[channels*j+i] = pwrite[j];
+                }
+        }
+        written_frames = sf_write_float (f->handle, f->tmpdata, nsamples);
+        return written_frames/channels;
+}
+
+/*******************************************************************
+ *
+ * Get object info 
+ *
+ */
+
+uint_t aubio_file_channels(aubio_file_t * f) {
+        return f->channels;
+}
+
+uint_t aubio_file_samplerate(aubio_file_t * f) {
+        return f->samplerate;
+}
+
+void file_info(aubio_file_t * f) {
+        AUBIO_DBG("srate    : %d\n", f->samplerate);
+        AUBIO_DBG("channels : %d\n", f->channels);
+        AUBIO_DBG("format   : %d\n", f->format);
+}
+
diff --git a/ext/sndfileio.h b/ext/sndfileio.h
new file mode 100644 (file)
index 0000000..94ec1c4
--- /dev/null
@@ -0,0 +1,73 @@
+/*
+        Copyright (C) 2003 Paul Brossier
+
+        This program is free software; you can redistribute it and/or modify
+        it under the terms of the GNU General Public License as published by
+        the Free Software Foundation; either version 2 of the License, or
+        (at your option) any later version.
+
+        This program is distributed in the hope that it will be useful,
+        but WITHOUT ANY WARRANTY; without even the implied warranty of
+        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+        GNU General Public License for more details.
+
+        You should have received a copy of the GNU General Public License
+        along with this program; if not, write to the Free Software
+        Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifndef SNDFILEIO_H
+#define SNDFILEIO_H
+
+/** @file 
+ * sndfile functions
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * sndfile object
+ */
+typedef struct _aubio_file_t aubio_file_t;
+/** 
+ * Open a sound file for reading
+ */
+aubio_file_t * new_file_ro (const char * inputfile);
+/**
+ * Copy file model from previously opened sound file.
+ */
+aubio_file_t * new_file_wo(aubio_file_t * existingfile, const char * outputname);
+/** 
+ * Open a sound file for writing
+ */
+int file_open_wo (aubio_file_t * file, const char * outputname);
+/** 
+ * Read frames data from file 
+ */
+int file_read(aubio_file_t * file, int frames, fvec_t * read);
+/** 
+ * Write data of length frames to file
+ */
+int file_write(aubio_file_t * file, int frames, fvec_t * write);
+/**
+ * Close file and delete file object
+ */
+int del_file(aubio_file_t * file);
+/**
+ * Return some files facts
+ */
+void file_info(aubio_file_t * file);
+/**
+ * Return number of channel in file
+ */
+uint_t aubio_file_channels(aubio_file_t * file);
+uint_t aubio_file_samplerate(aubio_file_t * file);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
index 1311c53..1ef0e11 100644 (file)
@@ -3,9 +3,7 @@ EXTRA_DIST = aubio_priv.h
 pkginclude_HEADERS = aubio.h \
        config.h \
        types.h \
-       jackio.h \
        phasevoc.h \
-       sndfileio.h \
        mathutils.h \
        fft.h \
        sample.h \
@@ -24,12 +22,8 @@ pkginclude_HEADERS = aubio.h \
 lib_LTLIBRARIES = libaubio.la 
 libaubio_la_SOURCES = aubio.h \
        types.h \
-       jackio.c \
-       jackio.h \
        phasevoc.c \
        phasevoc.h \
-       sndfileio.c \
-       sndfileio.h \
        mathutils.c \
        mathutils.h \
        fft.c \
@@ -59,5 +53,5 @@ libaubio_la_SOURCES = aubio.h \
        filter.c \
        filter.h
 
-AM_CFLAGS = @SNDLIB_CFLAGS@ @JACK_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@ @LADCCA_CFLAGS@
-libaubio_la_LIBADD = @SNDLIB_LIBS@ @JACK_LIBS@ @FFTWLIB_LIBS@ @SAMPLERATE_LIBS@ @LADCCA_LIBS@ @LTLIBOBJS@
+AM_CFLAGS = @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@
+libaubio_la_LIBADD = @FFTWLIB_LIBS@ @SAMPLERATE_LIBS@ @LTLIBOBJS@
index 308797f..db09b58 100644 (file)
@@ -156,9 +156,7 @@ EXTRA_DIST = aubio_priv.h
 pkginclude_HEADERS = aubio.h \
        config.h \
        types.h \
-       jackio.h \
        phasevoc.h \
-       sndfileio.h \
        mathutils.h \
        fft.h \
        sample.h \
@@ -178,12 +176,8 @@ pkginclude_HEADERS = aubio.h \
 lib_LTLIBRARIES = libaubio.la 
 libaubio_la_SOURCES = aubio.h \
        types.h \
-       jackio.c \
-       jackio.h \
        phasevoc.c \
        phasevoc.h \
-       sndfileio.c \
-       sndfileio.h \
        mathutils.c \
        mathutils.h \
        fft.c \
@@ -214,8 +208,8 @@ libaubio_la_SOURCES = aubio.h \
        filter.h
 
 
-AM_CFLAGS = @SNDLIB_CFLAGS@ @JACK_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@ @LADCCA_CFLAGS@
-libaubio_la_LIBADD = @SNDLIB_LIBS@ @JACK_LIBS@ @FFTWLIB_LIBS@ @SAMPLERATE_LIBS@ @LADCCA_LIBS@ @LTLIBOBJS@
+AM_CFLAGS = @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@
+libaubio_la_LIBADD = @FFTWLIB_LIBS@ @SAMPLERATE_LIBS@ @LTLIBOBJS@
 subdir = src
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
@@ -225,9 +219,9 @@ LTLIBRARIES = $(lib_LTLIBRARIES)
 
 libaubio_la_LDFLAGS =
 libaubio_la_DEPENDENCIES = @LTLIBOBJS@
-am_libaubio_la_OBJECTS = jackio.lo phasevoc.lo sndfileio.lo mathutils.lo \
-       fft.lo sample.lo hist.lo scale.lo resample.lo onsetdetection.lo \
-       tss.lo peakpick.lo biquad.lo pitchdetection.lo pitchmcomb.lo \
+am_libaubio_la_OBJECTS = phasevoc.lo mathutils.lo fft.lo sample.lo \
+       hist.lo scale.lo resample.lo onsetdetection.lo tss.lo \
+       peakpick.lo biquad.lo pitchdetection.lo pitchmcomb.lo \
        pitchyin.lo filter.lo
 libaubio_la_OBJECTS = $(am_libaubio_la_OBJECTS)
 
@@ -236,14 +230,13 @@ depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles
 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/biquad.Plo ./$(DEPDIR)/fft.Plo \
 @AMDEP_TRUE@   ./$(DEPDIR)/filter.Plo ./$(DEPDIR)/hist.Plo \
-@AMDEP_TRUE@   ./$(DEPDIR)/jackio.Plo ./$(DEPDIR)/mathutils.Plo \
+@AMDEP_TRUE@   ./$(DEPDIR)/mathutils.Plo \
 @AMDEP_TRUE@   ./$(DEPDIR)/onsetdetection.Plo \
 @AMDEP_TRUE@   ./$(DEPDIR)/peakpick.Plo ./$(DEPDIR)/phasevoc.Plo \
 @AMDEP_TRUE@   ./$(DEPDIR)/pitchdetection.Plo \
 @AMDEP_TRUE@   ./$(DEPDIR)/pitchmcomb.Plo ./$(DEPDIR)/pitchyin.Plo \
 @AMDEP_TRUE@   ./$(DEPDIR)/resample.Plo ./$(DEPDIR)/sample.Plo \
-@AMDEP_TRUE@   ./$(DEPDIR)/scale.Plo ./$(DEPDIR)/sndfileio.Plo \
-@AMDEP_TRUE@   ./$(DEPDIR)/tss.Plo
+@AMDEP_TRUE@   ./$(DEPDIR)/scale.Plo ./$(DEPDIR)/tss.Plo
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
@@ -326,7 +319,6 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fft.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filter.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hist.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jackio.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mathutils.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/onsetdetection.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/peakpick.Plo@am__quote@
@@ -337,7 +329,6 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resample.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sample.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scale.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sndfileio.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tss.Plo@am__quote@
 
 .c.o:
index 31efae2..d3279eb 100644 (file)
@@ -67,11 +67,6 @@ extern "C" {
 #include "tss.h"
 #include "resample.h"
 
-#ifdef JACK_SUPPORT
-#include "jackio.h"
-#endif 
-
-#include "sndfileio.h"
 #include "peakpick.h"
 #include "biquad.h"
 #include "filter.h"
diff --git a/src/jackio.c b/src/jackio.c
deleted file mode 100644 (file)
index 03ee2df..0000000
+++ /dev/null
@@ -1,175 +0,0 @@
-/*
-   Copyright (C) 2003 Paul Brossier
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
-
-#include "config.h"
-#ifdef JACK_SUPPORT
-#include <jack/jack.h>
-#include "aubio_priv.h"
-#include "jackio.h"
-
-/*typedef jack_default_audio_sample_t jack_sample_t; */
-/* work with float, never tried in double */
-typedef smpl_t jack_sample_t;
-
-/**
- * jack device structure 
- */
-struct _aubio_jack_t {
-  /** jack client */
-  jack_client_t *client;
-  /** jack output ports */
-  jack_port_t **oports;
-  /** jack input ports */
-  jack_port_t **iports;
-  /** jack input buffer */
-  jack_sample_t **ibufs;
-  /** jack output buffer */
-  jack_sample_t **obufs;
-  /** jack input channels */
-  uint_t ichan;
-  /** jack output channels */
-  uint_t ochan;
-  /** jack samplerate (Hz) */
-  uint_t samplerate;
-  /** jack processing function */
-  aubio_process_func_t callback; 
-};
-
-/* static memory management */
-static aubio_jack_t * aubio_jack_alloc(uint_t ichan, uint_t ochan);
-static uint_t aubio_jack_free(aubio_jack_t * jack_setup);
-/* jack callback functions */
-static int aubio_jack_process(jack_nframes_t nframes, void *arg);
-static void aubio_jack_shutdown (void *arg);
-
-aubio_jack_t * new_aubio_jack(uint_t ichan, uint_t ochan, 
-    aubio_process_func_t callback) {
-  aubio_jack_t * jack_setup = aubio_jack_alloc (ichan, ochan);
-  uint_t i;
-  char * client_name = "aubio";
-  char name[64];
-  /* initial jack client setup */
-  if ((jack_setup->client = jack_client_new (client_name)) == 0) {
-    AUBIO_ERR ("jack server not running?\n");
-    AUBIO_QUIT(AUBIO_FAIL);
-  }
-
-  /* set callbacks */
-  jack_set_process_callback (jack_setup->client, aubio_jack_process, 
-      (void*) jack_setup);
-  jack_on_shutdown (jack_setup->client, aubio_jack_shutdown, 
-      (void*) jack_setup);
-
-  /* register jack output ports */
-  for (i = 0; i < ochan; i++) 
-  {
-    AUBIO_SPRINTF(name, "out_%d", i+1);
-    AUBIO_MSG("%s\n", name);
-    if ((jack_setup->oports[i] = 
-          jack_port_register (jack_setup->client, name, 
-            JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0)) == 0) 
-    {
-      AUBIO_ERR("failed registering output port \"%s\"!\n", name);
-      jack_client_close (jack_setup->client);
-      AUBIO_QUIT(AUBIO_FAIL);
-    }
-  }
-
-  /* register jack input ports */
-  for (i = 0; i < ichan; i++) 
-  {
-    AUBIO_SPRINTF(name, "in_%d", i+1);
-    AUBIO_MSG("%s\n", name);
-    if ((jack_setup->iports[i] = 
-          jack_port_register (jack_setup->client, name, 
-            JACK_DEFAULT_AUDIO_TYPE, JackPortIsInput, 0)) == 0)
-    {
-      AUBIO_ERR("failed registering input port \"%s\"!\n", name);
-      jack_client_close (jack_setup->client);
-      AUBIO_QUIT(AUBIO_FAIL);
-    }
-  }
-
-  /* set processing callback */
-  jack_setup->callback = callback;
-  return jack_setup;
-}
-
-uint_t aubio_jack_activate(aubio_jack_t *jack_setup) {
-  /* get sample rate */
-  jack_setup->samplerate = jack_get_sample_rate (jack_setup->client);
-  /* actual jack process activation */
-  if (jack_activate (jack_setup->client)) 
-  {
-    AUBIO_ERR("jack client activation failed");
-    return 1;
-  }
-  return 0;
-}
-
-void aubio_jack_close(aubio_jack_t *jack_setup) {
-  /* bug : should disconnect all ports first */
-  jack_client_close(jack_setup->client);
-  aubio_jack_free(jack_setup);
-}
-
-/* memory management */
-static aubio_jack_t * aubio_jack_alloc(uint_t ichan, uint_t ochan) {
-  aubio_jack_t *jack_setup = AUBIO_NEW(aubio_jack_t);
-  jack_setup->ichan = ichan;
-  jack_setup->ochan = ochan;
-  jack_setup->oports = AUBIO_ARRAY(jack_port_t*, ichan); 
-  jack_setup->iports = AUBIO_ARRAY(jack_port_t*, ochan); 
-  jack_setup->ibufs  = AUBIO_ARRAY(jack_sample_t*, ichan); 
-  jack_setup->obufs  = AUBIO_ARRAY(jack_sample_t*, ochan); 
-  return jack_setup;
-}
-
-static uint_t aubio_jack_free(aubio_jack_t * jack_setup) {
-  AUBIO_FREE(jack_setup->oports);
-  AUBIO_FREE(jack_setup->iports);
-  AUBIO_FREE(jack_setup->ibufs );
-  AUBIO_FREE(jack_setup->obufs );
-  AUBIO_FREE(jack_setup);
-  return AUBIO_OK;
-}
-
-/* jack callback functions */
-static void aubio_jack_shutdown (void *arg){
-  AUBIO_ERR("jack shutdown\n");
-  AUBIO_QUIT(AUBIO_OK);
-}
-
-static int aubio_jack_process(jack_nframes_t nframes, void *arg) {
-  aubio_jack_t* dev = (aubio_jack_t *)arg;
-  uint_t i;
-  for (i=0;i<dev->ichan;i++) { 
-    /* get readable input */
-    dev->ibufs[i] = 
-      (jack_sample_t *) jack_port_get_buffer (dev->iports[i], nframes);
-    /* get writable output */
-    dev->obufs[i] = 
-      (jack_sample_t *) jack_port_get_buffer (dev->oports[i], nframes);
-  }
-  dev->callback(dev->ibufs,dev->obufs,nframes);
-  return 0;
-}
-
-
-#endif /* JACK_SUPPORT */
diff --git a/src/jackio.h b/src/jackio.h
deleted file mode 100644 (file)
index 9d0768e..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
-   Copyright (C) 2003 Paul Brossier
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
-
-#ifndef JACKIO_H
-#define JACKIO_H
-
-/** 
- * @file
- *
- * Jack driver for aubio
- * 
- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/** jack object */
-typedef struct _aubio_jack_t aubio_jack_t;
-/** jack process function */
-typedef int (*aubio_process_func_t)(smpl_t **input, smpl_t **output, int
-    nframes);
-
-/** jack device creation function */
-aubio_jack_t * new_aubio_jack (uint_t inchannels, uint_t outchannels,
-    aubio_process_func_t callback);
-/** activate jack client (run jackprocess function) */
-uint_t aubio_jack_activate(aubio_jack_t *jack_setup);
-/** close and delete jack client */
-void aubio_jack_close(aubio_jack_t *jack_setup);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* JACKIO_H */
diff --git a/src/sndfileio.c b/src/sndfileio.c
deleted file mode 100644 (file)
index 53af1e8..0000000
+++ /dev/null
@@ -1,207 +0,0 @@
-/*
-   Copyright (C) 2003 Paul Brossier
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
-
-#include <string.h>
-
-#include <sndfile.h>
-
-#include "aubio_priv.h"
-#include "sample.h"
-#include "sndfileio.h"
-#include "mathutils.h"
-
-#define MAX_CHANNELS 6
-#define MAX_SIZE 4096
-
-struct _aubio_file_t {
-        SNDFILE *handle;
-        int samplerate;
-        int channels;
-        int format;
-        float *tmpdata; /** scratch pad for interleaving/deinterleaving. */
-        int size;       /** store the size to check if realloc needed */
-};
-
-aubio_file_t * new_file_ro(const char* outputname) {
-        aubio_file_t * f = AUBIO_NEW(aubio_file_t);
-        SF_INFO sfinfo;
-        AUBIO_MEMSET(&sfinfo, 0, sizeof (sfinfo));
-
-        if (! (f->handle = sf_open (outputname, SFM_READ, &sfinfo))) {
-                AUBIO_ERR("Not able to open input file %s.\n", outputname);
-                AUBIO_ERR("%s\n",sf_strerror (NULL)); /* libsndfile err msg */
-                AUBIO_QUIT(AUBIO_FAIL);
-        }      
-
-        if (sfinfo.channels > MAX_CHANNELS) { 
-                AUBIO_ERR("Not able to process more than %d channels\n", MAX_CHANNELS);
-                AUBIO_QUIT(AUBIO_FAIL);
-        }
-
-        f->size       = MAX_SIZE*sfinfo.channels;
-        f->tmpdata    = AUBIO_ARRAY(float,f->size);
-        /* get input specs */
-        f->samplerate = sfinfo.samplerate;
-        f->channels   = sfinfo.channels;
-        f->format     = sfinfo.format;
-
-        return f;
-}
-
-int file_open_wo(aubio_file_t * f, const char* inputname) {
-        SF_INFO sfinfo;
-        memset (&sfinfo, 0, sizeof (sfinfo));
-
-        /* define file output spec */
-        sfinfo.samplerate = f->samplerate;
-        sfinfo.channels   = f->channels;
-        sfinfo.format     = f->format;
-
-        if (! (f->handle = sf_open (inputname, SFM_WRITE, &sfinfo))) {
-                AUBIO_ERR("Not able to open output file %s.\n", inputname);
-                AUBIO_ERR("%s\n",sf_strerror (NULL)); /* libsndfile err msg */
-                AUBIO_QUIT(AUBIO_FAIL);
-        }      
-
-        if (sfinfo.channels > MAX_CHANNELS) { 
-                AUBIO_ERR("Not able to process more than %d channels\n", MAX_CHANNELS);
-                AUBIO_QUIT(AUBIO_FAIL);
-        }
-        f->size       = MAX_SIZE*sfinfo.channels;
-        f->tmpdata    = AUBIO_ARRAY(float,f->size);
-        return AUBIO_OK;
-}
-
-/* setup file struct from existing one */
-aubio_file_t * new_file_wo(aubio_file_t * fmodel, const char *outputname) {
-        aubio_file_t * f = AUBIO_NEW(aubio_file_t);
-        f->samplerate    = fmodel->samplerate;
-        f->channels      = fmodel->channels;
-        f->format        = fmodel->format;
-        file_open_wo(f, outputname);
-        return f;
-}
-
-
-/* return 0 if properly closed, 1 otherwise */
-int del_file(aubio_file_t * f) {
-        if (sf_close(f->handle)) {
-                AUBIO_ERR("Error closing file.");
-                puts (sf_strerror (NULL));
-                return 1;
-        }
-        AUBIO_FREE(f->tmpdata);
-        AUBIO_FREE(f);
-        //AUBIO_DBG("File closed.\n");
-        return 0;
-}
-
-/**************************************************************
- *
- * Read write methods 
- *
- */
-
-
-/* read frames from file in data 
- *  return the number of frames actually read */
-int file_read(aubio_file_t * f, int frames, fvec_t * read) {
-        sf_count_t read_frames;
-        int i,j, channels = f->channels;
-        int nsamples = frames*channels;
-        int aread;
-        float *pread;  
-
-        /* allocate data for de/interleaving reallocated when needed. */
-        if (nsamples >= f->size) {
-                AUBIO_ERR("Maximum file_read buffer size exceeded.");
-                return -1;
-                /*
-                AUBIO_FREE(f->tmpdata);
-                f->tmpdata = AUBIO_ARRAY(float,nsamples);
-                */
-        }
-        //f->size = nsamples;
-
-        /* do actual reading */
-        read_frames = sf_read_float (f->handle, f->tmpdata, nsamples);
-
-        aread = (int)FLOOR(read_frames/(float)channels);
-
-        /* de-interleaving data  */
-        for (i=0; i<channels; i++) {
-                pread = fvec_get_channel(read,i);
-                for (j=0; j<aread; j++) {
-                        pread[j] = f->tmpdata[channels*j+i];
-                }
-        }
-        return aread;
-}
-
-/* write 'frames' samples to file from data 
- *   return the number of frames actually written 
- */
-int file_write(aubio_file_t * f, int frames, fvec_t * write) {
-        sf_count_t written_frames = 0;
-        int i, j,      channels = f->channels;
-        int nsamples = channels*frames;
-        float *pwrite;
-
-        /* allocate data for de/interleaving reallocated when needed. */
-        if (nsamples >= f->size) {
-                AUBIO_ERR("Maximum file_write buffer size exceeded.");
-                return -1;
-                /*
-                AUBIO_FREE(f->tmpdata);
-                f->tmpdata = AUBIO_ARRAY(float,nsamples);
-                */
-        }
-        //f->size = nsamples;
-
-        /* interleaving data  */
-        for (i=0; i<channels; i++) {
-                pwrite = fvec_get_channel(write,i);
-                for (j=0; j<frames; j++) {
-                        f->tmpdata[channels*j+i] = pwrite[j];
-                }
-        }
-        written_frames = sf_write_float (f->handle, f->tmpdata, nsamples);
-        return written_frames/channels;
-}
-
-/*******************************************************************
- *
- * Get object info 
- *
- */
-
-uint_t aubio_file_channels(aubio_file_t * f) {
-        return f->channels;
-}
-
-uint_t aubio_file_samplerate(aubio_file_t * f) {
-        return f->samplerate;
-}
-
-void file_info(aubio_file_t * f) {
-        AUBIO_DBG("srate    : %d\n", f->samplerate);
-        AUBIO_DBG("channels : %d\n", f->channels);
-        AUBIO_DBG("format   : %d\n", f->format);
-}
-
diff --git a/src/sndfileio.h b/src/sndfileio.h
deleted file mode 100644 (file)
index 94ec1c4..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
-        Copyright (C) 2003 Paul Brossier
-
-        This program is free software; you can redistribute it and/or modify
-        it under the terms of the GNU General Public License as published by
-        the Free Software Foundation; either version 2 of the License, or
-        (at your option) any later version.
-
-        This program is distributed in the hope that it will be useful,
-        but WITHOUT ANY WARRANTY; without even the implied warranty of
-        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-        GNU General Public License for more details.
-
-        You should have received a copy of the GNU General Public License
-        along with this program; if not, write to the Free Software
-        Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-*/
-
-#ifndef SNDFILEIO_H
-#define SNDFILEIO_H
-
-/** @file 
- * sndfile functions
- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * sndfile object
- */
-typedef struct _aubio_file_t aubio_file_t;
-/** 
- * Open a sound file for reading
- */
-aubio_file_t * new_file_ro (const char * inputfile);
-/**
- * Copy file model from previously opened sound file.
- */
-aubio_file_t * new_file_wo(aubio_file_t * existingfile, const char * outputname);
-/** 
- * Open a sound file for writing
- */
-int file_open_wo (aubio_file_t * file, const char * outputname);
-/** 
- * Read frames data from file 
- */
-int file_read(aubio_file_t * file, int frames, fvec_t * read);
-/** 
- * Write data of length frames to file
- */
-int file_write(aubio_file_t * file, int frames, fvec_t * write);
-/**
- * Close file and delete file object
- */
-int del_file(aubio_file_t * file);
-/**
- * Return some files facts
- */
-void file_info(aubio_file_t * file);
-/**
- * Return number of channel in file
- */
-uint_t aubio_file_channels(aubio_file_t * file);
-uint_t aubio_file_samplerate(aubio_file_t * file);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-
index a5d04fb..e6da4ee 100644 (file)
@@ -6,9 +6,8 @@ SWIG = swig
 # removed -Wall -Wmissing-prototypes -Wmissing-declarations 
 SW_CFLAGS = -DJACK_SUPPORT -shared -Werror -Wno-char-subscripts -Wno-unknown-pragmas
 #SW_CFLAGS = -Wno-missing-prototypes -Wno-missing-declarations
-SWINCLUDE = -I/usr/include/python2.3 -I../src -I/usr/include
-SWLDFLAGS = -L../src/.libs -laubio
-
+SWINCLUDE = -I/usr/include/python2.3 -I../src -I../ext -I/usr/include
+SWLDFLAGS = -L../ext/.libs -laubioext -L../src/.libs -laubio
 
 all:
        $(SWIG) $(SW_FLAGS) -outdir $(PYTHON_DIR) -python aubio.i
index d09dcda..62d97f1 100644 (file)
@@ -159,8 +159,8 @@ SWIG = swig
 # removed -Wall -Wmissing-prototypes -Wmissing-declarations 
 SW_CFLAGS = -DJACK_SUPPORT -shared -Werror -Wno-char-subscripts -Wno-unknown-pragmas
 #SW_CFLAGS = -Wno-missing-prototypes -Wno-missing-declarations
-SWINCLUDE = -I/usr/include/python2.3 -I../src -I/usr/include
-SWLDFLAGS = -L../src/.libs -laubio
+SWINCLUDE = -I/usr/include/python2.3 -I../src -I../ext -I/usr/include
+SWLDFLAGS = -L../ext/.libs -laubioext -L../src/.libs -laubio
 subdir = swig
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
index a4ba190..79545dd 100644 (file)
@@ -2,10 +2,11 @@
 
 %{
         #include "aubio.h"
+        #include "aubioext.h"
 %}
 
 #include "aubio.h"
-#include "config.h"
+#include "aubioext.h"
 
 /* type aliases */
 typedef unsigned int uint_t;