--- linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.h 2016/07/10 14:05:13 2934 +++ linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.h 2016/07/10 14:24:13 2935 @@ -165,6 +165,42 @@ InstrumentScriptVM* m_vm; }; + class InstrumentScriptVMFunction_change_cutoff : public VMEmptyResultFunction { + public: + InstrumentScriptVMFunction_change_cutoff(InstrumentScriptVM* parent); + int minRequiredArgs() const { return 2; } + int maxAllowedArgs() const { return 2; } + bool acceptsArgType(int iArg, ExprType_t type) const; + ExprType_t argType(int iArg) const { return INT_EXPR; } + VMFnResult* exec(VMFnArgs* args); + protected: + InstrumentScriptVM* m_vm; + }; + + class InstrumentScriptVMFunction_change_reso : public VMEmptyResultFunction { + public: + InstrumentScriptVMFunction_change_reso(InstrumentScriptVM* parent); + int minRequiredArgs() const { return 2; } + int maxAllowedArgs() const { return 2; } + bool acceptsArgType(int iArg, ExprType_t type) const; + ExprType_t argType(int iArg) const { return INT_EXPR; } + VMFnResult* exec(VMFnArgs* args); + protected: + InstrumentScriptVM* m_vm; + }; + + class InstrumentScriptVMFunction_event_status : public VMIntResultFunction { + public: + InstrumentScriptVMFunction_event_status(InstrumentScriptVM* parent); + int minRequiredArgs() const { return 1; } + int maxAllowedArgs() const { return 1; } + bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;} + ExprType_t argType(int iArg) const { return INT_EXPR; } + VMFnResult* exec(VMFnArgs* args); + protected: + InstrumentScriptVM* m_vm; + }; + } // namespace LinuxSampler #endif // LS_INSTRSCRIPTVMFUNCTIONS_H