Hi all,
I'm trying to use setTempo but get this error : passing 'const ableton::Link::SessionState' as 'this' argument discards qualifiers [-fpermissive] mySession.setTempo(newBPM,time);
I guess this should be asked in a forum but I can't find an example for the correct use of setTempo().
Edit : simply removing the 'const' like so does the trick : auto mySession = link.captureAppSessionState(); Now to try to propagate this to the other clients...
Thank you
newBPM = 142;
const auto mySession = link.captureAppSessionState();
const auto time = link.clock().micros();
mySession.setTempo(newBPM,time); // setTempo()'s second arg format is : const std::chrono::microseconds atTime
Hi all, I'm trying to use setTempo but get this error : passing 'const ableton::Link::SessionState' as 'this' argument discards qualifiers [-fpermissive] mySession.setTempo(newBPM,time);
I guess this should be asked in a forum but I can't find an example for the correct use of setTempo().
Edit : simply removing the 'const' like so does the trick :
auto mySession = link.captureAppSessionState();
Now to try to propagate this to the other clients...Thank you