summaryrefslogtreecommitdiff
path: root/gtk2_ardour/pianokeyboard.cc
AgeCommit message (Collapse)Author
2020-04-07Rename KeyboardLayout to PianoKeyBindingsRobin Gareus
This is to prevent polluting the global namespace with a symbol name that is likely to cause conflicts.
2020-04-07Rename KeyboardLayout::set_keyboard_layout to set_layoutNil Geisweiller
Since the class indicates that it is a keyboard layout, no need to over load the name with it.
2020-04-07Move keyboard layout in its own classNil Geisweiller
2020-03-29VKeybd: fix stuck keys when changing octaves - #7957Robin Gareus
Using the mouse/dropdown to change octaves can lead to stuck notes when keys are held. This is because the most recently pressed key, sends key-repeat events. Using Arrow keys to switch octaves does not cause this problem, because the most recently pressed key will be an arrow key. PS. Changing Chromatic Transpose while holding keys still can lead to stuck notes. This will need a different fix.
2020-01-27Fix another clang-scan warningRobin Gareus
2019-12-27NO-OP: whitespaceRobin Gareus
2019-12-26Vkeybd: force release notes on panicRobin Gareus
If key(s) are still being pressed, a key-repeat will re-trigger the most recently pressed note (depending on keyboard settings).
2019-12-17VKeybd: exponential pitch-wheel/bend interpolationRobin Gareus
2019-12-16Vkeybd: grab all key-events and use timer instead of key-repeatRobin Gareus
This fixes an issue with arrow-keys (up/down, left/right). Those were previously only handled when the Virtual Keyboard window itself had focus. Also key-repeat for pitch-bend is now ignored and a dedicated timer is used to queue events. This fixes an issue with the first repeat taking longer than successive ones, and makes this feature independent of any desktop user settings.
2019-12-15VKeybd: Pass on primary (Ctrl/Cmd) shortcutsRobin Gareus
This allows Ctrl/Cmd+s (save) and Ctrl/Cmd+z (undo) etc shortcuts to work, even though the virtual-keyboard is visible.
2019-12-12NO-OP: some const correctnessRobin Gareus
2019-12-12VKeybd: fix MacOS key-bindingsRobin Gareus
2019-12-05VKeybd: grab and ignore some keysRobin Gareus
With default QWERTY and QWERTZ layout some keys that are easily accidentally pressed. Those triggered editor actions, (e.g. "a" (audition), or "1" (edit-tool)) and are now ignored.
2019-11-03Virtual-keyboard: momentary pedal (no toggle)Robin Gareus
2019-11-02Virtual-keyboard: "Tab" to sustain (still undocumented)Robin Gareus
2019-10-28Fix use of std::map<> in const methodsRobin Gareus
Prefer iterators, instead of C++11 `at() const`. This should also fix MSVC error C2663
2019-10-27Virtual-keyboard: allow octave switches while hand-pedalingRobin Gareus
2019-10-27Virtual-keyboard: consolidate optionsRobin Gareus
Remove use options for annotations, force them "always on", and request space to draw them. Add option to pick single-line octave bindings
2019-10-26Add support for single-octave "asdfg.." key-bindingsRobin Gareus
2019-10-25Virtual-keyboard: never-ending detailsRobin Gareus
- Fix key-bindings (first propagate to piano, ignore global bindings) - Allow to switch octaves with left/right arrow key - Tweak font-sizes used for annotations
2019-10-25Rename PianoKeyboard class, avoid ambiguitiesRobin Gareus
A C++ class "PianoKeyboard" in the global namespace may cause issues with some plugins that export and use an identically named symbol.