Hi, I’m working on modifying my delay-script (shortcut for adding +1, +10 or removing -1 or -10 from it via keyboard shortcuts) to also work for panning.
I’ve gotten it to start from “00” and go to “80”. I’ve gotten it set up so that when I am below 00 it will go back to --. But then it starts looping back to 80 if i go -1 -1 -1 from 01 to 00 to – and loops back to 80.
What I’m hoping to accomplish is this: if I input any change to a panning value that has “–” currently, the value will start subtracting/adding from from 40.
This is what I have thus far, and it doesn’t seem to work.
-- Set Panning +1 / -1 / +10 / -10 on current_row, display delay column function panning(chg) local p = renoise.song().selected_note_column.panning_value local nc = renoise.song().selected_note_column local currTrak = renoise.song().selected_track_index if nc.panning_string==".." then nc.panning_value=40 else end renoise.song().tracks[currTrak].panning_column_visible=true nc.panning_value = math.max(0, math.min(128, p + chg)) if p < 1 then nc.panning_string=".." else end --end end
function panning( chg, song, nc, pan )
song = renoise.song()
nc = song.selected_note_column
pan = song.selected_note_column.panning_value
if ( song.selected_track.panning_column_visible == false ) then
song.selected_track.panning_column_visible = true
end
if ( nc.panning_string == ".." ) then
nc.panning_value = 40
end
nc.panning_value = math.max( 0, math.min( 128, pan + chg ) )
if ( nc.panning_value < 1 ) then
nc.panning_string = ".."
end
end
Try this function. I have not tried it, but it still approaches the solution.
renoise.song().patterns[].tracks[].lines[].note_columns[].panning_value
-> [number, 0-127, 255==Empty when column value is <= 0x80 or is 0xFF,
i.e. is used to specify pan]
[number, 0-65535 in the form 0x0000xxyy where
xx=effect char 1 and yy=effect char 2,
when column value is > 0x80, i.e. is used to specify an effect]
( nc.panning_value < 1 ) -------------> panning_value = 0 is LEFT!Are you sure you want to do that? … 127 is RIGHT, 255 is empty.

