165 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
166 |
}; |
}; |
167 |
|
|
168 |
|
class InstrumentScriptVMFunction_change_cutoff : public VMEmptyResultFunction { |
169 |
|
public: |
170 |
|
InstrumentScriptVMFunction_change_cutoff(InstrumentScriptVM* parent); |
171 |
|
int minRequiredArgs() const { return 2; } |
172 |
|
int maxAllowedArgs() const { return 2; } |
173 |
|
bool acceptsArgType(int iArg, ExprType_t type) const; |
174 |
|
ExprType_t argType(int iArg) const { return INT_EXPR; } |
175 |
|
VMFnResult* exec(VMFnArgs* args); |
176 |
|
protected: |
177 |
|
InstrumentScriptVM* m_vm; |
178 |
|
}; |
179 |
|
|
180 |
|
class InstrumentScriptVMFunction_change_reso : public VMEmptyResultFunction { |
181 |
|
public: |
182 |
|
InstrumentScriptVMFunction_change_reso(InstrumentScriptVM* parent); |
183 |
|
int minRequiredArgs() const { return 2; } |
184 |
|
int maxAllowedArgs() const { return 2; } |
185 |
|
bool acceptsArgType(int iArg, ExprType_t type) const; |
186 |
|
ExprType_t argType(int iArg) const { return INT_EXPR; } |
187 |
|
VMFnResult* exec(VMFnArgs* args); |
188 |
|
protected: |
189 |
|
InstrumentScriptVM* m_vm; |
190 |
|
}; |
191 |
|
|
192 |
|
class InstrumentScriptVMFunction_event_status : public VMIntResultFunction { |
193 |
|
public: |
194 |
|
InstrumentScriptVMFunction_event_status(InstrumentScriptVM* parent); |
195 |
|
int minRequiredArgs() const { return 1; } |
196 |
|
int maxAllowedArgs() const { return 1; } |
197 |
|
bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;} |
198 |
|
ExprType_t argType(int iArg) const { return INT_EXPR; } |
199 |
|
VMFnResult* exec(VMFnArgs* args); |
200 |
|
protected: |
201 |
|
InstrumentScriptVM* m_vm; |
202 |
|
}; |
203 |
|
|
204 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |
205 |
|
|
206 |
#endif // LS_INSTRSCRIPTVMFUNCTIONS_H |
#endif // LS_INSTRSCRIPTVMFUNCTIONS_H |