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
147 stars 10 forks source link

Use of DBL_MIN #23

Closed pwnified closed 2 years ago

pwnified commented 8 years ago

Just a minor nitpick, the way DBL_MIN is used in the LinkHut example as a magic number to detect when changes are made, but DBL_MIN is actually a positive number which falls in the range of allowable values. Perhaps you meant to use -DBL_MAX?

brs-ableton commented 8 years ago

Thanks for catching that, the intention was probably for it to be negative at the time of writing. It actually doesn't matter though because bpm below 20 are not in the allowable range and all beat time values are technically valid for ABLLinkResetBeatTime. So this would be in-band signaling no matter which value you chose. And this is only relevant if you consider the audio engine independent of LinkHut because the LinkHut program only resets the beat time to zero.