2 Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
4 This file is part of aubio.
6 aubio is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 aubio is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with aubio. If not, see <http://www.gnu.org/licenses/>.
26 #include <math.h> /* for isfinite */
27 #include <string.h> /* for strcmp */
31 #ifdef HAVE_C99_VARARGS_MACROS
33 #define debug(...) fprintf (stderr, __VA_ARGS__)
37 #define verbmsg(...) if (verbose) fprintf (stderr, __VA_ARGS__)
38 #define errmsg(...) fprintf (stderr, __VA_ARGS__)
39 #define outmsg(...) fprintf (stdout, __VA_ARGS__)
42 #define debug(...) fprintf (stderr, format , **args)
46 #define verbmsg(format, args...) if (verbose) fprintf(stderr, format , ##args)
47 #define errmsg(format, args...) fprintf(stderr, format , ##args)
48 #define outmsg(format, args...) fprintf(stdout, format , ##args)
51 typedef void (aubio_print_func_t) (void);
52 typedef int (*aubio_process_func_t)(fvec_t * input, fvec_t * output);
53 void send_noteon (int pitch, int velo);