Stereo101 / python-MidiToVirtualPianoMacro

Takes a midi file and converts it into a macro which will play the midi using virtualpiano.net. Uses pyHook and ctypes for macro execution.
102 stars 84 forks source link

scan codes #9

Closed orlikmw closed 3 years ago

orlikmw commented 5 years ago

how to replace clicks of your script with clicks using scan codes from this site https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-6.0/aa299374(v=vs.60)?redirectedfrom=MSDN

Stereo101 commented 3 years ago

The keyboard scale is built into the script, but wouldn't be all to hard to change. Inside pyMIDI.py:

virtualPianoScale = "1!2@34$5%6^78*9(0qQwWeErtTyYuiIoOpPasSdDfgGhHjJklLzZxcCvVbBnm"

Changes mappings could be as easy as editing this string with some small gotchas for shifted keys.