# Control your zynthian with a QWERTY (or other) keyboard

**URL:** <https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057>\
**Category:** Software Updates\
**Created:** [June 21, 2019, 4:33pm UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057 "2019-06-21T16:33:26Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [November 13, 2019, 11:33pm UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/41 "2019-11-13T23:33:37Z")

</div>

No. The keyboard binding allows any CUIA action to be mapped to one or more keys with one or more modifiers. If we were to change CUIA so that it formed a subset of the (OSC) API then we could alter to allow key binding to a wider set of actions. That is still on the drawing board.

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [November 14, 2019, 10:41am UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/42 "2019-11-14T10:41:49Z")

</div>

What do you think about producing a custom numeric keyboard? Something like this …

> **[2.4g Wireless Numeric Mini Usb Keyboard Keypad - Buy Keypad,Numeric...](https://www.alibaba.com/product-detail/2-4G-Wireless-Numeric-Mini-USB_60778522701.html)**
>
> 2.4g Wireless Numeric Mini Usb Keyboard Keypad , Find Complete Details about 2.4g Wireless Numeric Mini Usb Keyboard Keypad,Keypad,Numeric Keypad,Usb Numeric Keypad Calculator from Supplier or Manufacturer-Shenzhen Regis Electronic Co., Limited

We could re-define the plot on every key and put the zynthian logo.  
Of course, @zynthianers contributing to define the customization could have all units they want at “production” cost. And I would produce a few for the shop 😉

Regards,

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [November 14, 2019, 12:45pm UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/43 "2019-11-14T12:45:18Z")

</div>

Interesting. I’m still foot switch obsessed at the moment.

If this were to be a blessed product we would be wise to start a list of what functionality people would like to see. IT provides a very interesting point for different modes of use.  
The organ builders would want stops on it, Keyboard players would want patches (snapshots), a straight GUI mode would speed up movement around the zynth, a key for admin, etc . . . wyleus will, of course, insist upon on/off recording on one key 🙂

Back & Select are Backspace & Enter in default but might people want to define this as a default or allow modification of these as well?

Heres it square on for promoting ideas…

![zynth_keypad_2](https://discourse.zynthian.org/uploads/default/original/2X/7/7ec8b7c682ca143add45aef6a1c7363152509b39.png)

---

<div class="post-metadata">

**Author:** ![wolfpaw98](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/w/ee7513/32.png) [@wolfpaw98](https://discourse.zynthian.org/u/wolfpaw98)\
**Post date:** [November 14, 2019, 2:53pm UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/44 "2019-11-14T14:53:55Z")

</div>

The [Num Lock] or [-] keys, for example, could possibly be set up as modifiers that would allow selection of the various keyboard modes. Then [Num Lock] + [1] could switch the keyboard into default mode; [Num Lock] + [2] could switch the keyboard into patch mode, etc. A small icon on the Zynth screen would tell you the mode the keyboard is in. The modes could be customizable from the webconf.

---

<div class="post-metadata">

**Author:** ![mheidt](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/mheidt/32/773_2.png) [@mheidt](https://discourse.zynthian.org/u/mheidt)\
**Post date:** [November 14, 2019, 2:59pm UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/45 "2019-11-14T14:59:47Z")

</div>

I would use this layout  
 ![image](https://discourse.zynthian.org/uploads/default/original/2X/3/37df460303ee6339c5c4774515ed57b9ece577b1.png)

The + is this plus with a circle from  
[http://wiki.zynthian.org/index.php/Zynthian\_UI\_Users\_Guide](http://wiki.zynthian.org/index.php/Zynthian_UI_Users_Guide)

We only have Select up and Down. I think, we should have up and down for all 4 encoders. Esp. to get this Volume Up/Down

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [November 14, 2019, 3:22pm UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/46 "2019-11-14T15:22:11Z")

</div>

> [@wolfpaw98](#):
>
> A small icon on the Zynth screen would tell you the mode the keyboard is in

🙂

But would it come on only once a keyboard (or something that makes key presses any way … ) has spoken or would we have to have some 'recognize a keyboard from the USB start up & plug and play…

I would suggest the former for initial ease of implementation …

(Mind you I want a 🧐 icon to be displayed until someone has done a recording so I can be a bit dictatorial in my views… 🙂 )

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [November 14, 2019, 10:40pm UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/47 "2019-11-14T22:40:23Z")

</div>

There is an article in November issue of Sound On Sound which shows someone who has built a foot pedal board with four large wooden pedals acting against springs which each have a screw positioned and adjusted so that they press a key on s standard USB QWERTY keyboard located beneath. Neat solution 🙂.

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [November 15, 2019, 12:50am UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/48 "2019-11-15T00:50:28Z")

</div>

Regarding a custom USB keypad, I think I would prefer a control pad that was laid out to better match user workflow with bespoke legends rather than just a numerical keypad which anyone could just pick up from a computer shop. The problem with that is identifying a common workflow. I have been considering a customisable pad with moveable keys but it gets expensive!

---

<div class="post-metadata">

**Author:** ![Andy](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@Andy](https://discourse.zynthian.org/u/Andy)\
**Post date:** [November 15, 2019, 6:52am UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/49 "2019-11-15T06:52:58Z")

</div>

Is the ‘Num Lock’ key available to use as a modifier? I think that the ‘Num Lock’ toggles the keyboard between number mode (1,2,3,4,5,6,7,8,9,0) and regular mode (End, down, PgDn, Left, Right, Home, Up, PgUp. I don’t think that pressing the ‘Num Lock’ key creates an ascii code.

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [November 15, 2019, 10:15am UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/50 "2019-11-15T10:15:24Z")

</div>

> [@riban](#):
>
> Regarding a custom USB keypad, I think I would prefer a control pad that was laid out to better match user workflow with bespoke legends rather than just a numerical keypad which anyone could just pick up from a computer shop.

When i say “customized” numerical keyboard, i mean customizing every key with the legend we want (text and plots).  
OK! We could use "stickers"for doing it … and in fact, this could be the first step. But when we have a well-defined and consensual layout, we could simply produce 100-200 units by, let’s say, about 4-7 USD each.

Of course, a completely customized keyboard will be a lot better, but it will be a lot more expensive too.  
I think the "fully customized numerical keypad is a good compromise between functionality and price.

And it’s 2.4G wirless!! 😉

Regards,

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [November 15, 2019, 10:24am UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/51 "2019-11-15T10:24:44Z")

</div>

> [@Andy](#):
>
> Is the ‘Num Lock’ key available to use as a modifier?

Yes, it works in the same way that a conventional keyboard, of course.

> [@Andy](#):
>
> I don’t think that pressing the ‘Num Lock’ key creates an ascii code.

I just tested and pressing the NumLock alone generates a code too!

So i think this is very promising, as we can have, very easily, 2 alternative modes (layouts), and when changing, zynthian can change too. This could be very useful when we have sequencer/looper modes …

Regards,

---

<div class="post-metadata">

**Author:** ![Axeman](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/axeman/32/278_2.png) [@Axeman](https://discourse.zynthian.org/u/Axeman)\
**Post date:** [November 15, 2019, 10:46am UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/52 "2019-11-15T10:46:49Z")

</div>

NumLock generate a SCAN code, non an ASCII code, but nonethless it generate something that can be read 🙂

BTW, when I need something “else” that must works like an USB keyboard, the Ultimarc I-PAC is my choice. And it can handle a key as “shift modifier” by itself.

[https://www.ultimarc.com/control-interfaces/i-pacs/i-pac2/](https://www.ultimarc.com/control-interfaces/i-pacs/i-pac2/)

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [November 15, 2019, 11:06am UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/53 "2019-11-15T11:06:12Z")

</div>

> [@Axeman](#):
>
> NumLock generate a SCAN code, non an ASCII code, but nonethless it generate something that can be read

Exactly … but who is interested in ASCII codes? What we need is “scan” codes … 😉

> [@Axeman](#):
>
> BTW, when I need something “else” that must works like an USB keyboard, the Ultimarc I-PAC is my choice. And it can handle a key as “shift modifier” by itself.

Ohhh! This is perfect for creating highly customized interfaces …

Regards,

---

<div class="post-metadata">

**Author:** ![Axeman](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/axeman/32/278_2.png) [@Axeman](https://discourse.zynthian.org/u/Axeman)\
**Post date:** [November 15, 2019, 11:10am UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/54 "2019-11-15T11:10:30Z")

</div>

> [@jofemodo](#):
>
> Ohhh! This is perfect for creating highly customized interfaces …

It’s its purpose 🙂

Moreover, being designed for gaming, there is no ghosting at all, so it can detect without fuss every keypress even if you press ALL keys at the same time… this is not true for cheap standard keyboard/keypad (I had a keypad once that detected just a single key pressed at a time)

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [November 15, 2019, 9:11pm UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/55 "2019-11-15T21:11:17Z")

</div>

He he - there goes the sub-$10 price ticket 😀. The standard HID USB interface has 6-key rollover, i.e. maximum of 6 simultaneous pressed keys may be detected. How this is implemented is up to the keyboard manufacturers and some have poor implementation. There may also be some limitations in the kernel driver. There are “gaming” keyboards which use multiple HID interfaces. I wonder how much key mashing we would do? As long as the keypad did not block until any 6 keys were pressed and did not have false trigger or release it should be ok. Alternatively we could build something similar using a bespoke USB interface but then you need USB identifiers (expensive ongoing cost) and kernel drivers which seems overkill. I don’t think the USB HID 6-key limit should be a problem for this use case (but am peeved that it exists).

---

<div class="post-metadata">

**Author:** ![Axeman](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/axeman/32/278_2.png) [@Axeman](https://discourse.zynthian.org/u/Axeman)\
**Post date:** [November 15, 2019, 10:35pm UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/56 "2019-11-15T22:35:42Z")

</div>

IPAC does not have that limit. How it does that? 50%IDK 50%IDC, but it has no visible key rollover limitation in Windows and in rPI retrogaming distros)… Tried with ten finger and a nose 😂

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [November 18, 2019, 3:11pm UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/57 "2019-11-18T15:11:24Z")

</div>

![image](https://discourse.zynthian.org/uploads/default/original/2X/b/b204f39ec269d618241246d034e9acecc4ee0cec.png)

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [November 18, 2019, 4:00pm UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/58 "2019-11-18T16:00:56Z")

</div>

I can confirm the re-mapping of TOGGLE\_AUDIO\_RECORD to use the C key (right extreme on three footswitch). and it work very nicely. . . .

[https://discourse.zynthian.org/uploads/default/original/2X/d/d0b6e86de97a76ee9e5894121afb3cdba6bd479b.ogg](https://discourse.zynthian.org/uploads/default/original/2X/d/d0b6e86de97a76ee9e5894121afb3cdba6bd479b.ogg)

Thanks @riban !

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [November 19, 2019, 9:36am UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/59 "2019-11-19T09:36:06Z")

</div>

Attempted to allocate All Sound off to Middle footswitch button ‘b’

But it doesn’t ☹

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/5/504eed43cf6a40ec1953e4ff34ecfe1a5b2ed442.png)

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/c/c9172ff1a73c1e5cdbe0927aae8772bb74e420bf.png)

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [November 19, 2019, 9:45am UTC](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057/60 "2019-11-19T09:45:49Z")

</div>

??? Could you be more verbose? Is this an issue report or a success report? 😉

[Previous page](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057.md?page=2)

[Next page](https://discourse.zynthian.org/t/control-your-zynthian-with-a-qwerty-or-other-keyboard/3057.md?page=4)
