This patch should bring VST to host synchronization for LMMS.
(e.g. for plugins like dBlue Glitch).
Song position computation is done via timer created from remote
plugins actual sample position, while it is also being
synchronized when needed, from LMMS host, e.g. when
there is start, stop action, loops mode or other song playback
positional change.
Following properties of VstTimeInfo should be now implemented:
ppqPos
barStartPos
cycleStartPos
cycleEndPos
timeSigNumerator
timeSigDenominator
New version, using shared memory instead of messages updated.
It should be faster with more accurate sync as well.
Note:
It seems adding VST plugins on master channel now works as well, anyway may still hung or crush when are added while song is playing..
Based on 0010-VST-effect-control-window-re-design.patch
New patch version added support for windows (QSharedMemory).
Also this is now based on actual git stable branch.
New patch added, now it takes ftok parameter from include/VST_sync_shm.h, Qt version was running quite well for me on windows XP, but linux version had problems on virtualbox, I think frequent access into shared memory might be bottle neck, but don't know for sure. I have moved parameter for VST sync frequency into that header file as well. Todo: possibly some configuration file or to remove ftok functions.
Added new patch, LMMS should not crash or freez when loading shared memory will fail and it should fall back to normal mode. ( I was not able to reproduce previous problem on Linux and virtualbox, it seems I possibly run out of free video resources.)
Added new patch, new option in global settings to turn VST sync on/off, with no localisations yet.
New patch added, a supposed fox for proper samplerate initialization, if samplerate is passed via shared memory, it seems few plugins require to set that information during editor init part (like Zebra2, Zebralette etc.).
New patch added, removing sync timer from host should bring lower sync latency and sound crackling. Sync values are now added into shared memory as they are changed.
Hi Mike,
I am having issues with VST such as dbglitch and zebra arp out of sync. Will this patch resolve this? How do I execute it?
Thanks
-=D