I have no idea how to follow quantization

I have no idea how to

-follow quantization

I want the chords to follow the Quantization.
to not jump to the quantized line, but enter a chord on the line above or below or on the cursor. this would be somewhere in the pattern lines divided by the quantization.

-make notes sound without using the OSC server

I just want the tool to preview chords when you “check a mark” and then it works (enabled by default) - not to have to enable networking capabilities (and a firewall message in Windows) when using the OSC server.

Can that be done?

for this tool?

Use modulo to get the rest, and step forward if the rest is equal or larger than half of the quantize setting - backwards (subtract the rest from current playback_pos) if it’s not. (I got the order correct, rite?)

There is no simpler solution to my knowledge.

I can not jump on pattern / play cursor follow. So I wil also need code to lookup a line instead of jump, or quickly disable the play cursor follow, then jump, then enable the pattern play cursor follow.

This information so far is right but for me it’s not enough to implement quantization yet.
Thank you for helping out and thinking with me here.

Not completely sure what you mean, but you do know that you can write notes anywhere in the pattern and not just on the selected line, right?

I know, but I have not looked up how to yet.
ChordLord only writes to the currently selected pattern line.

  local function write_note_in_line(nte,lne)
    local song=renoise.song()
    --local required for long code.
    local rna=renoise.app()
    local spt=song.selected_pattern_track
    local nol=song.selected_pattern.number_of_lines
    local snc=song.selected_note_column
    local snci=song.selected_note_column_index --or other index (1 to 12)
    --check where to deposit and deposit.
    if (lne<=nol) and (snc) and (snci<=12) then
      spt:line(lne):note_column(snci).note_value=nte
    else
      --shows a message in Renoise's status bar to the user.
      local message="Please select a valid line... Wake up and have a coffee!"
      return rna:show_status(message)
    end
    --add more more code here or adapt everything to your code...
  end

  --write the C-4 inside the line 10 of selected pattern-track-note_column.
  write_note_in_line(48,10)  

I have written this code directly here. I haven’t tested it but it should work fine.

You should also watch out if you deposit notes in non-visible note columns. Also deposit the index of the instrument at least.

  local function write_note_in_line(nte,lne,snci)
    local song=renoise.song()
    --local required for long code.
    local rna=renoise.app()
    local spt=song.selected_pattern_track
    local nol=song.selected_pattern.number_of_lines
    local snc=song.selected_note_column
    local vnc=song.selected_track.visible_note_columns
    --check where to deposit and deposit.
    if (lne<=nol) and (snc) and (snci<=vnc) then
      spt:line(lne):note_column(snci).note_value=nte
    else
      --shows a message in Renoise's status bar to the user.
      local message="Please use a valid line & column... Wake up and have a coffee!"
      return rna:show_status(message)
    end
    --add more more code here or adapt everything to your code...
  end

  --write the C-4 inside the line 10, inside the note column 4 of selected pattern-track.
  write_note_in_line(48,10,4)  
1 Like