HRESULT __stdcall OnPosition(int actualpos) {return 0;}
How does it work?
In fact, I would like to stop a plugin 4 beat after activating it. I have tried the following code but it doesn\'t work:
HRESULT __stdcall CSamplesCatching::OnStart(int pos,int deck)
{
Bpm=SongBpm?SongBpm:22050;
NextAction = pos+(4*Bpm);
return S_OK;
}
HRESULT __stdcall CSamplesCatching::OnPosition(int actualpos)
{
if (actualpos==NextAction)
{
SendCommand(\"effect_activate\",0); //Arrêt du Plugin
}
return S_OK;
}
How does it work?
In fact, I would like to stop a plugin 4 beat after activating it. I have tried the following code but it doesn\'t work:
HRESULT __stdcall CSamplesCatching::OnStart(int pos,int deck)
{
Bpm=SongBpm?SongBpm:22050;
NextAction = pos+(4*Bpm);
return S_OK;
}
HRESULT __stdcall CSamplesCatching::OnPosition(int actualpos)
{
if (actualpos==NextAction)
{
SendCommand(\"effect_activate\",0); //Arrêt du Plugin
}
return S_OK;
}
Posté Mon 13 Aug 07 @ 2:50 pm