Hold/repeatedly press keys
Virtual MIDI controller for Linux, Windows and OSX
Brought to you by:
plcl
I like to use vmpk to test samplers and synthesizers and often want to repeatedly press a key. Rather than setting up an arpeggiator, I decided to implement it in vmpk. I might as well share it, in case anyone wants it. The implementation is rather crude. Do with it what you will.
Apply the patch with:
patch -p1 < vmpk-hold_and_hammer.diff
Hold/hammer notes using shift/ctrl keys.
About the "hammering" feature: a simpler solution instead of using a QTimer would be to not ignore keyEvents when isAutorepeat() == true. Of course this would be only for computer keyboard events, and not for mouse events. But your patch doesn't work with the raw keyboard mode, either. There is a RFE for the arpeggiator feature, BTW. The "hold" feature, using the modificator keys (ctrl, alt, shift) is also planned, but I want configurable settings for them.