Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VST-host sync doesnt work #4498

Closed
andydld opened this issue Jul 20, 2018 · 5 comments · Fixed by #4540
Closed

VST-host sync doesnt work #4498

andydld opened this issue Jul 20, 2018 · 5 comments · Fixed by #4540
Assignees

Comments

@andydld
Copy link

andydld commented Jul 20, 2018

When you use the AcidBox-VSTi in "host sync"-mode, it starts and keeps playing since the plugin is loaded. LMMS doesnt control the play/stop (but it should). You can try this with the demo-version:

https://www.audioblast.me/acidbox.html

With other DAWs this works like excepted.

I talked to AudioBlast, the maker of AcidBox and they wrote to me the following lines:

"in fact, LMMS (or Vestige) doesn't transmit the host "transport bar" flags : the play / stop / loop etc.. are never sent to the plugin.
If you have access to the source code of LMMS/Vestige, search for kVstTransportPlaying and kVstTransportChanged ! "

Tested with LMMS 1.2.0 RC6 on Windows 10 und Windows 8.1.

@lukas-w
Copy link
Member

lukas-w commented Jul 20, 2018

Possibly a duplicate of #4351.

@DomClark
Copy link
Member

@andydld Have you enabled "Sync VST plugins to host playback" in settings? If not, try doing so, restart LMMS and see if the problem persists.

@DomClark DomClark added the response required A response from OP is required or the issue is closed automatically within 14 days. label Jul 20, 2018
@andydld
Copy link
Author

andydld commented Jul 20, 2018

With activated "Sync VST..." the problem has changed. After loading AcidBox and click play on LMMS nothing happens within the plugin. After changing from "host sync" to another mode and switch back to "host sync" and an click on play, the pattern starts playing, but it seems, thats an wrong speed. If i then click stop and play again, nothing happens again.

@no-response no-response bot removed the response required A response from OP is required or the issue is closed automatically within 14 days. label Jul 20, 2018
@andydld
Copy link
Author

andydld commented Jul 25, 2018

Just one more feedback from AudioBlast:

"I also activated the "Sync VST to host playback" in LMMS and it's a little better, but LMMs has a problem with the "transport bar changed" flag : it sends continuously "changed" when playing, that's not the "standard" for VST hosts, this flag should be used for these cases only :

changing from stop to play
changing from play to stop
manually changing the transport bar position
looping

The continuous "changing" flag (many changes per seconds) makes the Acidbox crazy"

@PhysSong
Copy link
Member

PhysSong commented Aug 6, 2018

AudioBlast's feedback suggests that we use kVstTransportChanged in an improper way here:

if( __plugin->m_vstSyncData->ppqPos !=
__plugin->m_in->m_Timestamp )
{
_timeInfo.ppqPos = __plugin->m_vstSyncData->ppqPos;
_timeInfo.flags |= kVstTransportChanged;
__plugin->m_in->lastppqPos = __plugin->m_vstSyncData->ppqPos;
__plugin->m_in->m_Timestamp = __plugin->m_vstSyncData->ppqPos;
}

@DomClark Can you look into this?

FYI, this is how Ardour uses the flag: https://github.com/Ardour/ardour/blob/bdf8edc4198494505fb59f92ffc1aef9c1e2136f/libs/ardour/session_vst.cc#L274-L279

if ((timeinfo->flags & (kVstTransportPlaying | kVstTransportRecording | kVstTransportCycleActive))
    !=
    (newflags        & (kVstTransportPlaying | kVstTransportRecording | kVstTransportCycleActive)))
{
	newflags |= kVstTransportChanged;
}

@DomClark DomClark self-assigned this Aug 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants