14 |
namespace LinuxSampler { namespace gig { |
namespace LinuxSampler { namespace gig { |
15 |
|
|
16 |
InstrumentScriptVM::InstrumentScriptVM() : |
InstrumentScriptVM::InstrumentScriptVM() : |
17 |
LinuxSampler::InstrumentScriptVM(), m_fnGigSetDimZone(this) |
LinuxSampler::InstrumentScriptVM(), m_fnGigSetDimZone(this), |
18 |
|
m_fnSameRegion(this) |
19 |
{ |
{ |
20 |
} |
} |
21 |
|
|
65 |
VMFunction* InstrumentScriptVM::functionByName(const String& name) { |
VMFunction* InstrumentScriptVM::functionByName(const String& name) { |
66 |
// built-in script functions of this class |
// built-in script functions of this class |
67 |
if (name == "gig_set_dim_zone") return &m_fnGigSetDimZone; |
if (name == "gig_set_dim_zone") return &m_fnGigSetDimZone; |
68 |
|
if (name == "same_region") return &m_fnSameRegion; |
69 |
|
|
70 |
// built-in script functions of derived VM class |
// built-in script functions of derived VM class |
71 |
return ::LinuxSampler::InstrumentScriptVM::functionByName(name); |
return ::LinuxSampler::InstrumentScriptVM::functionByName(name); |