--- linuxsampler/trunk/src/engines/common/InstrumentScriptVMDynVars.cpp 2016/07/13 15:51:06 2942 +++ linuxsampler/trunk/src/engines/common/InstrumentScriptVMDynVars.cpp 2016/07/15 15:29:04 2948 @@ -27,4 +27,12 @@ double(pEngine->SampleRate) * 1000.0 ); } + int InstrumentScriptVMDynVar_NI_CALLBACK_ID::evalInt() { + + AbstractEngineChannel* pEngineChannel = + static_cast(m_vm->m_event->cause.pEngineChannel); + + return pEngineChannel->GetScriptCallbackID(m_vm->m_event); + } + } // namespace LinuxSampler