Controlling note duration

Hi,

The script allows specifying note_value, instrument_value, volume_value, and delay_value for a note_column. How can I control the duration of the note?

Regards,

Rangarajan

note duration is not recorded in the note on , you need to editthe note off on the line after it

I need to do this in my script. How do I do that?

Regards,

Rangarajan

renoise.song().selected_pattern_track:line(YOUR_LINE_NUMBER):note_column(YOUR_NOTE_COULMN_NUMBER).THE_VALUE_YOU_WANT_TO_CHANGE

try oprint(renoise.song().selected_note_column) in the console to see what values you want to edit

Just enter 120 as the value in the line where you want the note to stop

renoise.song().patterns[].tracks[].lines[].note_columns[].note_value
 -> [number, 0-119, 120=Off, 121=Empty]

You can combine this with the delay column for a more precise value.

Or, if you want the note to stop on the same line as the trigger, enter a Cx (cut) command. It operates on tick values.

Thanks very much.

Regards,

Rangarajan

Hi,

I would like some more clarity on this duration issue. We usually assign note durations in the form of whole note, half note, quarter note, and so on. Is it possible to assign such values to notes via script? It is not clear to me how assigning “off” on a different line can achieve the conventional duration specification for a note.

Regards,

Rangarajan

I would like some more clarity on this duration issue. We usually assign note durations in the form of whole note, half note, quarter note, and so on. Is it possible to assign such values to notes via script? It is not clear to me how assigning “off” on a different line can achieve the conventional duration specification for a note.

In Renoise, the LPB (Lines Per Beat) setting dicates the overall resolution of your patterns, and ultimately how many pattern lines are required to achieve a certain note duration.

At the default setting of 4 LPB, every 4th pattern line indicates a 1/4 quarter note (a “beat”).

So, assuming 4 LPB and some typical 4/4 timing, the note durations look something like this:

5474 renoise-lpb-note-duration.png

The “note on” (the C-4) dictates when the note should begin playing, and the “note off” dictates when it should stop. The space in between is the note duration :wink:

A note on event does not have an implicit duration. It may play forever, or it may play for a second, or even just a millisecond. It depends almost entirely on the structure of the instrument itself, whether it’s playing a quick one-shot sample (where the note will naturally end when the end of the sample is reached), whether it’s playing a looped sound which has a sustained volume envelope (where the note will end after a note off event is triggered), whether the instrument has a non-sustained volume envelope with a fixed duration, and so on.

So, to answer your question: No, it’s not possible to assign a note duration to a note on event — not in the pattern editor itself, nor via Lua code. We have note on events to start notes, and note off events to stop notes. It’s up to you (and your script) to determine exactly where those events should occur within the pattern.

Nice, explanation! I think I understand the big picture now. Thanks.

Regards,

Rangarajan