It doesn’t work as expected if I try the following:
// bottom row
[...redacted...]
keyboard.setKeyPressForNote(juce::KeyPress('j'), 10);
keyboard.setKeyPressForNote(juce::KeyPress('m'), 11);
keyboard.setKeyPressForNote(juce::KeyPress(','), 12);
keyboard.setKeyPressForNote(juce::KeyPress('l'), 13);
keyboard.setKeyPressForNote(juce::KeyPress('.'), 14);
keyboard.setKeyPressForNote(juce::KeyPress(';'), 15);
keyboard.setKeyPressForNote(juce::KeyPress('/'), 16);
// top row
keyboard.setKeyPressForNote(juce::KeyPress('q'), 12);
keyboard.setKeyPressForNote(juce::KeyPress('2'), 13);
keyboard.setKeyPressForNote(juce::KeyPress('w'), 14);
keyboard.setKeyPressForNote(juce::KeyPress('3'), 15);
keyboard.setKeyPressForNote(juce::KeyPress('e'), 16);
keyboard.setKeyPressForNote(juce::KeyPress('r'), 17);
keyboard.setKeyPressForNote(juce::KeyPress('5'), 18);
keyboard.setKeyPressForNote(juce::KeyPress('t'), 19);
[...redacted...]
I expected that ,
and q
would both trigger C+1
, unfortunately it doesn’t work that way and only one key at a time can be assigned to a note. It would be great if that could be “fixed”.