iām just talking about using the shnth as a HID controller. itās not very exciting.
the buttons send event type EV_KEY with code ranges from 304-311 (which AFAICT is pretty atypical and the type probably āshouldā be EV_BTN.)
the barres send ABS_REL with code ranges 0-3. (ABS_X, ABS_Y, ABS_Z, ABS_RX.)
i get a couple bits of noise on ABS_THROTTLE as well, might be the antenna, which doesnāt work so hot on this unit.
my shnth is a really old prototype with some quirks, so it might not be very helpful as a model. anyways hope that helps somehow.
norns code is straightforward
local hev = require 'hid_events'
shnth_handlers = {
hev.codes.ABS_X = function(value)
-- do something with barre 0 value
end,
hev.codes.ABS_Y = function(value)
-- ... do something w/ barre 1 value
end,
--- etc: more barres
304 = function(value)
--- handle button 0
end,
-- etc: more buttons
}
function init()
-- assuming only shnth is connected
hid.connect().event = function(evtype, evcode, value)
shnth_handlers[evcode](value)
end
end