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 |
* |
* |
249 |
VMFnResult* exec(VMFnArgs* args); |
VMFnResult* exec(VMFnArgs* args); |
250 |
}; |
}; |
251 |
|
|
252 |
|
class InstrumentScriptVMFunction_change_cutoff_attack : public VMChangeSynthParamFunction { |
253 |
|
public: |
254 |
|
InstrumentScriptVMFunction_change_cutoff_attack(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
255 |
|
VMFnResult* exec(VMFnArgs* args); |
256 |
|
}; |
257 |
|
|
258 |
|
class InstrumentScriptVMFunction_change_cutoff_decay : public VMChangeSynthParamFunction { |
259 |
|
public: |
260 |
|
InstrumentScriptVMFunction_change_cutoff_decay(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
261 |
|
VMFnResult* exec(VMFnArgs* args); |
262 |
|
}; |
263 |
|
|
264 |
|
class InstrumentScriptVMFunction_change_cutoff_sustain : public VMChangeSynthParamFunction { |
265 |
|
public: |
266 |
|
InstrumentScriptVMFunction_change_cutoff_sustain(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
267 |
|
VMFnResult* exec(VMFnArgs* args); |
268 |
|
}; |
269 |
|
|
270 |
|
class InstrumentScriptVMFunction_change_cutoff_release : public VMChangeSynthParamFunction { |
271 |
|
public: |
272 |
|
InstrumentScriptVMFunction_change_cutoff_release(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
273 |
|
VMFnResult* exec(VMFnArgs* args); |
274 |
|
}; |
275 |
|
|
276 |
class InstrumentScriptVMFunction_change_amp_lfo_depth : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_amp_lfo_depth : public VMChangeSynthParamFunction { |
277 |
public: |
public: |
278 |
InstrumentScriptVMFunction_change_amp_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
InstrumentScriptVMFunction_change_amp_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
285 |
VMFnResult* exec(VMFnArgs* args); |
VMFnResult* exec(VMFnArgs* args); |
286 |
}; |
}; |
287 |
|
|
288 |
|
class InstrumentScriptVMFunction_change_cutoff_lfo_depth : public VMChangeSynthParamFunction { |
289 |
|
public: |
290 |
|
InstrumentScriptVMFunction_change_cutoff_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
291 |
|
VMFnResult* exec(VMFnArgs* args); |
292 |
|
}; |
293 |
|
|
294 |
|
class InstrumentScriptVMFunction_change_cutoff_lfo_freq : public VMChangeSynthParamFunction { |
295 |
|
public: |
296 |
|
InstrumentScriptVMFunction_change_cutoff_lfo_freq(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
297 |
|
VMFnResult* exec(VMFnArgs* args); |
298 |
|
}; |
299 |
|
|
300 |
class InstrumentScriptVMFunction_change_pitch_lfo_depth : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_pitch_lfo_depth : public VMChangeSynthParamFunction { |
301 |
public: |
public: |
302 |
InstrumentScriptVMFunction_change_pitch_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
InstrumentScriptVMFunction_change_pitch_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
321 |
VMFnResult* exec(VMFnArgs* args); |
VMFnResult* exec(VMFnArgs* args); |
322 |
}; |
}; |
323 |
|
|
324 |
|
class InstrumentScriptVMFunction_change_pan_time : public VMChangeSynthParamFunction { |
325 |
|
public: |
326 |
|
InstrumentScriptVMFunction_change_pan_time(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent) {} |
327 |
|
VMFnResult* exec(VMFnArgs* args); |
328 |
|
}; |
329 |
|
|
330 |
class VMChangeFadeCurveFunction : public VMEmptyResultFunction { |
class VMChangeFadeCurveFunction : public VMEmptyResultFunction { |
331 |
public: |
public: |
332 |
VMChangeFadeCurveFunction(InstrumentScriptVM* parent) : m_vm(parent) {} |
VMChangeFadeCurveFunction(InstrumentScriptVM* parent) : m_vm(parent) {} |
353 |
VMFnResult* exec(VMFnArgs* args); |
VMFnResult* exec(VMFnArgs* args); |
354 |
}; |
}; |
355 |
|
|
356 |
|
class InstrumentScriptVMFunction_change_pan_curve : public VMChangeFadeCurveFunction { |
357 |
|
public: |
358 |
|
InstrumentScriptVMFunction_change_pan_curve(InstrumentScriptVM* parent) : VMChangeFadeCurveFunction(parent) {} |
359 |
|
VMFnResult* exec(VMFnArgs* args); |
360 |
|
}; |
361 |
|
|
362 |
class InstrumentScriptVMFunction_fade_in : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_fade_in : public VMEmptyResultFunction { |
363 |
public: |
public: |
364 |
InstrumentScriptVMFunction_fade_in(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_fade_in(InstrumentScriptVM* parent); |
489 |
class InstrumentScriptVMFunction_abort : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_abort : public VMEmptyResultFunction { |
490 |
public: |
public: |
491 |
InstrumentScriptVMFunction_abort(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_abort(InstrumentScriptVM* parent); |
492 |
int minRequiredArgs() const { return 1; } |
int minRequiredArgs() const OVERRIDE { return 1; } |
493 |
int maxAllowedArgs() const { return 1; } |
int maxAllowedArgs() const OVERRIDE { return 1; } |
494 |
bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR; } |
bool acceptsArgType(int iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR; } |
495 |
ExprType_t argType(int iArg) const { return INT_EXPR; } |
ExprType_t argType(int iArg) const OVERRIDE { return INT_EXPR; } |
496 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
497 |
protected: |
protected: |
498 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |