song.selected_pattern_observable:add_notifier (TEST)
function TEST()
print("TEST cur_pat_seq_pos", song.transport.playback_pos.sequence)
end
So, this function runs when I move up/down in pattern sequencer, but it usually prints previous pattern position. Am I doing it wrong?
James_Britt
(James Britt / Neurogami)
June 8, 2020, 5:03am
2
Perhaps because Renoise editor counts from 0 but Lua starts lists/arrays at 1.
I meant that it prints the position of pattern that was selected before selection changed.
4tey
June 8, 2020, 5:08am
4
frenetic_friend:
Am I doing it wrong?
Or is Renoise wrong?
Curiosity, does it work better if you change:
print("TEST cur_pat_seq_pos", song.transport.playback_pos.sequence)
to read the selected sequence index?
print("TEST cur_pat_seq_pos", renoise.song().selected_sequence_index)
(manually moving between patterns)
1 Like
4tey
June 8, 2020, 5:28am
6
Ok (so long as the user hasn’t decoupled the playback from the editing position (i.e. hit the scroll lock key) etc…) But there is still a problem returning incorrect values with your first example
renoise.song().transport.playback_pos.sequence (SongPos object)
that Renoise needs to look at(?)
system
(system)
Closed
June 10, 2020, 5:35am
7
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.