monome / norns

norns is many sound instruments.
http://monome.org
GNU General Public License v3.0
633 stars 147 forks source link

clock.tempo_change_handler not responding to ableton link #1612

Closed sonocircuit closed 2 years ago

sonocircuit commented 2 years ago

When changing the tempo in ableton live norns follows the tempo change as expected, however, the clock.tempo_change_handler is not called. If the tempo is changed via norns it works as expected.

I used this test script to register if the handler get called:

-- test clock.tempo_change_handler()

function init()
end

function clock.tempo_change_handler(tempo)
  print("tempo is "..tempo.."bpm")
end

Also, if I print the tempo with print(clock.get_tempo()) within the handler, the bpm is offset by 1. However, printing the current tempo with clock.get_tempo() with the maiden REPL returns the correct value. Not sure if this is a bug or me overseeing something obvious.

sonocircuit commented 1 year ago

thanks dan! this is great. looking forward to updating my norns later today.