Ableton / LinkKit

iOS SDK for Ableton Link, a new technology that synchronizes musical beat, tempo, and phase across multiple applications running on one or more devices.
http://ableton.github.io/linkkit
Other
149 stars 10 forks source link

[3.1.0] Tempo callback not called if new tempo matches old tempo #55

Closed tehpsy closed 4 years ago

tehpsy commented 4 years ago

After setting up link: _linkRef = ABLLinkNew (120);

Then changing the tempo: ABLLinkSetTempo (..., 120, ...);

The tempo callback (defined ABLLinkSetSessionTempoCallback) is not called.

When the tempo is set to anything other than 120, the callback is called correctly. Not that this was not the case in Link 2.x -- the tempo change callback would always be called.

Is this intentional behaviour? It is surprising!

fgo-ableton commented 4 years ago

Yes, this is intended behavior.

So when i.e. creating the object that should listen to the tempo, one would:

After that the object is updated from the callback every time the tempo (actually) changes.

tehpsy commented 4 years ago

Thanks for your response!