Update of /cvsroot/pure-data/externals/zexy/reference
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11499/reference
Log Message:
Directory /cvsroot/pure-data/externals/zexy/reference added to the repository
Update of /cvsroot/pure-data/abstractions/ptz-camera
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7692
Added Files:
membrane.py
Log Message:
Added the python class to convert bytes to CVS since its currently a
dependancy. Need to change the name and include only ptz stuff in the
script.
--- NEW FILE: membrane.py ---
import pyext
import sys
from numarray import *
class tixel_coords(pyext._class):
# number of inlets and outlets
_inlets=1
_outlets=1
# Vars
numWide = …
[View More]float(4)
numHigh = float(3)
sectionWidth = float()
sectionHeight = float()
myarray = array()
print "tixel_coords init"
# Definitions
# Constructor
def __init__(self,*args):
if len(args) == 2:
self.numWide = args[0]
self.numHigh = args[1]
self.sectionWidth = 1.0/self.numWide
self.sectionHeight = 1.0/self.numHigh
self.myarray = arange(self.numWide*self.numHigh, shape=(self.numHigh,self.numWide), type=Int)
else:
print "External requires 4 arguments: <numWide> <numHeight>"
# methods for first inlet
def bang_(self,n):
for i in xrange(int(self.numWide)):
for j in xrange(int(self.numHigh)):
left = float(i)*self.sectionWidth
right = left + self.sectionWidth
bottom = float(j)*self.sectionHeight
top = bottom+self.sectionHeight
x = self.myarray[j,i]
# constructing list for each tixel
self._outlet(1,x,"coords",left,right,top,bottom)
class int2bytes(pyext._class):
# number of inlets and outlets
_inlets=1
_outlets=4
print "int2bytes init"
# Constructor
# methods
def float_1(self,number):
number = int(number)
for count in xrange(4):
byte = (number & 0xF000) >> 12
number <<=4
self._outlet(count+1,byte)
class seekArray3d(pyext._class):
# number of inlets and outlets
_inlets=1
_outlets=1
print "seekArray init"
# Vars
width = int()
height = int()
depth = int()
index = array()
# Constructor
def __init__(self,*args):
if len(args) == 3:
self.width = args[0]
self.height = args[1]
self.depth = args[2]
self.index = arange(self.width*self.height*self.depth,type=Int32,shape=(self.depth,self.height,self.width))
else:
print "you need to specify at least three aguments: <width> <height> <depth>"
# methods
def seek_1(self,*l):
if len(l) == 3:
zoom = l[0]
tilt = l[1]
pan = l[2]
position = self.index[zoom+1,tilt+1,pan]
self._outlet(1,position)
else:
print "you need to specify at least three aguments: seek <zoom> <tilt> <pan>"
def float_1(self,number):
number = int(number)
for count in xrange(4):
byte = (number & 0xF000) >> 12
number <<=4
self._outlet(count+1,byte)
[View Less]
Update of /cvsroot/pure-data/externals/grill/flext/buildsys/lnx/pd
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24244/buildsys/lnx/pd
Modified Files:
config-gcc.def config-icc.def
Log Message:
fix build system for STK and SndObj support (currently unix only)
fixed SndObjs include files
changed eol-style
no stripping of local symbols
small changes to flext build system
update docs
Index: config-icc.def
===================================================================
RCS file: /…
[View More]cvsroot/pure-data/externals/grill/flext/buildsys/lnx/pd/config-icc.def,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** config-icc.def 10 Apr 2005 22:22:39 -0000 1.2
--- config-icc.def 13 Mar 2007 23:41:22 -0000 1.3
***************
*** 22,25 ****
--- 22,49 ----
###############################################################
+ # STK (synthesis tool kit) support
+ # http://ccrma.stanford.edu/software/stk
+
+ # where to find the STK header files (e.g. stk.h)
+ STK_INC=/usr/local/include/stk
+
+ # where to find the STK library (normally libstk.a)
+ # (comment out STK_LIB if you don't use STK)
+ #STK_LIB=/usr/local/lib/libstk.a
+
+ ###############################################################
+
+ # SndObj support
+ # http://music.nuim.ie//musictec/SndObj
+
+ # where to find the SndObj header files (e.g. sndobj.h)
+ SNDOBJ_INC=/usr/local/include/sndobj
+
+ # where to find the SndObj library (normally libsndobj.a)
+ # (comment out STK_LIB if you don't use SndObj)
+ #SNDOBJ_LIB=/usr/local/lib/libsndobj.a
+
+ ###############################################################
+
# user defined compiler flags
# (check if they match your system!)
Index: config-gcc.def
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/lnx/pd/config-gcc.def,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** config-gcc.def 10 Apr 2005 22:22:39 -0000 1.6
--- config-gcc.def 13 Mar 2007 23:41:22 -0000 1.7
***************
*** 22,25 ****
--- 22,49 ----
###############################################################
+ # STK (synthesis tool kit) support
+ # http://ccrma.stanford.edu/software/stk
+
+ # where to find the STK header files (e.g. stk.h)
+ STK_INC=/usr/local/include/stk
+
+ # where to find the STK library (normally libstk.a)
+ # (comment out STK_LIB if you don't use STK)
+ #STK_LIB=/usr/local/lib/libstk.a
+
+ ###############################################################
+
+ # SndObj support
+ # http://music.nuim.ie//musictec/SndObj
+
+ # where to find the SndObj header files (e.g. sndobj.h)
+ SNDOBJ_INC=/usr/local/include/sndobj
+
+ # where to find the SndObj library (normally libsndobj.a)
+ # (comment out STK_LIB if you don't use SndObj)
+ #SNDOBJ_LIB=/usr/local/lib/libsndobj.a
+
+ ###############################################################
+
# user defined compiler flags
# (check if they match your system!)
[View Less]
Update of /cvsroot/pure-data/externals/grill/flext/source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24244/source
Modified Files:
flsndobj.h flstk.h
Log Message:
fix build system for STK and SndObj support (currently unix only)
fixed SndObjs include files
changed eol-style
no stripping of local symbols
small changes to flext build system
update docs
Index: flsndobj.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/…
[View More]flext/source/flsndobj.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** flsndobj.h 27 Sep 2006 07:52:28 -0000 1.10
--- flsndobj.h 13 Mar 2007 23:41:23 -0000 1.11
***************
*** 3,7 ****
flext - C++ layer for Max/MSP and pd (pure data) externals
! Copyright (c) 2001-2006 Thomas Grill (gr(a)grrrr.org)
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "license.txt," in this distribution.
--- 3,7 ----
flext - C++ layer for Max/MSP and pd (pure data) externals
! Copyright (c) 2001-2007 Thomas Grill (gr(a)grrrr.org)
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "license.txt," in this distribution.
***************
*** 14,22 ****
#include "flext.h"
#ifndef FLEXT_THREADS
#define NOPTHREAD
#endif
! #include <SndObj/SndObj.h>
! #include <SndObj/SndIO.h>
#undef NOPTHREAD
--- 14,27 ----
#include "flext.h"
+ // PI is defined in the Max/MSP SDK, but clashes with SndObj.h
+ #ifdef PI
+ #undef PI
+ #endif
+
#ifndef FLEXT_THREADS
#define NOPTHREAD
#endif
! #include <SndObj.h>
! #include <SndIO.h>
#undef NOPTHREAD
Index: flstk.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/flstk.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** flstk.h 12 Sep 2005 10:27:40 -0000 1.8
--- flstk.h 13 Mar 2007 23:41:23 -0000 1.9
***************
*** 3,7 ****
flext - C++ layer for Max/MSP and pd (pure data) externals
! Copyright (c) 2001-2005 Thomas Grill (gr(a)grrrr.org)
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "license.txt," in this distribution.
--- 3,7 ----
flext - C++ layer for Max/MSP and pd (pure data) externals
! Copyright (c) 2001-2007 Thomas Grill (gr(a)grrrr.org)
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "license.txt," in this distribution.
***************
*** 13,16 ****
--- 13,22 ----
#include "flext.h"
+
+ // PI is defined in the Max/MSP SDK, but clashes with Stk.h
+ #ifdef PI
+ #undef PI
+ #endif
+
#include <Stk.h>
***************
*** 41,45 ****
inline MY_FLOAT lastOut() const { return (MY_FLOAT)buf[index]; }
! inline MY_FLOAT tick() {
if(++index >= vecsz) index = 0;
return lastOut();
--- 47,52 ----
inline MY_FLOAT lastOut() const { return (MY_FLOAT)buf[index]; }
! inline MY_FLOAT tick()
! {
if(++index >= vecsz) index = 0;
return lastOut();
***************
*** 62,66 ****
Output(t_sample *b,int vecsz);
! inline void tick(MY_FLOAT s) {
buf[index] = (t_sample)s;
if(++index >= vecsz) index = 0;
--- 69,74 ----
Output(t_sample *b,int vecsz);
! inline void tick(MY_FLOAT s)
! {
buf[index] = (t_sample)s;
if(++index >= vecsz) index = 0;
[View Less]
Update of /cvsroot/pure-data/externals/grill/flext/buildsys/mac/max
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24244/buildsys/mac/max
Modified Files:
config-gcc.def
Log Message:
fix build system for STK and SndObj support (currently unix only)
fixed SndObjs include files
changed eol-style
no stripping of local symbols
small changes to flext build system
update docs
Index: config-gcc.def
===================================================================
RCS file: /cvsroot/pure-…
[View More]data/externals/grill/flext/buildsys/mac/max/config-gcc.def,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** config-gcc.def 20 Jan 2007 14:26:02 -0000 1.9
--- config-gcc.def 13 Mar 2007 23:41:23 -0000 1.10
***************
*** 1,5 ****
# where are the Max/MSP SDK header files?
# you should have the latest version!
! MAXSDKPATH=/Applications/MaxMSP\ 4.5/MaxMSP-SDK/c74support
###############################################################
--- 1,5 ----
# where are the Max/MSP SDK header files?
# you should have the latest version!
! MAXSDKPATH=/Applications/MaxMSP\ 4.6/MaxMSP-SDK/c74support
###############################################################
***************
*** 24,28 ****
# where should the help files be installed?
! HELPPATH=/Applications/MaxMSP\ 4.5/max-help/flext
###############################################################
--- 24,52 ----
# where should the help files be installed?
! HELPPATH=/Applications/MaxMSP\ 4.6/max-help/flext
!
! ###############################################################
!
! # STK (synthesis tool kit) support
! # http://ccrma.stanford.edu/software/stk
!
! # where to find the STK header files (e.g. stk.h)
! STK_INC=/usr/local/include/stk
!
! # where to find the STK library (normally libstk.a)
! # (comment out STK_LIB if you don't use STK)
! #STK_LIB=/usr/local/lib/libstk.a
!
! ###############################################################
!
! # SndObj support
! # http://music.nuim.ie//musictec/SndObj
!
! # where to find the SndObj header files (e.g. sndobj.h)
! SNDOBJ_INC=/usr/local/include/sndobj
!
! # where to find the SndObj library (normally libsndobj.a)
! # (comment out STK_LIB if you don't use SndObj)
! #SNDOBJ_LIB=/usr/local/lib/libsndobj.a
###############################################################
[View Less]
Update of /cvsroot/pure-data/externals/grill/flext/buildsys/mac/pd
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24244/buildsys/mac/pd
Modified Files:
config-gcc.def
Log Message:
fix build system for STK and SndObj support (currently unix only)
fixed SndObjs include files
changed eol-style
no stripping of local symbols
small changes to flext build system
update docs
Index: config-gcc.def
===================================================================
RCS file: /cvsroot/pure-…
[View More]data/externals/grill/flext/buildsys/mac/pd/config-gcc.def,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** config-gcc.def 20 Jan 2007 14:26:02 -0000 1.11
--- config-gcc.def 13 Mar 2007 23:41:23 -0000 1.12
***************
*** 1,5 ****
# where is the PD installation including source code?
# (this should point to the main folder, which has a "src" subfolder)
! PDPATH=/Applications/Pd-0.38-3.app/Contents/Resources
# where is the PD executable?
--- 1,5 ----
# where is the PD installation including source code?
# (this should point to the main folder, which has a "src" subfolder)
! PDPATH=/Applications/Pd-0.40-2.app/Contents/Resources
# where is the PD executable?
***************
*** 25,28 ****
--- 25,52 ----
###############################################################
+ # STK (synthesis tool kit) support
+ # http://ccrma.stanford.edu/software/stk
+
+ # where to find the STK header files (e.g. stk.h)
+ STK_INC=/usr/local/include/stk
+
+ # where to find the STK library (normally libstk.a)
+ # (comment out STK_LIB if you don't use STK)
+ #STK_LIB=/usr/local/lib/libstk.a
+
+ ###############################################################
+
+ # SndObj support
+ # http://music.nuim.ie//musictec/SndObj
+
+ # where to find the SndObj header files (e.g. sndobj.h)
+ SNDOBJ_INC=/usr/local/include/sndobj
+
+ # where to find the SndObj library (normally libsndobj.a)
+ # (comment out STK_LIB if you don't use SndObj)
+ #SNDOBJ_LIB=/usr/local/lib/libsndobj.a
+
+ ###############################################################
+
# user defined compiler flags
UFLAGS += -ffast-math
[View Less]