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.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 modify
  9. it under the terms of version 2 of the GNU General Public License
  10. as published by the Free Software Foundation.
  11. This program 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 (version 2 or later) for more details.
  15. You should have received a copy of the GNU General Public License (version 2)
  16. along with this program; if not, write to the Free Software Foundation,
  17. Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. */
  19. #ifndef MIDI_IN_H
  20. #define MIDI_IN_H
  21. #include "Engine.h"
  22. /**This class is inherited by all the Midi input classes*/
  23. class MidiIn:public virtual Engine
  24. {
  25. public:
  26. /**Enables or disables driver based upon value*/
  27. virtual void setMidiEn(bool nval) = 0;
  28. /**Returns if driver is initialized*/
  29. virtual bool getMidiEn() const = 0;
  30. static void midiProcess(unsigned char head,
  31. unsigned char num,
  32. unsigned char value);
  33. };
  34. #endif