(Andy, sorry if this reaches you twice, the list bounced my previous attempt since I was posting through GMane before and forgot to subscribe to also subscribe to the list normally.)

I will file a bug report about it. I also noticed that TAB (keycode 23 on Linux) also can't be used.

I'm attaching a patch that adds:

   ` = A#
   TAB = B (but doesn't work, probably same reason L doesn't)
   [ = f'
   = = f'#
   ] = g'
   BACKSPACE = g'#
   \ = a''

If the patch is OK, it would be great if someone would push it. The patch is for Linux only; I don't know the scancodes of Windows and OS X :P


On 10/05/2009 01:47 PM, Andy Kelley wrote:
That is quite possibly my fault - I bound 'L' to "change global playback
mode."

I didn't know we even supported using the keyboard as a midi input. The
solution of course is a button toggling keyboard as a midi controller on
or off.

Make sure this gets reported as a bug and I will fix it eventually.

On Mon, Oct 5, 2009 at 3:25 AM, Nikos Chantziaras <[email protected]
<mailto:[email protected]>> wrote:

    There seems to be a problem with the L key; it should play C#, but it
    doesn't.

    On a similar note, would it be too much work to extend the upper
    keyboard mapping to include:

       TAB - B
       [   - F
       =   - F#
       ]   - G
       BACKSPACE - G#
       \   - A

    That would be an *immense* help for people who need to use the keyboard,
    or to *also* use the keyboard in addition to a MIDI keyboard :)
diff --git a/src/gui/PianoView.cpp b/src/gui/PianoView.cpp
index 0b781a1..1f3d707 100644
--- a/src/gui/PianoView.cpp
+++ b/src/gui/PianoView.cpp
@@ -238,6 +238,8 @@ int PianoView::getKeyFromKeyEvent( QKeyEvent * _ke )
                case 60: return 14; // . = d
                case 47: return 15; // ; = d#
                case 61: return 16; // / = e
+               case 49: return 10; // ` = A#
+               case 23: return 11; // TAB = B
                case 24: return 12; // Q = c
                case 11: return 13; // 2 = c#
                case 25: return 14; // W = d
@@ -255,6 +257,11 @@ int PianoView::getKeyFromKeyEvent( QKeyEvent * _ke )
                case 32: return 26; // O = d'
                case 19: return 27; // 0 = d'#
                case 33: return 28; // P = e'
+               case 34: return 29; // [ = f'
+               case 21: return 30; // = = f'#
+               case 35: return 31; // ] = g'
+               case 22: return 32; // BACKSPACE = g'#
+               case 51: return 33; // \ = a''
        }
 #endif
 #ifdef LMMS_BUILD_APPLE

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
LMMS-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Reply via email to