14Bit AbsoluteHardwareValueMatcher ?

Post Reply New Topic
RELATED
PRODUCTS

Post

Does that a 14Bit AbsoluteHardwareValueMatcher exist for the Hardware API? or is that something we have to roll our own using onMidi?

Thanks In Advance,
Kirkwood
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

Post

Code: Select all

    
    HardwareSurface hardwareSurface = host.createHardwareSurface();
    AbsoluteHardwareKnob absoluteHardwareKnob = hardwareSurface.createAbsoluteHardwareKnob("Knob 1");
    AbsoluteHardwareValueMatcher msb = host.getMidiInPort(0).createAbsoluteCCValueMatcher(0, 15);
    AbsoluteHardwareValueMatcher lsb = host.getMidiInPort(0).createAbsoluteCCValueMatcher(0, 47);
    AbsoluteHardwareValueMatcher sequencedValueMatcher = host.getMidiInPort(0).createSequencedValueMatcher(msb, lsb, true);
    absoluteHardwareKnob.setAdjustValueMatcher(sequencedValueMatcher);
Havn't tested it yet but this looks like the way! pummmped.
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

Post

Yup... that worked. may have gotten the bitflag messed up true or false... but I guess that's what that is there for. Well done on Bitwig for making it very easy to implement. The Hardware API is so damn slick.

Never again will I go 7bit on a USB Midi Controller if I can help it. Its just not the 80s anymore. And 10 Bits is fine just in case a midi manufacture ever reads this. :D
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

Post Reply

Return to “Controller Scripting”