unless
November 28, 2021, 11:36pm
1
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)
James_Britt
(James Britt / Neurogami)
November 29, 2021, 12:19am
2
hey guys,
this must be an easy question, but i can’t seem to find any examples.
i’m basically trying to add notifiers to renoise.song() as soon as renoise loads - but this fails if you put it in the main part of the tool code (i.e. when you load renoise, i assume that there is no song loaded yet, and thus renoise.song() doesn’t exist).
so my question is, where can i add these notifiers so they are initialized as soon as the song loads? tried looking for a song_loaded observable or similar but…
The thread has a suggestion for this.
1 Like
unless
November 29, 2021, 1:12am
3
@James_Britt Thank you, this seems good!
1 Like
system
(system)
Closed
December 1, 2021, 1:13am
4
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.