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 = 1000000, |
241 |
|
int T_minValue = 0> |
242 |
VMFnResult* execTemplate(VMFnArgs* args, const char* functionName); |
VMFnResult* execTemplate(VMFnArgs* args, const char* functionName); |
243 |
protected: |
protected: |
244 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
268 |
VMFnResult* exec(VMFnArgs* args); |
VMFnResult* exec(VMFnArgs* args); |
269 |
}; |
}; |
270 |
|
|
271 |
|
class InstrumentScriptVMFunction_change_vol_time : public VMChangeSynthParamFunction { |
272 |
|
public: |
273 |
|
InstrumentScriptVMFunction_change_vol_time(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
274 |
|
VMFnResult* exec(VMFnArgs* args); |
275 |
|
}; |
276 |
|
|
277 |
|
class InstrumentScriptVMFunction_change_tune_time : public VMChangeSynthParamFunction { |
278 |
|
public: |
279 |
|
InstrumentScriptVMFunction_change_tune_time(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
280 |
|
VMFnResult* exec(VMFnArgs* args); |
281 |
|
}; |
282 |
|
|
283 |
|
class InstrumentScriptVMFunction_fade_in : public VMEmptyResultFunction { |
284 |
|
public: |
285 |
|
InstrumentScriptVMFunction_fade_in(InstrumentScriptVM* parent); |
286 |
|
int minRequiredArgs() const { return 2; } |
287 |
|
int maxAllowedArgs() const { return 2; } |
288 |
|
bool acceptsArgType(int iArg, ExprType_t type) const; |
289 |
|
ExprType_t argType(int iArg) const { return INT_EXPR; } |
290 |
|
VMFnResult* exec(VMFnArgs* args); |
291 |
|
protected: |
292 |
|
InstrumentScriptVM* m_vm; |
293 |
|
}; |
294 |
|
|
295 |
|
class InstrumentScriptVMFunction_fade_out : public VMEmptyResultFunction { |
296 |
|
public: |
297 |
|
InstrumentScriptVMFunction_fade_out(InstrumentScriptVM* parent); |
298 |
|
int minRequiredArgs() const { return 2; } |
299 |
|
int maxAllowedArgs() const { return 3; } |
300 |
|
bool acceptsArgType(int iArg, ExprType_t type) const; |
301 |
|
ExprType_t argType(int iArg) const { return INT_EXPR; } |
302 |
|
VMFnResult* exec(VMFnArgs* args); |
303 |
|
protected: |
304 |
|
InstrumentScriptVM* m_vm; |
305 |
|
}; |
306 |
|
|
307 |
class InstrumentScriptVMFunction_event_status : public VMIntResultFunction { |
class InstrumentScriptVMFunction_event_status : public VMIntResultFunction { |
308 |
public: |
public: |
309 |
InstrumentScriptVMFunction_event_status(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_event_status(InstrumentScriptVM* parent); |