# \[RESOLVED\]Skywriter theremin.pd demo does not work

**URL:** <https://forums.pimoroni.com/t/resolved-skywriter-theremin-pd-demo-does-not-work/1692>\
**Category:** Support\
**Created:** [January 28, 2016, 9:47pm UTC](https://forums.pimoroni.com/t/resolved-skywriter-theremin-pd-demo-does-not-work/1692 "2016-01-28T21:47:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![555a](https://avatars.discourse-cdn.com/v4/letter/5/d2c977/32.png) [@555a](https://forums.pimoroni.com/u/555a)\
**Post date:** [January 28, 2016, 9:47pm UTC](https://forums.pimoroni.com/t/resolved-skywriter-theremin-pd-demo-does-not-work/1692/1 "2016-01-28T21:47:52Z")

</div>

hi,

I had a bit of fun getting my skywriter hat to work but a firmware update fixed that.

> [@\[SOLVED\]Skywriter Firmware Info error](http://forums.pimoroni.com/t/skywriter-firmware-info-error/1566):
>
> Brand new Raspberry Pi 2 with the Skywriter Hat Linux rpihobby01 4.1.13-v7+ #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/Linux curl -sSL get.pimoroni.com/skywriter | bash sudo apt-get install python-smbus sudo reboot pi@rpihobby01:~ $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- …

Now I have tried all the demos and they all work great except the theremin.pd in the skywriter-hat/python/examples/ folder.

The README.md states that you need to install pd. Done that and the “synth.py” demo works fine so I am guessing it is installed OK.

When I try and run it with the prescribed  
`pd theremin.pd`

I just get

`sh: 1: wish: not found watchdog: signaling pd... watchdog: signaling pd... `  
which just repeats for ever

what am I doing wrong?

has anyone got this demo working, it sounds really exciting so I was surprised to find no videos of it running on YouTube.

> Show off your musical prowess and melodic genius with this groundbreaking 3D theremin.

I am running it in X on HDMI Raspberry Pi 2 Raspbian

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [January 29, 2016, 4:03pm UTC](https://forums.pimoroni.com/t/resolved-skywriter-theremin-pd-demo-does-not-work/1692/2 "2016-01-29T16:03:50Z")

</div>

The `synth.py` demo is, in fact, the Theremin, it’s just very poorly named!

The `theramin.pd` file is actually baked into the little `pdtone.py` python library which `synth.py` loads, so they’re effectively the same thing. ( open `pdtone.py` and scroll riiiiight down to see this for yourself )

`theremin.pd` is, however, provided so you can have a go at tinkering with it and making your own puredata setup. To use it, you should install `puredata-gui` and then you’ll find “Pure Data” in Menu -\> Sound & Video.

Open up Pure Data and you’ll be able to use it to open the `theremin.pd` file and figure out what makes it tick.

At the moment, though, `pdtone.py` doesn’t readily support connecting to a pd instance you’ve started yourself, but it should be a relatively easy tweak- you can probably just comment out the line `self.start_pd()`.

Once you’ve created and saved your own twist on `theremin.pd` you can change the call to `PDTone()` in `synth.py` to load it, by supplying the filename:

```python
tone = PDTone("myownpdfile.pd")

```

PD is a little bit mind-bending, but quite fun. I can’t attest to have got my head around it yet!

---

<div class="post-metadata">

**Author:** ![555a](https://avatars.discourse-cdn.com/v4/letter/5/d2c977/32.png) [@555a](https://forums.pimoroni.com/u/555a)\
**Post date:** [January 30, 2016, 5:41pm UTC](https://forums.pimoroni.com/t/resolved-skywriter-theremin-pd-demo-does-not-work/1692/3 "2016-01-30T17:41:52Z")

</div>

Boy do I feel stupid. I expected a 3D gui app representing the theremin on screen, maybe a job me for me (another day).

thanks for the quick reply.

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [February 1, 2016, 10:49am UTC](https://forums.pimoroni.com/t/resolved-skywriter-theremin-pd-demo-does-not-work/1692/4 "2016-02-01T10:49:02Z")

</div>

This is something I’d love to see- my experience with 3D is very, very limited ( some WebGL stuff ) - although in retrospect it strikes me it could be faked pretty well in 2D isometric… in fact you could make an isometric game with the Skywriter as the input :D

---

<div class="post-metadata">

**Author:** ![Enkerli](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/enkerli/32/1056_2.png) [@Enkerli](https://forums.pimoroni.com/u/Enkerli)\
**Post date:** [June 12, 2016, 4:10pm UTC](https://forums.pimoroni.com/t/resolved-skywriter-theremin-pd-demo-does-not-work/1692/5 "2016-06-12T16:10:40Z")

</div>

Thanks for those explanations!

Was able to tweak [David Gurney’s Voice Granulator patch](http://www.pdpatchrepo.info/patches/patch/185) to accept the Skywriter X/Y/Z input on the Pi. (Had already [tweaked the same patch](https://gist.github.com/Enkerli/062fbec32ea4e4b6a4e0c2a378be09e7) for accelerometer input from Touch OSC.)  
Really nice effect. Running into some audio problems after a while, maybe because it’s too taxing on the Pi. Might use the same thing to drive a Pd patch on a more powerful machine.
