Originally Posted by
derschaich
writing my own mappings and functions atm.
hid is working fine, faders (potis on thumbsticks, etc...) are working properly now.
awesome did u have to use hidlearn(.exe) at all? it's not very clever for pots... it works if u leave the pot at it's max value, else u need to edit the bitmask after in the devices file and even then u need to change the 'type' from 'button' to 'fader'
would be nice to add this function to the pool, as the HID-Faders only cover the first half of the way by default if you pipe them (e.g. you push the fader to half, and it already sends 127):
Code:
function hid_fader(input_device, event_i, value_i, p)
value_o = value_i/2
send("cl", event_i, value_o)
end
-- call it via:
capture("gp", "fader1", ALL, 0, "hid_fader")
will do also add that 'cl' device name in as a 5th argument (and also allow capture() to take a list of optional args after the function name) so then u can call like:
Code:
capture("gp", "fader1", ALL, 0, "hid_fader", "cl")
as atm the only way of making that generic would be to embed the function inline like this
Code:
capture("gp", "fader1", ALL, 0, function(input_device, event_i, value_i, p)
value_o = value_i/2
send("cl", event_i, value_o)
end)
i didn't have a hid device with actual pots on until last week when i realised i could run my old hercules mk2 in hid mode if i didn't install their drivers.
up till that point it was easy... i didn't support pitch bend (or any other hi res messages) and only midi, so *every* input and output had a max value of 127. what i'm doing now is adding intelligence in so it will automatically scale any value to the output based on the input and output ranges. i.e: in your case the 0-255 will get scaled to 0-127 and if you wanted to map it to a pitch bend message it would auto scale to the output range of 0-16383.
this will also have the nice side effect that a controller based on a gamepad can have twice the resolution for it's pots in traktor (or whatever app) if u use the 16 available pitch bend messages
as a whishlist for the clock input:
- 24 messages per beat are not necessary in my opinion
- tempo [BMP] would be nice
- beat counter with reset function to set it to zero would be great!
sure. the 24 ticks are processed internally in midimasher to work out the bpm and start of the beats but they won't all end up as 'events' that can be capture()'ed.
i'll make available a 'beat' event for each beat, that maybe cycles round values 1-16 or 1-8 or something? that would let u do what u want. i'll also store the actual bpm in some variable in case it's useful to get hold of it.
fantastic to get some feedback from some custom config code
Bookmarks