13 |
#include "../../common/global_private.h" |
#include "../../common/global_private.h" |
14 |
|
|
15 |
namespace LinuxSampler { |
namespace LinuxSampler { |
16 |
|
|
17 |
// play_note() function |
// play_note() function |
18 |
|
|
19 |
InstrumentScriptVMFunction_play_note::InstrumentScriptVMFunction_play_note(InstrumentScriptVM* parent) |
InstrumentScriptVMFunction_play_note::InstrumentScriptVMFunction_play_note(InstrumentScriptVM* parent) |
1059 |
} |
} |
1060 |
|
|
1061 |
// change_reso() function |
// change_reso() function |
1062 |
|
|
1063 |
InstrumentScriptVMFunction_change_reso::InstrumentScriptVMFunction_change_reso(InstrumentScriptVM* parent) |
InstrumentScriptVMFunction_change_reso::InstrumentScriptVMFunction_change_reso(InstrumentScriptVM* parent) |
1064 |
: m_vm(parent) |
: m_vm(parent) |
1065 |
{ |
{ |
1152 |
|
|
1153 |
return successResult(); |
return successResult(); |
1154 |
} |
} |
1155 |
|
|
1156 |
// change_attack() function |
// change_attack() function |
1157 |
|
// |
1158 |
|
//TODO: Derive from generalized, shared template class |
1159 |
|
// VMChangeSynthParamFunction instead (like e.g. change_cutoff_attack() |
1160 |
|
// implementation below already does) to ease maintenance. |
1161 |
|
|
1162 |
InstrumentScriptVMFunction_change_attack::InstrumentScriptVMFunction_change_attack(InstrumentScriptVM* parent) |
InstrumentScriptVMFunction_change_attack::InstrumentScriptVMFunction_change_attack(InstrumentScriptVM* parent) |
1163 |
: m_vm(parent) |
: m_vm(parent) |
1290 |
} |
} |
1291 |
|
|
1292 |
// change_decay() function |
// change_decay() function |
1293 |
|
// |
1294 |
|
//TODO: Derive from generalized, shared template class |
1295 |
|
// VMChangeSynthParamFunction instead (like e.g. change_cutoff_decay() |
1296 |
|
// implementation below already does) to ease maintenance. |
1297 |
|
|
1298 |
InstrumentScriptVMFunction_change_decay::InstrumentScriptVMFunction_change_decay(InstrumentScriptVM* parent) |
InstrumentScriptVMFunction_change_decay::InstrumentScriptVMFunction_change_decay(InstrumentScriptVM* parent) |
1299 |
: m_vm(parent) |
: m_vm(parent) |
1300 |
{ |
{ |
1426 |
} |
} |
1427 |
|
|
1428 |
// change_release() function |
// change_release() function |
1429 |
|
// |
1430 |
|
//TODO: Derive from generalized, shared template class |
1431 |
|
// VMChangeSynthParamFunction instead (like e.g. change_cutoff_release() |
1432 |
|
// implementation below already does) to ease maintenance. |
1433 |
|
|
1434 |
InstrumentScriptVMFunction_change_release::InstrumentScriptVMFunction_change_release(InstrumentScriptVM* parent) |
InstrumentScriptVMFunction_change_release::InstrumentScriptVMFunction_change_release(InstrumentScriptVM* parent) |
1435 |
: m_vm(parent) |
: m_vm(parent) |
1436 |
{ |
{ |
2326 |
e.Type = Event::type_kill_note; |
e.Type = Event::type_kill_note; |
2327 |
e.Param.Note.ID = id.noteID(); |
e.Param.Note.ID = id.noteID(); |
2328 |
e.Param.Note.Key = pNote->hostKey; |
e.Param.Note.Key = pNote->hostKey; |
2329 |
|
|
2330 |
pEngineChannel->ScheduleEventMicroSec(&e, duration + 1); |
pEngineChannel->ScheduleEventMicroSec(&e, duration + 1); |
2331 |
} |
} |
2332 |
} |
} |
2660 |
|
|
2661 |
InstrumentScriptVMFunction_wait::InstrumentScriptVMFunction_wait(InstrumentScriptVM* parent) |
InstrumentScriptVMFunction_wait::InstrumentScriptVMFunction_wait(InstrumentScriptVM* parent) |
2662 |
: CoreVMFunction_wait(parent) |
: CoreVMFunction_wait(parent) |
2663 |
{ |
{ |
2664 |
} |
} |
2665 |
|
|
2666 |
VMFnResult* InstrumentScriptVMFunction_wait::exec(VMFnArgs* args) { |
VMFnResult* InstrumentScriptVMFunction_wait::exec(VMFnArgs* args) { |
2676 |
|
|
2677 |
InstrumentScriptVMFunction_stop_wait::InstrumentScriptVMFunction_stop_wait(InstrumentScriptVM* parent) |
InstrumentScriptVMFunction_stop_wait::InstrumentScriptVMFunction_stop_wait(InstrumentScriptVM* parent) |
2678 |
: m_vm(parent) |
: m_vm(parent) |
2679 |
{ |
{ |
2680 |
} |
} |
2681 |
|
|
2682 |
VMFnResult* InstrumentScriptVMFunction_stop_wait::exec(VMFnArgs* args) { |
VMFnResult* InstrumentScriptVMFunction_stop_wait::exec(VMFnArgs* args) { |