19 |
class EventGroup; |
class EventGroup; |
20 |
class InstrumentScriptVM; |
class InstrumentScriptVM; |
21 |
|
|
22 |
class InstrumentScriptVMFunction_play_note : public VMIntResultFunction { |
class InstrumentScriptVMFunction_play_note FINAL : public VMIntResultFunction { |
23 |
public: |
public: |
24 |
InstrumentScriptVMFunction_play_note(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_play_note(InstrumentScriptVM* parent); |
25 |
|
StdUnit_t returnUnitType(VMFnArgs* args) OVERRIDE { return VM_NO_UNIT; } |
26 |
|
bool returnsFinal(VMFnArgs* args) OVERRIDE { return false; } |
27 |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
28 |
vmint maxAllowedArgs() const OVERRIDE { return 4; } |
vmint maxAllowedArgs() const OVERRIDE { return 4; } |
29 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR;} |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR;} |
33 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
34 |
}; |
}; |
35 |
|
|
36 |
class InstrumentScriptVMFunction_set_controller : public VMIntResultFunction { |
class InstrumentScriptVMFunction_set_controller FINAL : public VMIntResultFunction { |
37 |
public: |
public: |
38 |
InstrumentScriptVMFunction_set_controller(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_set_controller(InstrumentScriptVM* parent); |
39 |
|
StdUnit_t returnUnitType(VMFnArgs* args) OVERRIDE { return VM_NO_UNIT; } |
40 |
|
bool returnsFinal(VMFnArgs* args) OVERRIDE { return false; } |
41 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
42 |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
43 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR;} |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR;} |
47 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
48 |
}; |
}; |
49 |
|
|
50 |
class InstrumentScriptVMFunction_ignore_event : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_ignore_event FINAL : public VMEmptyResultFunction { |
51 |
public: |
public: |
52 |
InstrumentScriptVMFunction_ignore_event(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_ignore_event(InstrumentScriptVM* parent); |
53 |
vmint minRequiredArgs() const OVERRIDE { return 0; } |
vmint minRequiredArgs() const OVERRIDE { return 0; } |
59 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
60 |
}; |
}; |
61 |
|
|
62 |
class InstrumentScriptVMFunction_ignore_controller : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_ignore_controller FINAL : public VMEmptyResultFunction { |
63 |
public: |
public: |
64 |
InstrumentScriptVMFunction_ignore_controller(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_ignore_controller(InstrumentScriptVM* parent); |
65 |
vmint minRequiredArgs() const OVERRIDE { return 0; } |
vmint minRequiredArgs() const OVERRIDE { return 0; } |
71 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
72 |
}; |
}; |
73 |
|
|
74 |
class InstrumentScriptVMFunction_note_off : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_note_off FINAL : public VMEmptyResultFunction { |
75 |
public: |
public: |
76 |
InstrumentScriptVMFunction_note_off(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_note_off(InstrumentScriptVM* parent); |
77 |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
83 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
84 |
}; |
}; |
85 |
|
|
86 |
class InstrumentScriptVMFunction_set_event_mark : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_set_event_mark FINAL : public VMEmptyResultFunction { |
87 |
public: |
public: |
88 |
InstrumentScriptVMFunction_set_event_mark(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_set_event_mark(InstrumentScriptVM* parent); |
89 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
95 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
96 |
}; |
}; |
97 |
|
|
98 |
class InstrumentScriptVMFunction_delete_event_mark : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_delete_event_mark FINAL : public VMEmptyResultFunction { |
99 |
public: |
public: |
100 |
InstrumentScriptVMFunction_delete_event_mark(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_delete_event_mark(InstrumentScriptVM* parent); |
101 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
107 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
108 |
}; |
}; |
109 |
|
|
110 |
class InstrumentScriptVMFunction_by_marks : public VMFunction { |
class InstrumentScriptVMFunction_by_marks FINAL : public VMFunction { |
111 |
public: |
public: |
112 |
InstrumentScriptVMFunction_by_marks(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_by_marks(InstrumentScriptVM* parent); |
113 |
|
StdUnit_t returnUnitType(VMFnArgs* args) OVERRIDE { return VM_NO_UNIT; } |
114 |
|
bool returnsFinal(VMFnArgs* args) OVERRIDE { return false; } |
115 |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
116 |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
117 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR;} |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR;} |
129 |
vmint arraySize() const OVERRIDE; |
vmint arraySize() const OVERRIDE; |
130 |
vmint evalIntElement(vmuint i) OVERRIDE; |
vmint evalIntElement(vmuint i) OVERRIDE; |
131 |
void assignIntElement(vmuint i, vmint value) OVERRIDE {} // ignore assignment |
void assignIntElement(vmuint i, vmint value) OVERRIDE {} // ignore assignment |
132 |
|
vmfloat unitFactorOfElement(vmuint i) const OVERRIDE { return VM_NO_FACTOR; } |
133 |
|
void assignElementUnitFactor(vmuint i, vmfloat factor) OVERRIDE {} // ignore assignment |
134 |
VMExpr* resultValue() OVERRIDE { return this; } |
VMExpr* resultValue() OVERRIDE { return this; } |
135 |
StmtFlags_t resultFlags() OVERRIDE { return flags; } |
StmtFlags_t resultFlags() OVERRIDE { return flags; } |
136 |
bool isConstExpr() const OVERRIDE { return false; } |
bool isConstExpr() const OVERRIDE { return false; } |
140 |
VMFnResult* successResult(EventGroup* eventGroup); |
VMFnResult* successResult(EventGroup* eventGroup); |
141 |
}; |
}; |
142 |
|
|
143 |
class InstrumentScriptVMFunction_change_vol : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_change_vol FINAL : public VMEmptyResultFunction { |
144 |
public: |
public: |
145 |
InstrumentScriptVMFunction_change_vol(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_change_vol(InstrumentScriptVM* parent); |
146 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
155 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
156 |
}; |
}; |
157 |
|
|
158 |
class InstrumentScriptVMFunction_change_tune : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_change_tune FINAL : public VMEmptyResultFunction { |
159 |
public: |
public: |
160 |
InstrumentScriptVMFunction_change_tune(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_change_tune(InstrumentScriptVM* parent); |
161 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
169 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
170 |
}; |
}; |
171 |
|
|
172 |
class InstrumentScriptVMFunction_change_pan : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_change_pan FINAL : public VMEmptyResultFunction { |
173 |
public: |
public: |
174 |
InstrumentScriptVMFunction_change_pan(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_change_pan(InstrumentScriptVM* parent); |
175 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
182 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
183 |
}; |
}; |
184 |
|
|
185 |
class InstrumentScriptVMFunction_change_cutoff : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_change_cutoff FINAL : public VMEmptyResultFunction { |
186 |
public: |
public: |
187 |
InstrumentScriptVMFunction_change_cutoff(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_change_cutoff(InstrumentScriptVM* parent); |
188 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
197 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
198 |
}; |
}; |
199 |
|
|
200 |
class InstrumentScriptVMFunction_change_reso : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_change_reso FINAL : public VMEmptyResultFunction { |
201 |
public: |
public: |
202 |
InstrumentScriptVMFunction_change_reso(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_change_reso(InstrumentScriptVM* parent); |
203 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
210 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
211 |
}; |
}; |
212 |
|
|
213 |
class InstrumentScriptVMFunction_change_attack : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_change_attack FINAL : public VMEmptyResultFunction { |
214 |
public: |
public: |
215 |
InstrumentScriptVMFunction_change_attack(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_change_attack(InstrumentScriptVM* parent); |
216 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
225 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
226 |
}; |
}; |
227 |
|
|
228 |
class InstrumentScriptVMFunction_change_decay : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_change_decay FINAL : public VMEmptyResultFunction { |
229 |
public: |
public: |
230 |
InstrumentScriptVMFunction_change_decay(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_change_decay(InstrumentScriptVM* parent); |
231 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
240 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
241 |
}; |
}; |
242 |
|
|
243 |
class InstrumentScriptVMFunction_change_release : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_change_release FINAL : public VMEmptyResultFunction { |
244 |
public: |
public: |
245 |
InstrumentScriptVMFunction_change_release(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_change_release(InstrumentScriptVM* parent); |
246 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
280 |
const StdUnit_t m_unit; |
const StdUnit_t m_unit; |
281 |
}; |
}; |
282 |
|
|
283 |
class InstrumentScriptVMFunction_change_sustain : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_sustain FINAL : public VMChangeSynthParamFunction { |
284 |
public: |
public: |
285 |
InstrumentScriptVMFunction_change_sustain(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_BEL,true) {} |
InstrumentScriptVMFunction_change_sustain(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_BEL,true) {} |
286 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
287 |
}; |
}; |
288 |
|
|
289 |
class InstrumentScriptVMFunction_change_cutoff_attack : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_cutoff_attack FINAL : public VMChangeSynthParamFunction { |
290 |
public: |
public: |
291 |
InstrumentScriptVMFunction_change_cutoff_attack(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_SECOND,true) {} |
InstrumentScriptVMFunction_change_cutoff_attack(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_SECOND,true) {} |
292 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
293 |
}; |
}; |
294 |
|
|
295 |
class InstrumentScriptVMFunction_change_cutoff_decay : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_cutoff_decay FINAL : public VMChangeSynthParamFunction { |
296 |
public: |
public: |
297 |
InstrumentScriptVMFunction_change_cutoff_decay(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_SECOND,true) {} |
InstrumentScriptVMFunction_change_cutoff_decay(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_SECOND,true) {} |
298 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
299 |
}; |
}; |
300 |
|
|
301 |
class InstrumentScriptVMFunction_change_cutoff_sustain : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_cutoff_sustain FINAL : public VMChangeSynthParamFunction { |
302 |
public: |
public: |
303 |
InstrumentScriptVMFunction_change_cutoff_sustain(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_BEL,true) {} |
InstrumentScriptVMFunction_change_cutoff_sustain(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_BEL,true) {} |
304 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
305 |
}; |
}; |
306 |
|
|
307 |
class InstrumentScriptVMFunction_change_cutoff_release : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_cutoff_release FINAL : public VMChangeSynthParamFunction { |
308 |
public: |
public: |
309 |
InstrumentScriptVMFunction_change_cutoff_release(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_SECOND,true) {} |
InstrumentScriptVMFunction_change_cutoff_release(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_SECOND,true) {} |
310 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
311 |
}; |
}; |
312 |
|
|
313 |
class InstrumentScriptVMFunction_change_amp_lfo_depth : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_amp_lfo_depth FINAL : public VMChangeSynthParamFunction { |
314 |
public: |
public: |
315 |
InstrumentScriptVMFunction_change_amp_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_NO_UNIT,false) {} |
InstrumentScriptVMFunction_change_amp_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_NO_UNIT,false) {} |
316 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
317 |
}; |
}; |
318 |
|
|
319 |
class InstrumentScriptVMFunction_change_amp_lfo_freq : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_amp_lfo_freq FINAL : public VMChangeSynthParamFunction { |
320 |
public: |
public: |
321 |
InstrumentScriptVMFunction_change_amp_lfo_freq(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_HERTZ,true) {} |
InstrumentScriptVMFunction_change_amp_lfo_freq(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_HERTZ,true) {} |
322 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
323 |
}; |
}; |
324 |
|
|
325 |
class InstrumentScriptVMFunction_change_cutoff_lfo_depth : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_cutoff_lfo_depth FINAL : public VMChangeSynthParamFunction { |
326 |
public: |
public: |
327 |
InstrumentScriptVMFunction_change_cutoff_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_NO_UNIT,false) {} |
InstrumentScriptVMFunction_change_cutoff_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_NO_UNIT,false) {} |
328 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
329 |
}; |
}; |
330 |
|
|
331 |
class InstrumentScriptVMFunction_change_cutoff_lfo_freq : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_cutoff_lfo_freq FINAL : public VMChangeSynthParamFunction { |
332 |
public: |
public: |
333 |
InstrumentScriptVMFunction_change_cutoff_lfo_freq(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_HERTZ,true) {} |
InstrumentScriptVMFunction_change_cutoff_lfo_freq(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_HERTZ,true) {} |
334 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
335 |
}; |
}; |
336 |
|
|
337 |
class InstrumentScriptVMFunction_change_pitch_lfo_depth : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_pitch_lfo_depth FINAL : public VMChangeSynthParamFunction { |
338 |
public: |
public: |
339 |
InstrumentScriptVMFunction_change_pitch_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_NO_UNIT,false) {} |
InstrumentScriptVMFunction_change_pitch_lfo_depth(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_NO_UNIT,false) {} |
340 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
341 |
}; |
}; |
342 |
|
|
343 |
class InstrumentScriptVMFunction_change_pitch_lfo_freq : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_pitch_lfo_freq FINAL : public VMChangeSynthParamFunction { |
344 |
public: |
public: |
345 |
InstrumentScriptVMFunction_change_pitch_lfo_freq(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_HERTZ,true) {} |
InstrumentScriptVMFunction_change_pitch_lfo_freq(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,true,VM_HERTZ,true) {} |
346 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
347 |
}; |
}; |
348 |
|
|
349 |
class InstrumentScriptVMFunction_change_vol_time : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_vol_time FINAL : public VMChangeSynthParamFunction { |
350 |
public: |
public: |
351 |
InstrumentScriptVMFunction_change_vol_time(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,false,VM_SECOND,true) {} |
InstrumentScriptVMFunction_change_vol_time(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,false,VM_SECOND,true) {} |
352 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
353 |
}; |
}; |
354 |
|
|
355 |
class InstrumentScriptVMFunction_change_tune_time : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_tune_time FINAL : public VMChangeSynthParamFunction { |
356 |
public: |
public: |
357 |
InstrumentScriptVMFunction_change_tune_time(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,false,VM_SECOND,true) {} |
InstrumentScriptVMFunction_change_tune_time(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,false,VM_SECOND,true) {} |
358 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
359 |
}; |
}; |
360 |
|
|
361 |
class InstrumentScriptVMFunction_change_pan_time : public VMChangeSynthParamFunction { |
class InstrumentScriptVMFunction_change_pan_time FINAL : public VMChangeSynthParamFunction { |
362 |
public: |
public: |
363 |
InstrumentScriptVMFunction_change_pan_time(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,false,VM_SECOND,true) {} |
InstrumentScriptVMFunction_change_pan_time(InstrumentScriptVM* parent) : VMChangeSynthParamFunction(parent,false,VM_SECOND,true) {} |
364 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
378 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
379 |
}; |
}; |
380 |
|
|
381 |
class InstrumentScriptVMFunction_change_vol_curve : public VMChangeFadeCurveFunction { |
class InstrumentScriptVMFunction_change_vol_curve FINAL : public VMChangeFadeCurveFunction { |
382 |
public: |
public: |
383 |
InstrumentScriptVMFunction_change_vol_curve(InstrumentScriptVM* parent) : VMChangeFadeCurveFunction(parent) {} |
InstrumentScriptVMFunction_change_vol_curve(InstrumentScriptVM* parent) : VMChangeFadeCurveFunction(parent) {} |
384 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
385 |
}; |
}; |
386 |
|
|
387 |
class InstrumentScriptVMFunction_change_tune_curve : public VMChangeFadeCurveFunction { |
class InstrumentScriptVMFunction_change_tune_curve FINAL : public VMChangeFadeCurveFunction { |
388 |
public: |
public: |
389 |
InstrumentScriptVMFunction_change_tune_curve(InstrumentScriptVM* parent) : VMChangeFadeCurveFunction(parent) {} |
InstrumentScriptVMFunction_change_tune_curve(InstrumentScriptVM* parent) : VMChangeFadeCurveFunction(parent) {} |
390 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
391 |
}; |
}; |
392 |
|
|
393 |
class InstrumentScriptVMFunction_change_pan_curve : public VMChangeFadeCurveFunction { |
class InstrumentScriptVMFunction_change_pan_curve FINAL : public VMChangeFadeCurveFunction { |
394 |
public: |
public: |
395 |
InstrumentScriptVMFunction_change_pan_curve(InstrumentScriptVM* parent) : VMChangeFadeCurveFunction(parent) {} |
InstrumentScriptVMFunction_change_pan_curve(InstrumentScriptVM* parent) : VMChangeFadeCurveFunction(parent) {} |
396 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
397 |
}; |
}; |
398 |
|
|
399 |
class InstrumentScriptVMFunction_fade_in : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_fade_in FINAL : public VMEmptyResultFunction { |
400 |
public: |
public: |
401 |
InstrumentScriptVMFunction_fade_in(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_fade_in(InstrumentScriptVM* parent); |
402 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
410 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
411 |
}; |
}; |
412 |
|
|
413 |
class InstrumentScriptVMFunction_fade_out : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_fade_out FINAL : public VMEmptyResultFunction { |
414 |
public: |
public: |
415 |
InstrumentScriptVMFunction_fade_out(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_fade_out(InstrumentScriptVM* parent); |
416 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
424 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
425 |
}; |
}; |
426 |
|
|
427 |
class InstrumentScriptVMFunction_get_event_par : public VMIntResultFunction { |
class InstrumentScriptVMFunction_get_event_par FINAL : public VMIntResultFunction { |
428 |
public: |
public: |
429 |
InstrumentScriptVMFunction_get_event_par(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_get_event_par(InstrumentScriptVM* parent); |
430 |
|
StdUnit_t returnUnitType(VMFnArgs* args) OVERRIDE { return VM_NO_UNIT; } |
431 |
|
bool returnsFinal(VMFnArgs* args) OVERRIDE { return false; } |
432 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
433 |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
434 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR;} |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR;} |
438 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
439 |
}; |
}; |
440 |
|
|
441 |
class InstrumentScriptVMFunction_set_event_par : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_set_event_par FINAL : public VMEmptyResultFunction { |
442 |
public: |
public: |
443 |
InstrumentScriptVMFunction_set_event_par(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_set_event_par(InstrumentScriptVM* parent); |
444 |
vmint minRequiredArgs() const OVERRIDE { return 3; } |
vmint minRequiredArgs() const OVERRIDE { return 3; } |
450 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
451 |
}; |
}; |
452 |
|
|
453 |
class InstrumentScriptVMFunction_change_note : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_change_note FINAL : public VMEmptyResultFunction { |
454 |
public: |
public: |
455 |
InstrumentScriptVMFunction_change_note(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_change_note(InstrumentScriptVM* parent); |
456 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
462 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
463 |
}; |
}; |
464 |
|
|
465 |
class InstrumentScriptVMFunction_change_velo : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_change_velo FINAL : public VMEmptyResultFunction { |
466 |
public: |
public: |
467 |
InstrumentScriptVMFunction_change_velo(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_change_velo(InstrumentScriptVM* parent); |
468 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
474 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
475 |
}; |
}; |
476 |
|
|
477 |
class InstrumentScriptVMFunction_change_play_pos : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_change_play_pos FINAL : public VMEmptyResultFunction { |
478 |
public: |
public: |
479 |
InstrumentScriptVMFunction_change_play_pos(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_change_play_pos(InstrumentScriptVM* parent); |
480 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
488 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
489 |
}; |
}; |
490 |
|
|
491 |
class InstrumentScriptVMFunction_event_status : public VMIntResultFunction { |
class InstrumentScriptVMFunction_event_status FINAL : public VMIntResultFunction { |
492 |
public: |
public: |
493 |
InstrumentScriptVMFunction_event_status(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_event_status(InstrumentScriptVM* parent); |
494 |
|
StdUnit_t returnUnitType(VMFnArgs* args) OVERRIDE { return VM_NO_UNIT; } |
495 |
|
bool returnsFinal(VMFnArgs* args) OVERRIDE { return false; } |
496 |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
497 |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
498 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR;} |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR;} |
502 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
503 |
}; |
}; |
504 |
|
|
505 |
class InstrumentScriptVMFunction_callback_status : public VMIntResultFunction { |
class InstrumentScriptVMFunction_callback_status FINAL : public VMIntResultFunction { |
506 |
public: |
public: |
507 |
InstrumentScriptVMFunction_callback_status(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_callback_status(InstrumentScriptVM* parent); |
508 |
|
StdUnit_t returnUnitType(VMFnArgs* args) OVERRIDE { return VM_NO_UNIT; } |
509 |
|
bool returnsFinal(VMFnArgs* args) OVERRIDE { return false; } |
510 |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
511 |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
512 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR;} |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR;} |
517 |
}; |
}; |
518 |
|
|
519 |
// overrides core wait() implementation |
// overrides core wait() implementation |
520 |
class InstrumentScriptVMFunction_wait : public CoreVMFunction_wait { |
class InstrumentScriptVMFunction_wait FINAL : public CoreVMFunction_wait { |
521 |
public: |
public: |
522 |
InstrumentScriptVMFunction_wait(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_wait(InstrumentScriptVM* parent); |
523 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
524 |
}; |
}; |
525 |
|
|
526 |
class InstrumentScriptVMFunction_stop_wait : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_stop_wait FINAL : public VMEmptyResultFunction { |
527 |
public: |
public: |
528 |
InstrumentScriptVMFunction_stop_wait(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_stop_wait(InstrumentScriptVM* parent); |
529 |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
535 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
536 |
}; |
}; |
537 |
|
|
538 |
class InstrumentScriptVMFunction_abort : public VMEmptyResultFunction { |
class InstrumentScriptVMFunction_abort FINAL : public VMEmptyResultFunction { |
539 |
public: |
public: |
540 |
InstrumentScriptVMFunction_abort(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_abort(InstrumentScriptVM* parent); |
541 |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
547 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
548 |
}; |
}; |
549 |
|
|
550 |
class InstrumentScriptVMFunction_fork : public VMIntResultFunction { |
class InstrumentScriptVMFunction_fork FINAL : public VMIntResultFunction { |
551 |
public: |
public: |
552 |
InstrumentScriptVMFunction_fork(InstrumentScriptVM* parent); |
InstrumentScriptVMFunction_fork(InstrumentScriptVM* parent); |
553 |
|
StdUnit_t returnUnitType(VMFnArgs* args) OVERRIDE { return VM_NO_UNIT; } |
554 |
|
bool returnsFinal(VMFnArgs* args) OVERRIDE { return false; } |
555 |
vmint minRequiredArgs() const OVERRIDE { return 0; } |
vmint minRequiredArgs() const OVERRIDE { return 0; } |
556 |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
557 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR;} |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR;} |