LMMS
Loading...
Searching...
No Matches
nekobee.h
Go to the documentation of this file.
1/* nekobee DSSI software synthesizer plugin
2 *
3 * Copyright (C) 2004 Sean Bolton and others.
4 *
5 * Portions of this file may have come from Chris Cannam and Steve
6 * Harris's public domain DSSI example code.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be
14 * useful, but WITHOUT ANY WARRANTY; without even the implied
15 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 * PURPOSE. See the GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this program; if not, write to the Free
20 * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307, USA.
22 */
23
24#ifndef _XSYNTH_H
25#define _XSYNTH_H
26
27/* ==== debugging ==== */
28
29/* XSYNTH_DEBUG bits */
30#define XDB_DSSI 1 /* DSSI interface */
31#define XDB_AUDIO 2 /* audio output */
32#define XDB_NOTE 4 /* note on/off, voice allocation */
33#define XDB_DATA 8 /* plugin patchbank handling */
34#define GDB_MAIN 16 /* GUI main program flow */
35#define GDB_OSC 32 /* GUI OSC handling */
36#define GDB_IO 64 /* GUI patch file input/output */
37#define GDB_GUI 128 /* GUI GUI callbacks, updating, etc. */
38
39/* If you want debug information, define XSYNTH_DEBUG to the XDB_* bits you're
40 * interested in getting debug information about, bitwise-ORed together.
41 * Otherwise, leave it undefined. */
42// #define XSYNTH_DEBUG (1+8+16+32+64)
43
44//#define XSYNTH_DEBUG GDB_GUI + GDB_OSC
45
46// #define XSYNTH_DEBUG XDB_DSSI
47#ifdef XSYNTH_DEBUG
48
49#include <stdio.h>
50#define XSYNTH_DEBUG_INIT(x)
51#define XDB_MESSAGE(type, fmt...) { if (XSYNTH_DEBUG & type) fprintf(stderr, "nekobee-dssi.so" fmt); }
52#define GDB_MESSAGE(type, fmt...) { if (XSYNTH_DEBUG & type) fprintf(stderr, "nekobee_gtk" fmt); }
53// -FIX-:
54// #include "message_buffer.h"
55// #define XSYNTH_DEBUG_INIT(x) mb_init(x)
56// #define XDB_MESSAGE(type, fmt...) { \-
57// if (XSYNTH_DEBUG & type) { \-
58// char _m[256]; \-
59// snprintf(_m, 255, fmt); \-
60// add_message(_m); \-
61// } \-
62// }
63
64#else /* !XSYNTH_DEBUG */
65
66#define XDB_MESSAGE(type, fmt...)
67#define GDB_MESSAGE(type, fmt...)
68#define XSYNTH_DEBUG_INIT(x)
69
70#endif /* XSYNTH_DEBUG */
71
72/* ==== end of debugging ==== */
73
74#define XSYNTH_MAX_POLYPHONY 1
75#define XSYNTH_DEFAULT_POLYPHONY 1
76
77#endif /* _XSYNTH_H */