getMilliSecondsForTempo doesn't pick the initial tempo from Logic Pro
-
The delay node is controlled by a tempo sync knob with
Engine.getMilliSecondsForTempo()
api.The issue is: when the plugin is loaded to DAW, the delay time is not picked from the current DAW tempo on start. The delay time is the time when the preset is saved in Hise. When I tweak knob then it picks the correct tempo value.
You can compile this snippet and check in a DAW, I tested on Logic but not sure if this des on other DAWs too.
HiseSnippet 1876.3oc2Y0saabiElijoqsR5OYaBZubPPuPcgqgFmzeBJZy3+TWiMxQvx0oE6EozyPYw5YHGLCkcTKJPubuZ608t9HrWs.8th9DTf8EXeD12fcOjbFMbjkkUT2lMoyEFlmCIOemCO+Qptoh.ZVlHE4r5giRnHmqi6MhKGr8.Bii1aGjyJ3cnQjQiPaMJgjkQCQNN0+DEWmUWBo+922eKRDgGPKIgPGIXAzGvhYxRpc8+yrnn1jP5grXqYeW+8BD7sEQhg.RpiagRHAmRNgtOQMsZXjyx6FxjhzdRhjlgbVZKQ3ndCDmyMy+HVF63HpZfGpGrQFxsEQgJDqnh1d.KJragFmgPN3tk5eci9eSbGVHaL8R6vqoY3VtBa6gSspvqdE34YCuVVvaJPxwBRKYfzMv8BRYIxRNJ7bM7dbIMsOAL61PwLWTs6TGus.lAWtdL4TZ6TXv3UzbiVsVyE9ya+gMZz.r8YR2yHotOhJa+Ytejq1GX8Snxc62mFHadaMiaOwr0NFOf1WpNMgUUHOXcaKhSDbXPyaWYV5sfwiXbpa+g7.ISvcE7JyQsMohnlAE6wZfzhFRe6FeciU0.Y8LpbSoLkc7PIsogzNQidrZGVycW9Iv1qPQGvai0iBHNLqsH8PJrgMM6EfiuAfxbAYk3xA01jnniAeylSGyZCzzrPsozP05tZqTwLuJKUw79UXsZe7ZtsVukm6eLeIykMoDfWgcYBDZrMpOK0Yegj9PdSMXa7MMbmjU+9SkW9VFQSmJa0IR5rVXS9v3ioo1lJ0DgPtpww3KON1NMSfwhYMQAeONS9vDJ+xR9fxMyPLesbTASUpi3ek7H9dQrPZJhAA1uJth+FRC7xLn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yK3rWnkO2XIqnZa5QShoUw42iEcUwAUFLe3oz.VAPVQSnEIswVBwowDcmLKzMsr6C9VFlWC+HxYT8a1ncWukdbeQZr6mPgDhpl38lw628Ky662kL2ue2CCj.DNLkvyRDYTO6cdBdaXyaGpbHu5zMjpLKk50FTOq4sheAwMrI1kvqrYv3J6TGl0c39W2eWNAZ907hQOLK.TVRYgK8ct5NLJi9HVnbfm8BKIugM4+DIMTe+S6aDUeVOko2B9TlK+b2SY9Bv8dqbotUKvXOl5FY6xOiFAQiZL9GfvO8s6KnVMbpifKJtPQ4A8AT3lQmbBsh+yTUnMkRU9jwTto+AzHJIyJD6s7e.zaCIsitFyBYK7dpuf6TOudSrAtt5W88E22qn9uqeuh4O5CRA978o3afgTwa3pOJc++yY4yh253YgLhIAohGGXdhHUP+JZJfdy0+Raqh6nF65U7rvltohgxEONHP4u9NP0moulMVf0bmEXM2cAVy6t.q48Vf079KvZ9fYtFUk57qbn74ABc2U2zniioYEs6O5+B5XIByB
-
@Fortune What happens if you start the playback in Logic? It might be possible that Logic doesn't send out its tempo until the playback has started once.
-
@Christoph-Hart I've just tested. When I hit play, it still doesn't pick the value even with the playback.
But as soon as I tweak the knob, the delay time is updated with a correct value.