/[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 3277 by schoenebeck, Mon Jun 5 18:40:18 2017 UTC revision 3335 by schoenebeck, Sun Jul 30 14:33:15 2017 UTC
# Line 243  namespace LinuxSampler { Line 243  namespace LinuxSampler {
243          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
244      };      };
245    
246        class InstrumentScriptVMFunction_change_sustain : public VMChangeSynthParamFunction {
247        public:
248            InstrumentScriptVMFunction_change_sustain(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {}
249            VMFnResult* exec(VMFnArgs* args);
250        };
251    
252      class InstrumentScriptVMFunction_change_amp_lfo_depth : public VMChangeSynthParamFunction {      class InstrumentScriptVMFunction_change_amp_lfo_depth : public VMChangeSynthParamFunction {
253      public:      public:
254          InstrumentScriptVMFunction_change_amp_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {}          InstrumentScriptVMFunction_change_amp_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {}
# Line 279  namespace LinuxSampler { Line 285  namespace LinuxSampler {
285          VMFnResult* exec(VMFnArgs* args);          VMFnResult* exec(VMFnArgs* args);
286      };      };
287    
288        class InstrumentScriptVMFunction_change_pan_time : public VMChangeSynthParamFunction {
289        public:
290            InstrumentScriptVMFunction_change_pan_time(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {}
291            VMFnResult* exec(VMFnArgs* args);
292        };
293    
294      class VMChangeFadeCurveFunction : public VMEmptyResultFunction {      class VMChangeFadeCurveFunction : public VMEmptyResultFunction {
295      public:      public:
296          VMChangeFadeCurveFunction(InstrumentScriptVM* parent) : m_vm(parent) {}          VMChangeFadeCurveFunction(InstrumentScriptVM* parent) : m_vm(parent) {}
# Line 305  namespace LinuxSampler { Line 317  namespace LinuxSampler {
317          VMFnResult* exec(VMFnArgs* args);          VMFnResult* exec(VMFnArgs* args);
318      };      };
319    
320        class InstrumentScriptVMFunction_change_pan_curve : public VMChangeFadeCurveFunction {
321        public:
322            InstrumentScriptVMFunction_change_pan_curve(InstrumentScriptVM* parent) : VMChangeFadeCurveFunction(parent) {}
323            VMFnResult* exec(VMFnArgs* args);
324        };
325    
326      class InstrumentScriptVMFunction_fade_in : public VMEmptyResultFunction {      class InstrumentScriptVMFunction_fade_in : public VMEmptyResultFunction {
327      public:      public:
328          InstrumentScriptVMFunction_fade_in(InstrumentScriptVM* parent);          InstrumentScriptVMFunction_fade_in(InstrumentScriptVM* parent);
# Line 401  namespace LinuxSampler { Line 419  namespace LinuxSampler {
419          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
420      };      };
421    
422        class InstrumentScriptVMFunction_callback_status : public VMIntResultFunction {
423        public:
424            InstrumentScriptVMFunction_callback_status(InstrumentScriptVM* parent);
425            int minRequiredArgs() const { return 1; }
426            int maxAllowedArgs() const { return 1; }
427            bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
428            ExprType_t argType(int iArg) const { return INT_EXPR; }
429            VMFnResult* exec(VMFnArgs* args);
430        protected:
431            InstrumentScriptVM* m_vm;
432        };
433    
434      // overrides core wait() implementation      // overrides core wait() implementation
435      class InstrumentScriptVMFunction_wait : public CoreVMFunction_wait {      class InstrumentScriptVMFunction_wait : public CoreVMFunction_wait {
436      public:      public:
# Line 431  namespace LinuxSampler { Line 461  namespace LinuxSampler {
461      protected:      protected:
462          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
463      };      };
464    
465        class InstrumentScriptVMFunction_fork : public VMIntResultFunction {
466        public:
467            InstrumentScriptVMFunction_fork(InstrumentScriptVM* parent);
468            int minRequiredArgs() const { return 0; }
469            int maxAllowedArgs() const { return 2; }
470            bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
471            ExprType_t argType(int iArg) const { return INT_EXPR; }
472            VMFnResult* exec(VMFnArgs* args);
473        protected:
474            InstrumentScriptVM* m_vm;
475        };
476    
477  } // namespace LinuxSampler  } // namespace LinuxSampler
478    

Legend:
Removed from v.3277  
changed lines
  Added in v.3335

  ViewVC Help
Powered by ViewVC