-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkey_bindings.lua
76 lines (66 loc) · 2.11 KB
/
key_bindings.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
--------------------------------------------------------------------------------
-- key bindings
--------------------------------------------------------------------------------
-- you can also define keybindings for your script, which will be activated and
-- mapped by the user just as any other key binding in Renoise.
-- Keybindings can be global (apploied everywhere in the GUI) or can be local
-- to a specific part of the GUI, liek the Pattern Editor.
--
-- Again, have a look at "Renoise.ScriptingTool.API.txt" in the documentation
-- folder for a complete reference.
renoise.tool():add_keybinding {
name = "Pattern Editor:Xrns2XMod:Portamento Up",
invoke = function(repeated)
if (not repeated) then -- we ignore soft repeated keys here
portamento_up()
end
end
}
renoise.tool():add_keybinding {
name = "Pattern Editor:Xrns2XMod:Portamento Down",
invoke = function(repeated)
if (not repeated) then -- we ignore soft repeated keys here
portamento_down()
end
end
}
renoise.tool():add_keybinding {
name = "Pattern Editor:Xrns2XMod:Volume Slide Up",
invoke = function(repeated)
if (not repeated) then -- we ignore soft repeated keys here
volume_up()
end
end
}
renoise.tool():add_keybinding {
name = "Pattern Editor:Xrns2XMod:Volume Slide Down",
invoke = function(repeated)
if (not repeated) then -- we ignore soft repeated keys here
volume_down()
end
end
}
renoise.tool():add_keybinding {
name = "Pattern Editor:Xrns2XMod:Default Volume",
invoke = function(repeated)
if (not repeated) then -- we ignore soft repeated keys here
default_volume()
end
end
}
renoise.tool():add_keybinding {
name = "Global:Xrns2XMod:Helper",
invoke = function(repeated)
if (not repeated) then -- we ignore soft repeated keys here
init_helper_dialog()
end
end
}
renoise.tool():add_keybinding {
name = "Global:Xrns2XMod:Converter",
invoke = function(repeated)
if (not repeated) then -- we ignore soft repeated keys here
init_converter_dialog()
end
end
}