Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nekobee.h 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. #ifndef _XSYNTH_H
  24. #define _XSYNTH_H
  25. /* ==== debugging ==== */
  26. /* XSYNTH_DEBUG bits */
  27. #define XDB_DSSI 1 /* DSSI interface */
  28. #define XDB_AUDIO 2 /* audio output */
  29. #define XDB_NOTE 4 /* note on/off, voice allocation */
  30. #define XDB_DATA 8 /* plugin patchbank handling */
  31. #define GDB_MAIN 16 /* GUI main program flow */
  32. #define GDB_OSC 32 /* GUI OSC handling */
  33. #define GDB_IO 64 /* GUI patch file input/output */
  34. #define GDB_GUI 128 /* GUI GUI callbacks, updating, etc. */
  35. /* If you want debug information, define XSYNTH_DEBUG to the XDB_* bits you're
  36. * interested in getting debug information about, bitwise-ORed together.
  37. * Otherwise, leave it undefined. */
  38. // #define XSYNTH_DEBUG (1+8+16+32+64)
  39. //#define XSYNTH_DEBUG GDB_GUI + GDB_OSC
  40. // #define XSYNTH_DEBUG XDB_DSSI
  41. #ifdef XSYNTH_DEBUG
  42. #include <stdio.h>
  43. #define XSYNTH_DEBUG_INIT(x)
  44. #define XDB_MESSAGE(type, fmt...) { if (XSYNTH_DEBUG & type) fprintf(stderr, "nekobee-dssi.so" fmt); }
  45. #define GDB_MESSAGE(type, fmt...) { if (XSYNTH_DEBUG & type) fprintf(stderr, "nekobee_gtk" fmt); }
  46. // -FIX-:
  47. // #include "message_buffer.h"
  48. // #define XSYNTH_DEBUG_INIT(x) mb_init(x)
  49. // #define XDB_MESSAGE(type, fmt...) { \-
  50. // if (XSYNTH_DEBUG & type) { \-
  51. // char _m[256]; \-
  52. // snprintf(_m, 255, fmt); \-
  53. // add_message(_m); \-
  54. // } \-
  55. // }
  56. #else /* !XSYNTH_DEBUG */
  57. #define XDB_MESSAGE(type, fmt...)
  58. #define GDB_MESSAGE(type, fmt...)
  59. #define XSYNTH_DEBUG_INIT(x)
  60. #endif /* XSYNTH_DEBUG */
  61. /* ==== end of debugging ==== */
  62. #define XSYNTH_MAX_POLYPHONY 1
  63. #define XSYNTH_DEFAULT_POLYPHONY 1
  64. #endif /* _XSYNTH_H */