pyExt

Written by: | Posted on:

Thought you'd might want to see just how simple it is: my pyext example for Pure Data. I'm planning to make an object that takes in a floating point number of frequency height and determines what note it is and the amount of error according to different scale temperaments, i.e. Valotti, Werkmeister 3, Kirnberger, Meantone and Equal tempering.

pyext for Pure Data

Written by: | Posted on:

I decided I prefer writing normal logic in a language I'm used to, so I went looking for a Python-external for Pure Data. And sure enough, I found [Thomas Grill][1]'s [py/pyext][2] (built upon flext, a C layer for Python externals). I didn't figure out how to install the binaries (didn't take the time to experiment) so I just compiled them up. Works great. :-)

Writing externals for this is supersimple:

`

class example(pyext._class):
  _inlets=2
  _outlets=1

  def _anything_1(self,args):
    print "inlet 2:",args
    self._outlet(1,1)

  def _anything_2(self,args):
    print "inlet 2:",args
    self._outlet(1,2)

` This little code should be an external that prints out the argument it receives and sends the inlet number it received the signal on to the outlet. [1]: http://grrrr.org [2]: http://grrrr.org/ext/py/

Image Image

Father, husband, software developer, musician and photographer.


Get to know what I'm up to

© 2020 Niklas Saers Contact Me