/[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 3118 by schoenebeck, Fri Apr 21 13:33:03 2017 UTC revision 3193 by schoenebeck, Sat May 20 12:28:57 2017 UTC
# Line 236  namespace LinuxSampler { Line 236  namespace LinuxSampler {
236          bool acceptsArgType(int iArg, ExprType_t type) const;          bool acceptsArgType(int iArg, ExprType_t type) const;
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, int T_minValue>
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 266  namespace LinuxSampler { Line 267  namespace LinuxSampler {
267          VMFnResult* exec(VMFnArgs* args);          VMFnResult* exec(VMFnArgs* args);
268      };      };
269    
270        class InstrumentScriptVMFunction_change_vol_time : public VMChangeSynthParamFunction {
271        public:
272            InstrumentScriptVMFunction_change_vol_time(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {}
273            VMFnResult* exec(VMFnArgs* args);
274        };
275    
276        class InstrumentScriptVMFunction_change_tune_time : public VMChangeSynthParamFunction {
277        public:
278            InstrumentScriptVMFunction_change_tune_time(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {}
279            VMFnResult* exec(VMFnArgs* args);
280        };
281    
282        class InstrumentScriptVMFunction_fade_in : public VMEmptyResultFunction {
283        public:
284            InstrumentScriptVMFunction_fade_in(InstrumentScriptVM* parent);
285            int minRequiredArgs() const { return 2; }
286            int maxAllowedArgs() const { return 2; }
287            bool acceptsArgType(int iArg, ExprType_t type) const;
288            ExprType_t argType(int iArg) const { return INT_EXPR; }
289            VMFnResult* exec(VMFnArgs* args);
290        protected:
291            InstrumentScriptVM* m_vm;
292        };
293    
294        class InstrumentScriptVMFunction_fade_out : public VMEmptyResultFunction {
295        public:
296            InstrumentScriptVMFunction_fade_out(InstrumentScriptVM* parent);
297            int minRequiredArgs() const { return 2; }
298            int maxAllowedArgs() const { return 3; }
299            bool acceptsArgType(int iArg, ExprType_t type) const;
300            ExprType_t argType(int iArg) const { return INT_EXPR; }
301            VMFnResult* exec(VMFnArgs* args);
302        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;
328        };
329    
330      class InstrumentScriptVMFunction_event_status : public VMIntResultFunction {      class InstrumentScriptVMFunction_event_status : public VMIntResultFunction {
331      public:      public:
332          InstrumentScriptVMFunction_event_status(InstrumentScriptVM* parent);          InstrumentScriptVMFunction_event_status(InstrumentScriptVM* parent);

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

  ViewVC Help
Powered by ViewVC