Hello people,
By fiddling with the GlobalMidiActions.lua I’m trying to write an offset (Sxx) to the effects column of a track using a knob.
Is this possible?
In the scripting API, in the effectColumn, I cannot see anything relevant.
Thank you!
Hello people,
By fiddling with the GlobalMidiActions.lua I’m trying to write an offset (Sxx) to the effects column of a track using a knob.
Is this possible?
In the scripting API, in the effectColumn, I cannot see anything relevant.
Thank you!
Yes, from your tool, invoke a:
renoise.tool().add_midi_mapping {
name="your_path_name",
invoke=function(message)
if message:is_abs_value() then
--your code for absolute
else
--your code for relative
end
end
}
Investigates how to use this… Then go to the “Midi Map” [CTRL M] to link it to your hardware MIDI device.
Absolute and relative values is valid for knobs and faders…
In “your code” you have to do the conversion of the value to write in the effect column with this:
-- Access note column properties either by values (numbers) or by strings.
renoise.song().patterns[].tracks[].lines[].note_columns[].effect_number_value
-> [int, 0-65535 in the form 0x0000xxyy where xx=effect char 1 and yy=effect char 2]
song().patterns[].tracks[].lines[].note_columns[].effect_number_string
-> [string, '00' - 'ZZ']
renoise.song().patterns[].tracks[].lines[].note_columns[].effect_amount_value
-> [int, 0-255]
renoise.song().patterns[].tracks[].lines[].note_columns[].effect_amount_string
-> [string, '00' - 'FF']
-- Access effect column properties either by values (numbers) or by strings.
renoise.song().patterns[].tracks[].lines[].effect_columns[].number_value
-> [number, 0-65535 in the form 0x0000xxyy where xx=effect char 1 and yy=effect char 2]
renoise.song().patterns[].tracks[].lines[].effect_columns[].number_string
-> [string, '00'-'ZZ']
renoise.song().patterns[].tracks[].lines[].effect_columns[].amount_value
-> [number, 0-255]
renoise.song().patterns[].tracks[].lines[].effect_columns[].amount_string
-> [string, '00'-'FF']
Thank you!
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.