# Working with pure data

**URL:** <https://discourse.zynthian.org/t/working-with-pure-data/1896>\
**Category:** Using Zynthian\
**Created:** [May 16, 2018, 9:49am UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896 "2018-05-16T09:49:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfred](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alfred](https://discourse.zynthian.org/u/alfred)\
**Post date:** [May 16, 2018, 9:49am UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/1 "2018-05-16T09:49:02Z")

</div>

hello everyone, last week i got my Zynthian soldet everything all workes fine.  
but i was not so happy with the software, so i installed raspberian and puredata  
and everything works well.  
but i have no idea how to get control of the potis in pure data and at all  
maybe someone could help  
thanks and greez  
alfred

---

<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:** [May 16, 2018, 10:25am UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/2 "2018-05-16T10:25:29Z")

</div>

Hi @alfred!

Why you didn’t like the software? Could you elaborate a little bit?

Regarding your question, i think the easiest way of integrating the zynthian controllers (“potis”) with pure data would be to create a puredata “zyngine”, integrated with the current software.

> [zynthian-ui/zyngine at testing · zynthian/zynthian-ui · GitHub](https://github.com/zynthian/zynthian-ui/tree/master/zyngine)

If not, you could try to use the zyncoder library, or take from the code the parts you want for creating your controller library:

> [GitHub - zynthian/zyncoder: Rotary encoder & switches library for RBPi GPIO (wiringPi). Implements a GPIO emulation layer for development.](https://github.com/zynthian/zyncoder)

Kind Regards,

---

<div class="post-metadata">

**Author:** ![alfred](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alfred](https://discourse.zynthian.org/u/alfred)\
**Post date:** [May 16, 2018, 10:35am UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/3 "2018-05-16T10:35:21Z")

</div>

i am more interested in pure data than in more vst like synths, sampler and fx  
and i was searching for some small box like Zynthian to work with patches without a laptop. i also tried out organelle but wanted to see my patches on a display…

i will try to work with that library thanks !

---

<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:** [May 16, 2018, 10:39am UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/4 "2018-05-16T10:39:50Z")

</div>

OK! Keep us informed of your advances, please 😉

---

<div class="post-metadata">

**Author:** ![alfred](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alfred](https://discourse.zynthian.org/u/alfred)\
**Post date:** [May 16, 2018, 12:20pm UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/5 "2018-05-16T12:20:34Z")

</div>

so i managed to install the zyncoder library  
and i have “alsa sequencer” for my usb faderbox witch works  
but i could not find the zyncoder knobs  
should they show up in the alsa sequencer ? or how could i get them as midi faders?  
please help 🙂

---

<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:** [May 16, 2018, 3:36pm UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/6 "2018-05-16T15:36:37Z")

</div>

Hi @alfred!

Take a look to the example program “zyncoder\_test.c”

But first pull the latest changes. I’ve fixed it for using MIDI-CC 70-73.  
Before building, you should define the environment variable:

```
export ZYNTHIAN_WIRING_LAYOUT=MCP23017_ENCODERS

```

as it’s v2’s wiring configuration. After that, from the same terminal:

```
cd zyncoder_dir/build
cmake ..
make

```

When you run the “zyncoder\_test” binary, a jack client called “Zyncoder” will be created (jack daemon should be running!!). You can connect the Zyncoder’s MIDI output to pd and will receive MIDI-CC 70-73, corresponding with the 4 encoders. The problem is that PD doesn’t support jack and zyncoder currently doesn’t support ALSA seq. You will need some kind of bridge, like a2jmidid 😉

Regards … and good luck!!

---

<div class="post-metadata">

**Author:** ![alfred](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alfred](https://discourse.zynthian.org/u/alfred)\
**Post date:** [May 16, 2018, 4:22pm UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/7 "2018-05-16T16:22:16Z")

</div>

hello, when i run zyncoder\_test i get the messege:  
gpio: Unable to open GPIO direction interface for pin 17: No such file or directory  
wiringPiISR: unable to open /sys/class/gpio/gpio17/value: No such file or directory

---

<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:** [May 16, 2018, 4:34pm UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/8 "2018-05-16T16:34:08Z")

</div>

You need to run the program as root or give permissions for accessing the GPIO to your user.

Regards,

---

<div class="post-metadata">

**Author:** ![alfred](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alfred](https://discourse.zynthian.org/u/alfred)\
**Post date:** [May 16, 2018, 5:05pm UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/9 "2018-05-16T17:05:29Z")

</div>

i ve done it as root same messege

---

<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:** [May 16, 2018, 10:04pm UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/10 "2018-05-16T22:04:06Z")

</div>

Is there a branch already? I am interested in a pure data integration as well.

---

<div class="post-metadata">

**Author:** ![alfred](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alfred](https://discourse.zynthian.org/u/alfred)\
**Post date:** [May 17, 2018, 7:41am UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/11 "2018-05-17T07:41:34Z")

</div>

i think there is no integration yet…

---

<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:** [May 17, 2018, 9:11am UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/12 "2018-05-17T09:11:02Z")

</div>

Yes, thats why we need to do it. A lot of ppl are asking for pure data

---

<div class="post-metadata">

**Author:** ![alfred](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alfred](https://discourse.zynthian.org/u/alfred)\
**Post date:** [May 17, 2018, 12:21pm UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/13 "2018-05-17T12:21:36Z")

</div>

i m a total linux rookey…

---

<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:** [May 17, 2018, 7:06pm UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/14 "2018-05-17T19:06:20Z")

</div>

I’ve created a task in the github repo:

> <https://github.com/zynthian/zynthian-ui/issues/38>

I’ve been testing with this patch:

[generative\_relaxing.zip](https://discourse.zynthian.org/uploads/default/original/2X/c/cc6b456f33b0b7f9aac6c6caf14be2737b3e5fb2.zip) (6.3 KB)

It’s a generative patch that can be tuned using CC 1,2,3,4 & 7.

Regards,

---

<div class="post-metadata">

**Author:** ![alfred](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alfred](https://discourse.zynthian.org/u/alfred)\
**Post date:** [May 17, 2018, 8:03pm UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/15 "2018-05-17T20:03:31Z")

</div>

oh wow great thanks !

---

<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:** [May 18, 2018, 4:01pm UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/16 "2018-05-18T16:01:56Z")

</div>

I’ve a initial version of the PureData engine. Pull “puredata\_zyngine” branch of zynthian-ui repository 😉  
Something like this:

```
apt-get update
apt-get -y install puredata
apt-get -y install python3-yaml
systemctl enable a2jmidid
systemctl start a2jmidid 
cd /zynthian/zynthian-ui
git fetch
git checkout puredata_zyngine
reboot

```

I’ve prepared some demo patches that you can try and use as example:

[puredata.zip](https://discourse.zynthian.org/uploads/default/original/2X/a/a39b770a7e505110ecda6dd23b3619f57a28d1e6.zip) (49.0 KB)

Simply copy to the “/zynthian/zynthian-my-data/presets” folder and unzip 😉

Enjoy!

---

<div class="post-metadata">

**Author:** ![alfred](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alfred](https://discourse.zynthian.org/u/alfred)\
**Post date:** [May 18, 2018, 4:39pm UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/17 "2018-05-18T16:39:36Z")

</div>

my problem is that i could not get wlan on the zynthian.  
i also tried to take the same networkconfiguratione than in the raspien but didn work.

---

<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:** [May 18, 2018, 5:15pm UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/18 "2018-05-18T17:15:16Z")

</div>

Have you read this post?

> [@WIFI problem - external usb](https://discourse.zynthian.org/t/wifi-problem-external-usb/1898):
>
> need help setting the wifi usb, did a bit of RTFM but sitll not able to get a wifi connections using the webconf ( with ethernet ) crashes on saving wifi info. thanks Raspberry 3b+ latest Gorgona image

Regards

---

<div class="post-metadata">

**Author:** ![alfred](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alfred](https://discourse.zynthian.org/u/alfred)\
**Post date:** [May 18, 2018, 6:20pm UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/19 "2018-05-18T18:20:20Z")

</div>

didnt work, also tried this

> [@Setting up Wifi on Zynthian](https://discourse.zynthian.org/t/setting-up-wifi-on-zynthian/544):
>
> Hey guys– I have a Raspberry Pi 3 Model B V1.2, and didn’t want to bother with ethernet, so this is what I did to get my Zynthian setup to be accessible over Wifi. I’ll go ahead and note that my “box” doesn’t have any hardware other than RPi and a USB \<-\> MIDI cable connected to my keyboard, which I’ve mentioned in other places in the forum. By default, the [Gorgona Image](https://discourse.zynthian.org/t/merry-zynthians-and-happy-new-sd-image/314) does not include either the firmware for the onboard bcm Wifi of the RPi 3, nor does it have wpasupplicant, which is a Linu…

---

<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:** [May 18, 2018, 7:34pm UTC](https://discourse.zynthian.org/t/working-with-pure-data/1896/20 "2018-05-18T19:34:54Z")

</div>

Could you send the output of this 2 commands?

```
ifconfig
iwconfig

```

Also, note that if you are using the aluminum case, the internal wifi device will receive a very weak signal and only will work if you are really close to the router. If not, you should use an usb dongle.

Regards,

[Next page](https://discourse.zynthian.org/t/working-with-pure-data/1896.md?page=2)
