-
Hi! Is this possible to do with Realearn (and maybe some lua- scripting)?? I would like to long-press a button on controller and that opens action browser. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Yes, to some degree. ReaLearn's learn function also captures executions of actions. This works for some actions better than for others, so you will have to see. I built a small example that uses the target "ReaLearn: Modify mapping - Learn target" to leverage this possibility. The downside is that when picking the action, it will also get executed. If you don't want that, a new feature needs to be built. Let me know if it works! Import this into the latest pre-release (2.16.0-pre.1 at the moment), not sure if it would work in older versions. {
kind = "MainCompartment",
version = "2.16.0-pre.1",
value = {
mappings = {
{
id = "VvGtPhIWdS3q9xbQL1XXZ",
name = "Start learn on long press",
source = {
kind = "MidiNoteVelocity",
channel = 0,
key_number = 64,
},
glue = {
step_size_interval = {0.01, 0.05},
step_factor_interval = {1, 5},
fire_mode = {
kind = "AfterTimeout",
timeout = 1000,
},
},
target = {
kind = "ModifyMapping",
mapping = "pW0a8z8xeIjI5b3amuQS_",
modification = {
kind = "LearnTarget",
included_targets = {
"RouteVolume",
"Tempo",
"TrackSoloState",
"AutomationModeOverride",
"BrowseFxPresets",
"ReaperAction",
"TrackAutomationMode",
"TrackMonitoringMode",
"RoutePan",
"TrackMuteState",
"TrackSelectionState",
"TrackArmState",
"FxParameterValue",
"PlayRate",
"TransportAction",
"FxOnOffState",
"TrackPan",
"TrackVolume",
},
},
},
},
{
id = "prONxtyySIDrKwF6bwljt",
name = "Open action browser on long press",
source = {
kind = "MidiNoteVelocity",
channel = 0,
key_number = 64,
},
glue = {
step_size_interval = {0.01, 0.05},
step_factor_interval = {1, 5},
fire_mode = {
kind = "AfterTimeout",
timeout = 1000,
},
},
target = {
kind = "ReaperAction",
command = 40605,
},
},
{
id = "pW0a8z8xeIjI5b3amuQS_",
name = "Learned mapping",
source = {
kind = "MidiNoteVelocity",
channel = 0,
key_number = 64,
},
glue = {
step_size_interval = {0.01, 0.05},
},
target = {
kind = "ReaperAction",
command = 41042,
invocation = "Trigger",
},
},
},
},
} |
Beta Was this translation helpful? Give feedback.
-
The downside is that when picking the action, it will also get executed. ...the part that opens action browser works but not the rest. This is happening: I longpress note 64 (E) I tried this in MIDI editor also (my first choice to use this) with same result. However then using ReaLearn on a track (not Monitoring FX) it works in Arrange View!! :-) But not in MIDI Editor :-( You are right - it will not work with every action. I selected a bounce action |
Beta Was this translation helpful? Give feedback.
-
Ahaa - I see! Sorry
No I tried with the keyboard keys, all my other mappings is done on XTouch, XTouch mini etc
Like custom actions?
That would be nice! :-) I make a request. Thanks Benjamin for your support. |
Beta Was this translation helpful? Give feedback.
-
Hmmm I think I found why Arm/Disarm showed up - I have selected Automatic record arm when track is selected in preferences...... |
Beta Was this translation helpful? Give feedback.
Yes, to some degree. ReaLearn's learn function also captures executions of actions. This works for some actions better than for others, so you will have to see. I built a small example that uses the target "ReaLearn: Modify mapping - Learn target" to leverage this possibility. The downside is that when picking the action, it will also get executed. If you don't want that, a new feature needs to be built.
Let me know if it works!
Import this into the latest pre-release (2.16.0-pre.1 at the moment), not sure if it would work in older versions.