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.

35 lines
1.0KB

  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. /**This class is inherited by all the Midi input classes*/
  17. class MidiIn:public virtual Engine
  18. {
  19. public:
  20. /**Enables or disables driver based upon value*/
  21. virtual void setMidiEn(bool nval) = 0;
  22. /**Returns if driver is initialized*/
  23. virtual bool getMidiEn() const = 0;
  24. static void midiProcess(unsigned char head,
  25. unsigned char num,
  26. unsigned char value);
  27. };
  28. #endif