My head hurts posts a picture of what scientists believe will be a home computer in the year 2004. Look at the monster!

note: urban legend


Python Is Not Java by Phillip J. Eby will save you lots of time


With December 1st coming up tomorrow, here is Praetorius’ Puer natus in Bethlehem in Christian Mondrup’s transcriptions for the recorder. He’s used ABC Plus for the typesetting for those who are interested.


I finished my first external Pure Data object, a note determining object. This object takes in the number of Hz a note is measured to be and outputs what note it is (the low A on a piano being 1, going up to 88), determining how many cent off it is and how many Hz extra there is (i.e, 415Hz = A flat (tone 47), one cent (minus 0.174Hz) low. Fourth output is a text with the note name, in this case Ab. This object uses equal temperament and was just an excercise for me to see if it can be done.

Here’s a screen shot:
Scale object screen shot

The code is copyrighted Niklas Saers, 2004. I place the code under the two clause BSD license meaning I merely ask any redistribution, whether in source or binary, to reproduce this copyright.


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‘s py/pyext (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.