--- linuxsampler/trunk/src/engines/common/InstrumentScriptVM.h 2014/06/05 00:16:25 2594 +++ linuxsampler/trunk/src/engines/common/InstrumentScriptVM.h 2014/06/05 19:39:12 2596 @@ -13,6 +13,7 @@ #include "../../common/global.h" #include "../../scriptvm/ScriptVM.h" #include "Event.h" +#include "InstrumentScriptVMFunctions.h" namespace LinuxSampler { @@ -30,6 +31,7 @@ public: InstrumentScriptVM(); VMExecStatus_t exec(VMParserContext* parserCtx, ScriptEvent* event); + VMFunction* functionByName(const String& name) OVERRIDE; std::map builtInIntVariables() OVERRIDE; std::map builtInIntArrayVariables() OVERRIDE; std::map builtInConstIntVariables() OVERRIDE; @@ -46,6 +48,11 @@ //VMIntArray m_KEY_DOWN; //TODO: ... //VMIntArray m_POLY_AT; //TODO: ... //int m_POLY_AT_NUM; //TODO: ... + + // buil-in script functions + InstrumentScriptVMFunction_play_note m_fnPlayNote; + + friend class InstrumentScriptVMFunction_play_note; }; } // namespace LinuxSampler