-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnotes.txt
More file actions
56 lines (47 loc) · 1.62 KB
/
notes.txt
File metadata and controls
56 lines (47 loc) · 1.62 KB
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
this was in lisp.lua and clearly doesn't belong there
but maybe the thought was useful:
-- also need outputs for:
-- MIDI
-- synth
-- softcut
-- crow
-- UI
ton of commented out logging in the lens event handler.
(in _midi.lua)
and some empty if blocks, etc.
this was right before this line:
local mode_spec = spec[lens_mode] or spec.default
-- print('looking up mode '..lens_mode..' in:')
-- print(Utils.table_to_string(spec))
if not spec[lens_mode] then
-- print('it was not found! reverting to default')
end
this was inside the subsequent if block:
-- print('no lens message found. falling back to regular MIDI')
-- print('nil spec!') -- real noisy
and this was right after that:
--print('lens short name')
-- print(short_name)
-- print('lens mode')
-- print(lens_mode)
-- print('spec:')
--local mode_spec = spec[lenses[short_name].mode or 'default']
--print('mode_spec type '..type(mode_spec))
--print('mode_spec n type '..type(mode_spec.n))
-- print(Utils.table_to_string(mode_spec))
-- print('mode_spec message_type '..((mode_spec and mode_spec.message_type) or '(nil)'))
this was at the top of lens_to_midi:
-- print("message_type = "..env.message_type)
-- print("origin = "..env.origin)
-- print("n = "..env.n)
-- print("v = "..env.v)
-- it's pretty tacky to assume "n" or "v" I guess
-- it should really depend on the MIDI msg type being lensed
-- if (not env.n) or (not env.v) or (type(env.message_type) ~= 'string') then
these were just not used:
local function is_lensed (id)
return lensed_ports[id] ~= nil
end
local function tx_lens_event (event)
return false -- fall back to regular MIDI event
end