/[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 3192 by schoenebeck, Fri May 19 14:23:12 2017 UTC revision 3193 by schoenebeck, Sat May 20 12:28:57 2017 UTC
# Line 237  namespace LinuxSampler { Line 237  namespace LinuxSampler {
237          ExprType_t argType(int iArg) const { return INT_EXPR; }          ExprType_t argType(int iArg) const { return INT_EXPR; }
238    
239          template<float NoteBase::_Override::*T_noteParam, int T_synthParam,          template<float NoteBase::_Override::*T_noteParam, int T_synthParam,
240                   bool T_isNormalizedParam, int T_maxValue = 1000000,                   bool T_isNormalizedParam, int T_maxValue, int T_minValue>
                  int T_minValue = 0>  
241          VMFnResult* execTemplate(VMFnArgs* args, const char* functionName);          VMFnResult* execTemplate(VMFnArgs* args, const char* functionName);
242      protected:      protected:
243          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
# Line 301  namespace LinuxSampler { Line 300  namespace LinuxSampler {
300          ExprType_t argType(int iArg) const { return INT_EXPR; }          ExprType_t argType(int iArg) const { return INT_EXPR; }
301          VMFnResult* exec(VMFnArgs* args);          VMFnResult* exec(VMFnArgs* args);
302      protected:      protected:
303            InstrumentScriptVM* m_vm;
304        };
305    
306        class InstrumentScriptVMFunction_get_event_par : public VMIntResultFunction {
307        public:
308            InstrumentScriptVMFunction_get_event_par(InstrumentScriptVM* parent);
309            int minRequiredArgs() const { return 2; }
310            int maxAllowedArgs() const { return 2; }
311            bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
312            ExprType_t argType(int iArg) const { return INT_EXPR; }
313            VMFnResult* exec(VMFnArgs* args);
314        protected:
315            InstrumentScriptVM* m_vm;
316        };
317    
318        class InstrumentScriptVMFunction_set_event_par : public VMEmptyResultFunction {
319        public:
320            InstrumentScriptVMFunction_set_event_par(InstrumentScriptVM* parent);
321            int minRequiredArgs() const { return 3; }
322            int maxAllowedArgs() const { return 3; }
323            bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
324            ExprType_t argType(int iArg) const { return INT_EXPR; }
325            VMFnResult* exec(VMFnArgs* args);
326        protected:
327          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
328      };      };
329    

Legend:
Removed from v.3192  
changed lines
  Added in v.3193

  ViewVC Help
Powered by ViewVC