/[svn]/linuxsampler/trunk/src/drivers/midi/VirtualMidiDevice.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/drivers/midi/VirtualMidiDevice.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2520 by schoenebeck, Fri Dec 14 16:04:49 2012 UTC revision 2521 by schoenebeck, Wed Feb 19 19:02:43 2014 UTC
# Line 1  Line 1 
1  /*  /*
2      Copyright (C) 2008 - 2012 Christian Schoenebeck      Copyright (C) 2008 - 2014 Christian Schoenebeck
3   */   */
4    
5  #ifndef LS_VIRTUALMIDIDEVICE_H  #ifndef LS_VIRTUALMIDIDEVICE_H
# Line 22  public: Line 22  public:
22      enum event_type_t {      enum event_type_t {
23          EVENT_TYPE_NOTEON  = 1,          EVENT_TYPE_NOTEON  = 1,
24          EVENT_TYPE_NOTEOFF = 2,          EVENT_TYPE_NOTEOFF = 2,
25          EVENT_TYPE_CC      = 3          EVENT_TYPE_CC      = 3,
26            EVENT_TYPE_PITCHBEND,
27            EVENT_TYPE_PROGRAM
28      };      };
29    
30      struct event_t {      struct event_t {
# Line 60  public: Line 62  public:
62      bool SendCCToSampler(uint8_t Controller, uint8_t Value);      bool SendCCToSampler(uint8_t Controller, uint8_t Value);
63    
64      /**      /**
65         * Sends a MIDI @e Pitch @e Bend event to the sampler.
66         *
67         * @param Pitch - MIDI pitch value (-8192 ... +8191)
68         *
69         * @returns true on success, false if internal FIFO full
70         *          (or provided pitch value out of valid range)
71         */
72        bool SendPitchBendToSampler(int Pitch);
73    
74        /**
75         * Sends a MIDI @e Program @e Change event to the sampler.
76         *
77         * If you want to change the sound bank, call SendCCToSampler() (with
78         * controller = 0 for bank select MSB and/or controller = 32 for bank select
79         * LSB) before calling this method.
80         *
81         * @param Program - MIDI program number
82         *
83         * @returns true on success, false if internal FIFO full
84         *          (or provided value invalid)
85         */
86        bool SendProgramChangeToSampler(int Program);
87    
88        /**
89       * Can be called by the virtual MIDI device to check whether a new note       * Can be called by the virtual MIDI device to check whether a new note
90       * on or note off MIDI event arrived to the sampler during the last       * on or note off MIDI event arrived to the sampler during the last
91       * call to this method. So this is a asynchronously, "polling" based       * call to this method. So this is a asynchronously, "polling" based

Legend:
Removed from v.2520  
changed lines
  Added in v.2521

  ViewVC Help
Powered by ViewVC