# Chnset and xypad

**URL:** <https://forum.cabbageaudio.com/t/chnset-and-xypad/321>\
**Category:** Cabbage Stew\
**Created:** [5 October 2016 10:31 UTC](https://forum.cabbageaudio.com/t/chnset-and-xypad/321 "2016-10-05T10:31:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeBord](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/debord/32/399_2.png) [@DeBord](https://forum.cabbageaudio.com/u/DeBord)\
**Post date:** [5 October 2016 10:31 UTC](https://forum.cabbageaudio.com/t/chnset-and-xypad/321/1 "2016-10-05T10:31:04Z")

</div>

Hi all,

I was trying to update the xypad widget in GUI using chnset as I usually do with sliders.  
Is it possible to do something like that? because in this way it seems not working:

```
   kPosX randomi -1, 1, 0.5
   kPosY randomi -1, 1, 0.5

   chnset kPosX, "x"
   chnset kPosY, "y"

```

Have a nice Cabbage day!

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [6 October 2016 15:19 UTC](https://forum.cabbageaudio.com/t/chnset-and-xypad/321/2 "2016-10-06T15:19:20Z")

</div>

I’m afraid this is not possible at the moment. If it is something that you would find useful I can see about adding it for future versions. The XYpad, although largely functional, is a little fickle. I’ve been purposely staying away from it for a long time!

---

<div class="post-metadata">

**Author:** ![DeBord](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/debord/32/399_2.png) [@DeBord](https://forum.cabbageaudio.com/u/DeBord)\
**Post date:** [6 October 2016 15:50 UTC](https://forum.cabbageaudio.com/t/chnset-and-xypad/321/3 "2016-10-06T15:50:15Z")

</div>

It’s not so important.. I’m creating some presets for the quadriphonic spatialization and I’d like to have a feedback about the position of the source on the xypad. Maybe in future could be useful if it doesn’t cause a drain on the CPU 😉

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [6 October 2016 17:41 UTC](https://forum.cabbageaudio.com/t/chnset-and-xypad/321/4 "2016-10-06T17:41:02Z")

</div>

It could be done using a homemade xypad. If I get a moment later I’ll send you on a mock-up.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [6 October 2016 18:44 UTC](https://forum.cabbageaudio.com/t/chnset-and-xypad/321/5 "2016-10-06T18:44:55Z")

</div>

Maybe this can be of some use.

![](https://forum.cabbageaudio.com/uploads/default/original/1X/59977b8777171297cbcd29c8d37f40d92498573a.gif)

[homegrownXYpad.csd](https://forum.cabbageaudio.com/uploads/default/original/1X/2cd1201bb4916eeabea992ccd251c9ae0bd24ffa.csd) (1.6 KB)

---

<div class="post-metadata">

**Author:** ![DeBord](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/debord/32/399_2.png) [@DeBord](https://forum.cabbageaudio.com/u/DeBord)\
**Post date:** [7 October 2016 08:37 UTC](https://forum.cabbageaudio.com/t/chnset-and-xypad/321/6 "2016-10-07T08:37:21Z")

</div>

Of course! I was trying to do something similar just yesterday, but I was missing some code. Thanks!

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [7 October 2016 10:02 UTC](https://forum.cabbageaudio.com/t/chnset-and-xypad/321/7 "2016-10-07T10:02:50Z")

</div>

Using this method you could also add as many balls to the xyPad as you like. I started updating it last night so that I could use the right-mouse click to select different balls to move around. But in the end it got late, and I got tired!!

---

<div class="post-metadata">

**Author:** ![DeBord](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/debord/32/399_2.png) [@DeBord](https://forum.cabbageaudio.com/u/DeBord)\
**Post date:** [7 October 2016 14:19 UTC](https://forum.cabbageaudio.com/t/chnset-and-xypad/321/8 "2016-10-07T14:19:55Z")

</div>

Good idea, It could be interesting to control different sources, but don’t go crazy! 😁  
At the moment I’ve duplicated your homegrownXYpad and it works perfectly to control the space opcode.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [7 October 2016 15:55 UTC](https://forum.cabbageaudio.com/t/chnset-and-xypad/321/9 "2016-10-07T15:55:47Z")

</div>

If you find it’s using a little too much CPU, change the [GUI refresh rate](http://cabbageaudio.com/docs/form/). Alternatively, you could reduce it and have smoother graphics. Have fun. It’s nice to be able to build things like this using simple Cabbage widgets.
