Add notifiers when a song is loaded?

I’d like to add a notifier on some member of a song by default like

renoise.song().selected_track_index_observable:add_notifier(some_function)

The problem is when Renoise boots up the tool loads before the song and the tool crashes since the song is nil. Also, when loading other songs I need to add the notifier again.

Is there an intended solution for running code when a song is loaded?

Best would be something like

renoise.song_observable:add_notifier(setup_notifiers)

The thread has a suggestion for this.

1 Like

@James_Britt Thank you, this seems good!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.