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.

ivstmidilearn.h 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //------------------------------------------------------------------------
  2. // Project : VST SDK
  3. //
  4. // Category : Interfaces
  5. // Filename : pluginterfaces/vst/ivstmidilearn.h
  6. // Created by : Steinberg, 11/2018
  7. // Description : VST MIDI Learn
  8. //
  9. //-----------------------------------------------------------------------------
  10. // This file is part of a Steinberg SDK. It is subject to the license terms
  11. // in the LICENSE file found in the top-level directory of this distribution
  12. // and at www.steinberg.net/sdklicenses.
  13. // No part of the SDK, including this file, may be copied, modified, propagated,
  14. // or distributed except according to the terms contained in the LICENSE file.
  15. //-----------------------------------------------------------------------------
  16. #pragma once
  17. #include "pluginterfaces/base/funknown.h"
  18. #include "pluginterfaces/vst/vsttypes.h"
  19. //------------------------------------------------------------------------
  20. namespace Steinberg {
  21. namespace Vst {
  22. //------------------------------------------------------------------------
  23. /** MIDI Learn Interface.
  24. \ingroup vstIPlug vst3612
  25. - [plug imp]
  26. - [extends IEditController]
  27. - [released: 3.6.12]
  28. - [optional]
  29. If this interface is implemented by the edit controller, the host will call this method whenever
  30. there is live MIDI-CC input for the plug-in. This way the plug-in can change it's MIDI-CC parameter
  31. mapping and inform the host via the IComponentHandler::restartComponent with the
  32. kMidiCCAssignmentChanged flag.
  33. Use this if you want to implement custom MIDI-Learn functionality in your plug-in.
  34. */
  35. //------------------------------------------------------------------------
  36. class IMidiLearn : public FUnknown
  37. {
  38. public:
  39. /** Called on live input MIDI-CC change associated to a given bus index and MIDI channel */
  40. virtual tresult PLUGIN_API onLiveMIDIControllerInput (int32 busIndex, int16 channel,
  41. CtrlNumber midiCC) = 0;
  42. //------------------------------------------------------------------------
  43. static const FUID iid;
  44. };
  45. DECLARE_CLASS_IID (IMidiLearn, 0x6B2449CC, 0x419740B5, 0xAB3C79DA, 0xC5FE5C86)
  46. //------------------------------------------------------------------------
  47. } // namespace Vst
  48. } // namespace Steinberg