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.

MidiIn.h 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. MidiIn.h - This class is inherited by all the Midi input classes
  4. Copyright (C) 2002-2005 Nasca Octavian Paul
  5. Copyright (C) 2009-2010 Mark McCurry
  6. Author: Nasca Octavian Paula
  7. Mark McCurry
  8. This program is free software; you can redistribute it and/or
  9. modify it under the terms of the GNU General Public License
  10. as published by the Free Software Foundation; either version 2
  11. of the License, or (at your option) any later version.
  12. */
  13. #ifndef MIDI_IN_H
  14. #define MIDI_IN_H
  15. #include "Engine.h"
  16. namespace zyncarla {
  17. /**This class is inherited by all the Midi input classes*/
  18. class MidiIn:public virtual Engine
  19. {
  20. public:
  21. /**Enables or disables driver based upon value*/
  22. virtual void setMidiEn(bool nval) = 0;
  23. /**Returns if driver is initialized*/
  24. virtual bool getMidiEn() const = 0;
  25. static void midiProcess(unsigned char head,
  26. unsigned char num,
  27. unsigned char value);
  28. };
  29. }
  30. #endif