Open Houkime opened 5 years ago
Found the note map in the code here under find_note https://github.com/kometbomb/klystrack/blob/0ae6ef9c152fcc1c254cc757ca9c89ec4fdc0c82/src/event.c
Seems hardcoded and constant One needs to write a loader of keys[] array from file on program start
Right now i just made a quick patch for myself overriding keys[] to my liking.
I can't find a reasonably quick way in klystrack to deviate from standard piano note-to-keyboard mapping to my custom scheme which I find extremely useful and pleasant.
Using keymap presets for that like recommended it looks like would mess up hex editing and general text typing.
It is a bit odd that note-to-key bindings are not a menu config, but also are not in the config file.
For example of what I'm trying to achieve is a gif from sunvox of desired configuration (not a sunvox default):
Note that in this mapping of mine there is no geometrical distinguishing between majors and minors which is exactly the useful part since it allows for easy transposing by hand (since notes form a uniform row on the logarithmic frequency scale if major/minor categorization is erased) and makes geometrical patterns of keys pressed more meaningful (cause artificial breaking of translational symmetry was removed) and memorizable (less info to maintain).
+such mapping is more compact and allows for extra octave if modified (can't do it in sunvox though cause not opensource).
Also there are a few useful warps added to not have adjacent notes across the keyboard.
and here is how it is represented in the sunvox config file: