-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathn16o.lua
57 lines (51 loc) · 1.92 KB
/
n16o.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
--
-- n16o
-- i2c-based er301 control
-- from a korg nanokontrol2
--
-- by default er301:
-- cv ports 1-8 correspond
-- to the nk2 faders (l to r)
--
-- cv ports 9-16 correspond
-- to the pan knobs
--
-- tr ports 1-8 correspond
-- to R buttons (momentary)
--
-- tr ports 9-16 correspond
-- to M buttons (momentary)
--
-- tr ports 17-24 correspond
-- to S buttons (momentary)
--
-- tr ports 25-35 correspond
-- to transport buttons
-- (ordered left to right,
-- bottom to top, latching)
-- to use in the background of any script, paste the following
-- lines in that script's init. all params to init for
-- configuration are optional
n16o = include 'n16o/lib/start_up'
n16o.init({
nkChannel = 1, -- MIDI channel of nanokontrol2.
-- Defaults to 1.
er301FirstCVPort = 1, -- CV port of first fader.
-- All other CV ports follow sequentially.
-- Defaults to 1, so the first fader's
-- CV port is 1, second is 2, etc.
-- Min is 1, max is 83.
er301FirstTRPort = 1, -- TR port of first R button.
-- All other TR ports follow sequentially.
-- Defaults to 0, so the first R button's
-- TR port is 1, second is 2, etc.
-- Min is 1, max is 65.
er301MaxCVVolts = 10, -- CV at midi value 127. Defaults to 10.
-- Min is 1, max is 10.
screenDebug = true -- Set to true to display commands sent to
-- crow on norns screen. Defaults to false.
--
-- WARNING!!! will mess with host script
-- display. Also may not work depending on
-- how host script uses the screen.
})