1 |
/* |
/* |
2 |
* Copyright (c) 2014 - 2017 Christian Schoenebeck |
* Copyright (c) 2014 - 2019 Christian Schoenebeck |
3 |
* |
* |
4 |
* http://www.linuxsampler.org |
* http://www.linuxsampler.org |
5 |
* |
* |
24 |
class InstrumentScriptVMFunction_gig_set_dim_zone : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_gig_set_dim_zone : public VMEmptyResultFunction { |
25 |
public: |
public: |
26 |
InstrumentScriptVMFunction_gig_set_dim_zone(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_gig_set_dim_zone(InstrumentScriptVM* parent); |
27 |
int minRequiredArgs() const { return 3; } |
vmint minRequiredArgs() const OVERRIDE { return 3; } |
28 |
int maxAllowedArgs() const { return 3; } |
vmint maxAllowedArgs() const OVERRIDE { return 3; } |
29 |
bool acceptsArgType(int iArg, ExprType_t type) const; |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
30 |
ExprType_t argType(int iArg) const { return INT_EXPR; } |
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
31 |
VMFnResult* exec(VMFnArgs* args); |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
32 |
protected: |
protected: |
33 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
34 |
}; |
}; |
41 |
class InstrumentScriptVMFunction_same_region : public VMIntResultFunction { |
class InstrumentScriptVMFunction_same_region : public VMIntResultFunction { |
42 |
public: |
public: |
43 |
InstrumentScriptVMFunction_same_region(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_same_region(InstrumentScriptVM* parent); |
44 |
int minRequiredArgs() const { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
45 |
int maxAllowedArgs() const { return 2; } |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
46 |
bool acceptsArgType(int iArg, ExprType_t type) const { return INT_EXPR; } |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return INT_EXPR; } |
47 |
ExprType_t argType(int iArg) const { return INT_EXPR; } |
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
48 |
VMFnResult* exec(VMFnArgs* args); |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
49 |
protected: |
protected: |
50 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
51 |
}; |
}; |