/[svn]/linuxsampler/trunk/src/engines/common/InstrumentScriptVM.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/common/InstrumentScriptVM.h

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

revision 2594 by schoenebeck, Thu Jun 5 00:16:25 2014 UTC revision 2600 by schoenebeck, Sat Jun 7 00:16:03 2014 UTC
# Line 13  Line 13 
13  #include "../../common/global.h"  #include "../../common/global.h"
14  #include "../../scriptvm/ScriptVM.h"  #include "../../scriptvm/ScriptVM.h"
15  #include "Event.h"  #include "Event.h"
16    #include "InstrumentScriptVMFunctions.h"
17    
18  namespace LinuxSampler {  namespace LinuxSampler {
19    
# Line 30  namespace LinuxSampler { Line 31  namespace LinuxSampler {
31      public:      public:
32          InstrumentScriptVM();          InstrumentScriptVM();
33          VMExecStatus_t exec(VMParserContext* parserCtx, ScriptEvent* event);          VMExecStatus_t exec(VMParserContext* parserCtx, ScriptEvent* event);
34            VMFunction* functionByName(const String& name) OVERRIDE;
35          std::map<String,VMIntRelPtr*> builtInIntVariables() OVERRIDE;          std::map<String,VMIntRelPtr*> builtInIntVariables() OVERRIDE;
36          std::map<String,VMInt8Array*> builtInIntArrayVariables() OVERRIDE;          std::map<String,VMInt8Array*> builtInIntArrayVariables() OVERRIDE;
37          std::map<String,int> builtInConstIntVariables() OVERRIDE;          std::map<String,int> builtInConstIntVariables() OVERRIDE;
38      protected:      protected:
39          ScriptEvent* m_event; ///< The event currently executed by exec().          ScriptEvent* m_event; ///< The event currently executed by exec().
40    
         Event* m_cause;  
   
41          // buil-in script variables          // buil-in script variables
42          VMInt8Array m_CC;          VMInt8Array m_CC;
43          VMInt8RelPtr m_CC_NUM;          VMInt8RelPtr m_CC_NUM;
44            VMIntRelPtr  m_EVENT_ID;
45          VMInt8RelPtr m_EVENT_NOTE;          VMInt8RelPtr m_EVENT_NOTE;
46          VMInt8RelPtr m_EVENT_VELOCITY;          VMInt8RelPtr m_EVENT_VELOCITY;
47          //VMIntArray m_KEY_DOWN; //TODO: ...          //VMIntArray m_KEY_DOWN; //TODO: ...
48          //VMIntArray m_POLY_AT; //TODO: ...          //VMIntArray m_POLY_AT; //TODO: ...
49          //int m_POLY_AT_NUM; //TODO: ...          //int m_POLY_AT_NUM; //TODO: ...
50    
51            // buil-in script functions
52            InstrumentScriptVMFunction_play_note m_fnPlayNote;
53            InstrumentScriptVMFunction_set_controller m_fnSetController;
54            InstrumentScriptVMFunction_ignore_event m_fnIgnoreEvent;
55            InstrumentScriptVMFunction_ignore_controller m_fnIgnoreController;
56    
57            friend class InstrumentScriptVMFunction_play_note;
58            friend class InstrumentScriptVMFunction_set_controller;
59            friend class InstrumentScriptVMFunction_ignore_event;
60            friend class InstrumentScriptVMFunction_ignore_controller;
61      };      };
62    
63  } // namespace LinuxSampler  } // namespace LinuxSampler

Legend:
Removed from v.2594  
changed lines
  Added in v.2600

  ViewVC Help
Powered by ViewVC