[go: up one dir, main page]

Menu

#67 Extended Keymap

v1.0_(example)
open
None
5
2024-08-27
2024-08-26
No

Hi! I installed this program to use with my handmade piano keyboard, I have to say I have no complaints about it, it's a really cool project, it works as it should and has more options than I imagined, thank you very much!

Also, I'm sending a ticket to ask if there's a way to bind numeric pad keys and make it work because it only registers general numbers and it doesn't recognize if they are from normal keyboard or the pad one, is there another way to name them? Like N1, N2, N3...
Thank you!

Discussion

  • Pedro Lopez-Cabanillas

    You need to use low-level key codes in a keymap. Please read:
    https://sourceforge.net/p/vmpk/wiki/Creating%20Keymaps/

     
    • Agusstine uwu

      Agusstine uwu - 2024-08-26

      Ok, so from what I understand, I have to edit spanish.xml and type my own input like <mapping keycode="11" note="30"></mapping> for example, scancode for 1 on the numeric pad is 4F then I replace it with: keycode="4F" right?
      Now, is "note=x"necessary or can I just not write it? If not, then how do I know which MIDI note corresponds to 1 - 4F?
      Thanks!

       
  • Agusstine uwu

    Agusstine uwu - 2024-08-26

    Okay, I just realized (sorry), now the thing is to bind the 10 numbers of the numeric pad, now I know that 1 = 4F, but it doesn't take the input at all when I edit the spanish.xml file, how do i do it?

     
  • Pedro Lopez-Cabanillas

    Voy a suponer que hablas español, y que utilizas Windows.

    No puedes utilizar "spanish.xml" como base para lo que tu quieres. Ese tipo de mapa no distingue entre las teclas numéricas de la fila superior y las teclas del bloque numérico de la parte derecha, porque el mapeo es entre caracteres y notas MIDI.

    Por el contrario, has editar (una copia de) "pc102win.xml", y configurarlo en Preferencias->Entrada.->Mapa de teclado de bajo nivel, activando al mismo tiempo "Teclado de bajo nivel".

    Esta es una tabla con los números de notas MIDI:
    MIDI notes

     
    • Agusstine uwu

      Agusstine uwu - 2024-08-26

      ¡Gracias! Quizás mis preguntas sean tontas, pero aún soy novata en esto y en verdad tengo muchas ganas de sacarle el potencial a este programa. Tengo una pregunta más, a todas esas notas en MIDI, ¿se les adjudica el mismo keycode de esta imagen, o como es? Porque aún no conozco bien cual es el número correcto para cada tecla del teclado.

       
  • Agusstine uwu

    Agusstine uwu - 2024-08-26

    Me refiero a esta imagen.

     
    • Pedro Lopez-Cabanillas

      En esa imagen, que seguramente procede de esta página los scancodes están en hexadecimal. Para la tecla numérica "1" el scancode hexadecimal es "4F", pero en el keymap de VMPK has de poner keycode="79" en decimal.

       
  • Agusstine uwu

    Agusstine uwu - 2024-08-27

    Bueno, desafortunadamente las teclas del pad numérico tienen el mismo scancode que las teclas de navegación (creía que iban a ser distintos). Me quedarán 10 teclas inutilizables :P
    De igual manera, ¡muchas gracias otra vez!

     
  • Agusstine uwu

    Agusstine uwu - 2024-08-27

    Probé a remapear las teclas de navegación para que anduvieran, ahora solo me hace falta arreglar F10, F11 y F12 y lo tengo todo listo.

     

Log in to post a comment.