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

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

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

revision 2596 by schoenebeck, Thu Jun 5 19:39:12 2014 UTC revision 2598 by schoenebeck, Fri Jun 6 12:38:54 2014 UTC
# Line 17  namespace LinuxSampler { Line 17  namespace LinuxSampler {
17    
18      class InstrumentScriptVM;      class InstrumentScriptVM;
19    
20      class InstrumentScriptVMFunction_play_note : public VMEmptyResultFunction {      class InstrumentScriptVMFunction_play_note : public VMIntResultFunction {
21      public:      public:
22          InstrumentScriptVMFunction_play_note(InstrumentScriptVM* parent);          InstrumentScriptVMFunction_play_note(InstrumentScriptVM* parent);
23          int minRequiredArgs() const { return 1; }          int minRequiredArgs() const { return 1; }
# Line 25  namespace LinuxSampler { Line 25  namespace LinuxSampler {
25          bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}          bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
26          ExprType_t argType(int iArg) const { return INT_EXPR; }          ExprType_t argType(int iArg) const { return INT_EXPR; }
27          VMFnResult* exec(VMFnArgs* args);          VMFnResult* exec(VMFnArgs* args);
28        protected:
29            InstrumentScriptVM* m_vm;
30        };
31    
32        class InstrumentScriptVMFunction_ignore_event : public VMEmptyResultFunction {
33        public:
34            InstrumentScriptVMFunction_ignore_event(InstrumentScriptVM* parent);
35            int minRequiredArgs() const { return 1; }
36            int maxAllowedArgs() const { return 1; }
37            bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
38            ExprType_t argType(int iArg) const { return INT_EXPR; }
39            VMFnResult* exec(VMFnArgs* args);
40        protected:
41            InstrumentScriptVM* m_vm;
42        };
43    
44        class InstrumentScriptVMFunction_ignore_controller : public VMEmptyResultFunction {
45        public:
46            InstrumentScriptVMFunction_ignore_controller(InstrumentScriptVM* parent);
47            int minRequiredArgs() const { return 0; }
48            int maxAllowedArgs() const { return 1; }
49            bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
50            ExprType_t argType(int iArg) const { return INT_EXPR; }
51            VMFnResult* exec(VMFnArgs* args);
52      protected:      protected:
53          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
54      };      };

Legend:
Removed from v.2596  
changed lines
  Added in v.2598

  ViewVC Help
Powered by ViewVC