243 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
244 |
}; |
}; |
245 |
|
|
246 |
|
class InstrumentScriptVMFunction_change_sustain : public VMChangeSynthParamFunction { |
247 |
|
public: |
248 |
|
InstrumentScriptVMFunction_change_sustain(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
249 |
|
VMFnResult* exec(VMFnArgs* args); |
250 |
|
}; |
251 |
|
|
252 |
class InstrumentScriptVMFunction_change_amp_lfo_depth : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_amp_lfo_depth : public VMChangeSynthParamFunction { |
253 |
public: |
public: |
254 |
InstrumentScriptVMFunction_change_amp_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
InstrumentScriptVMFunction_change_amp_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
407 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
408 |
}; |
}; |
409 |
|
|
410 |
|
class InstrumentScriptVMFunction_callback_status : public VMIntResultFunction { |
411 |
|
public: |
412 |
|
InstrumentScriptVMFunction_callback_status(InstrumentScriptVM* parent); |
413 |
|
int minRequiredArgs() const { return 1; } |
414 |
|
int maxAllowedArgs() const { return 1; } |
415 |
|
bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;} |
416 |
|
ExprType_t argType(int iArg) const { return INT_EXPR; } |
417 |
|
VMFnResult* exec(VMFnArgs* args); |
418 |
|
protected: |
419 |
|
InstrumentScriptVM* m_vm; |
420 |
|
}; |
421 |
|
|
422 |
// overrides core wait() implementation |
// overrides core wait() implementation |
423 |
class InstrumentScriptVMFunction_wait : public CoreVMFunction_wait { |
class InstrumentScriptVMFunction_wait : public CoreVMFunction_wait { |
424 |
public: |
public: |
433 |
int maxAllowedArgs() const { return 2; } |
int maxAllowedArgs() const { return 2; } |
434 |
bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;} |
bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;} |
435 |
ExprType_t argType(int iArg) const { return INT_EXPR; } |
ExprType_t argType(int iArg) const { return INT_EXPR; } |
436 |
|
VMFnResult* exec(VMFnArgs* args); |
437 |
|
protected: |
438 |
|
InstrumentScriptVM* m_vm; |
439 |
|
}; |
440 |
|
|
441 |
|
class InstrumentScriptVMFunction_abort : public VMEmptyResultFunction { |
442 |
|
public: |
443 |
|
InstrumentScriptVMFunction_abort(InstrumentScriptVM* parent); |
444 |
|
int minRequiredArgs() const { return 1; } |
445 |
|
int maxAllowedArgs() const { return 1; } |
446 |
|
bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR; } |
447 |
|
ExprType_t argType(int iArg) const { return INT_EXPR; } |
448 |
|
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
449 |
|
protected: |
450 |
|
InstrumentScriptVM* m_vm; |
451 |
|
}; |
452 |
|
|
453 |
|
class InstrumentScriptVMFunction_fork : public VMIntResultFunction { |
454 |
|
public: |
455 |
|
InstrumentScriptVMFunction_fork(InstrumentScriptVM* parent); |
456 |
|
int minRequiredArgs() const { return 0; } |
457 |
|
int maxAllowedArgs() const { return 2; } |
458 |
|
bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;} |
459 |
|
ExprType_t argType(int iArg) const { return INT_EXPR; } |
460 |
VMFnResult* exec(VMFnArgs* args); |
VMFnResult* exec(VMFnArgs* args); |
461 |
protected: |
protected: |
462 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |