[PD-cvs] externals/zexy/src Makefile.in,NONE,1.1 a2l.c,NONE,1.1 atoi.c,NONE,1.1 avg_tilde.c,NONE,1.1 blockmirror_tilde.c,NONE,1.1 blockswap_tilde.c,NONE,1.1 date.c,NONE,1.1 demultiplex.c,NONE,1.1 demultiplex_tilde.c,NONE,1.1 dfreq_tilde.c,NONE,1.1 dirac_tilde.c,NONE,1.1 dot.c,NONE,1.1 drip.c,NONE,1.1 envrms_tilde.c,NONE,1.1 glue.c,NONE,1.1 index.c,NONE,1.1 length.c,NONE,1.1 limiter_tilde.c,NONE,1.1 list2int.c,NONE,1.1 list2symbol.c,NONE,1.1 lister.c,NONE,1.1 lpt.c,NONE,1.1 makesource.sh,NONE,1.1 makesymbol.c,NONE,1.1 mavg.c,NONE,1.1 minmax.c,NONE,1.1 msgfile.c,NONE,1.1 multiline_tilde.c,NONE,1.1 multiplex.c,NONE,1.1 multiplex_tilde.c,NONE,1.1 niagara.c,NONE,1.1 noish_tilde.c,NONE,1.1 noisi_tilde.c,NONE,1.1 operating_system.c,NONE,1.1 pack_tilde.c,NONE,1.1 packel.c,NONE,1.1 pdf_tilde.c,NONE,1.1 prime.c,NONE,1.1 quantize_tilde.c,NONE,1.1 repack.c,NONE,1.1 repeat.c,NONE,1.1 sfplay.c,NONE,1.1 sfrecord.c,NONE,1.1 sigzero_tilde.c,NONE,1.1 sort.c,NONE,1.1 step_tilde.c,NONE,1.1 strcmp.c,NONE,1.1 sum.c,NONE,1.1 swap_tilde.c,NONE,1.1 symbol2list.c,NONE,1.1 tabdump.c,NONE,1.1 tabminmax.c,NONE,1.1 tabset.c,NONE,1.1 tavg_tilde.c,NONE,1.1 time.c,NONE,1.1 unpack_tilde.c,NONE,1.1 urn.c,NONE,1.1 winNT_portio.c,NONE,1.1 wrap.c,NONE,1.1 z_tilde.c,NONE,1.1 configure.in,1.2,1.3 z_sigbin.c,1.1,1.2 zexy.c,1.7,1.8 zexy.dsp,1.3,1.4 zexy.h,1.2,1.3 configure,1.3,NONE makefile,1.1,NONE makefile.darwin,1.11,NONE makefile.in,1.4,NONE makefile.irix,1.1,NONE makefile.linux,1.10,NONE makefile.nt,1.2,NONE makefile.win,1.1,NONE z_average.c,1.1,NONE z_connective.c,1.2,NONE z_coordinates.c,1.2,NONE z_datetime.c,1.5,NONE z_dfreq.c,1.1,NONE z_drip.c,1.1,NONE z_index.c,1.2,NONE z_limiter.c,1.1,NONE z_lp.c,1.5,NONE z_makesymbol.c,1.1,NONE z_matrix.c,1.3,NONE z_msgfile.c,1.1,NONE z_multiline.c,1.1,NONE z_multiplex.c,1.1,NONE z_noise.c,1.2,NONE z_nop.c,1.1,NONE z_operating_system.c,1.1,NONE z_pack.c,1.4,NONE z_pdf.c,1.1,NONE z_prime.c,1.3,NONE z_quantize.c,1.1,NONE z_random.c,1.3,NONE z_sfplay.c,1.2,NONE z_sfrecord.c,1.3,NONE z_sigaverage.c,1.2,NONE z_sigmatrix.c,1.3,NONE z_sigpack.c,1.1,NONE z_sigzero.c,1.1,NONE z_skeleton.c,1.1,NONE z_skeleton_tilde.c,1.2,NONE z_sort.c,1.2,NONE z_stat.c,1.2,NONE z_strings.c,1.7,NONE z_swap.c,1.2,NONE z_tabread4.c,1.3,NONE z_testfun.c,1.1,NONE z_wrap.c,1.2,NONE z_zdelay.c,1.1,NONE

IOhannes m zmölnig zmoelnig at users.sourceforge.net
Tue Mar 22 21:58:28 CET 2005


Update of /cvsroot/pure-data/externals/zexy/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13025/src

Modified Files:
	configure.in z_sigbin.c zexy.c zexy.dsp zexy.h 
Added Files:
	Makefile.in a2l.c atoi.c avg_tilde.c blockmirror_tilde.c 
	blockswap_tilde.c date.c demultiplex.c demultiplex_tilde.c 
	dfreq_tilde.c dirac_tilde.c dot.c drip.c envrms_tilde.c glue.c 
	index.c length.c limiter_tilde.c list2int.c list2symbol.c 
	lister.c lpt.c makesource.sh makesymbol.c mavg.c minmax.c 
	msgfile.c multiline_tilde.c multiplex.c multiplex_tilde.c 
	niagara.c noish_tilde.c noisi_tilde.c operating_system.c 
	pack_tilde.c packel.c pdf_tilde.c prime.c quantize_tilde.c 
	repack.c repeat.c sfplay.c sfrecord.c sigzero_tilde.c sort.c 
	step_tilde.c strcmp.c sum.c swap_tilde.c symbol2list.c 
	tabdump.c tabminmax.c tabset.c tavg_tilde.c time.c 
	unpack_tilde.c urn.c winNT_portio.c wrap.c z_tilde.c 
Removed Files:
	configure makefile makefile.darwin makefile.in makefile.irix 
	makefile.linux makefile.nt makefile.win z_average.c 
	z_connective.c z_coordinates.c z_datetime.c z_dfreq.c z_drip.c 
	z_index.c z_limiter.c z_lp.c z_makesymbol.c z_matrix.c 
	z_msgfile.c z_multiline.c z_multiplex.c z_noise.c z_nop.c 
	z_operating_system.c z_pack.c z_pdf.c z_prime.c z_quantize.c 
	z_random.c z_sfplay.c z_sfrecord.c z_sigaverage.c 
	z_sigmatrix.c z_sigpack.c z_sigzero.c z_skeleton.c 
	z_skeleton_tilde.c z_sort.c z_stat.c z_strings.c z_swap.c 
	z_tabread4.c z_testfun.c z_wrap.c z_zdelay.c 
Log Message:
zexy-2.0:
- use of abstractions for objects that allow it
- some objects are build both as externals and abstractions (as slower fallbacks)
- code-layout is now 1:1 c-file<->object (this should allow for building of zexy as  a collection of externals instead as a big library)
- matrix-objects have moved to iemmatrix !!


--- NEW FILE: msgfile.c ---
(This appears to be a binary file; contents omitted.)

Index: zexy.h
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/zexy.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** zexy.h	18 Jun 2003 13:57:18 -0000	1.2
--- zexy.h	22 Mar 2005 20:58:25 -0000	1.3
***************
*** 33,45 ****
  #include "m_pd.h"
  
! #define VERSION "1.3"
  
  #ifdef NT
! /* yes, we have beautiful hearts under NT */
! #define HEARTSYMBOL 3
  #else
! /* but none for linux; indeed the only drawback */
! #define HEARTSYMBOL 169
  #endif
  
  #endif
--- 33,75 ----
  #include "m_pd.h"
  
! #define VERSION "2.0"
  
  #ifdef NT
! # pragma warning( disable : 4244 )
! # pragma warning( disable : 4305 )
! # define HEARTSYMBOL 3
! # define sqrtf sqrt
! # define fabsf fabs
! # define STATIC_INLINE
  #else
! # define HEARTSYMBOL 169
  #endif
  
+ #ifdef MACOSX
+ # define sqrtf sqrt
  #endif
+ 
+ 
+ typedef struct _mypdlist
+ {
+   t_object x_obj;
+ 
+   int x_n;
+   t_atom *x_list;
+ } t_mypdlist;
+ 
+ #ifdef SINGLE_EXTERNALS
+ static void zexy_register(char*object){
+   if(object!=0){
+     post("%s: part of the zexy external "VERSION"", object);
+     post("\t (l) forum::für::umläute");
+     post("\t     IOhannes m zmölnig @ IEM");
+     post("\t compiled:  "__DATE__" ");
+   }
+ }
+ #else
+ static void zexy_register(char*object){}
+ #endif /* SINGLE_EXTERNALS */
+ 
+ 
+ #endif /* INCLUDE_ZEXY_H__ */

--- z_random.c DELETED ---

--- NEW FILE: winNT_portio.c ---
/*
 * this is a wrapper for the cor port i/o functions for WinNT/2000/XP.
 * this is to be replaced by some functions that are platform/interface
 * specific to access the data lines.
 * for now, this is only for parport access, but in future there will be a way
 * to plug this on the usb bus.
 * if the interface changes, only this file has to be adopted for the target system
 */
#ifdef NT

#include <stdio.h>
#include <windows.h>

int read_parport(int port);
void write_parport(int port, int value);
int open_port(int port);

static BOOL bPrivException = FALSE;

int read_parport(int port)
{
	// byte = _inp((unsigned short)port);
	unsigned char value;

	__asm mov edx,port
	__asm in al,dx
	__asm mov value,al
	return (int)value;
}

void write_parport(int port, int invalue)
{
	// _outp((unsigned short)port, value);
	BYTE value = (BYTE)invalue;
	__asm mov edx,port
	__asm mov al,value
	__asm out dx,al
}

static LONG WINAPI HandlerExceptionFilter ( EXCEPTION_POINTERS *pExPtrs )
{

	if (pExPtrs->ExceptionRecord->ExceptionCode == EXCEPTION_PRIV_INSTRUCTION)
	{
		pExPtrs->ContextRecord->Eip ++; // Skip the OUT or IN instruction that caused the exception
		bPrivException = TRUE;
		return EXCEPTION_CONTINUE_EXECUTION;
	}
	else
		return EXCEPTION_CONTINUE_SEARCH;
}

static BOOL StartUpIoPorts(UINT PortToAccess, BOOL bShowMessageBox, HWND hParentWnd)
{
	HANDLE hUserPort;

	hUserPort = CreateFile("\\\\.\\UserPort", GENERIC_READ, 0, NULL,OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
	CloseHandle(hUserPort); // Activate the driver
	Sleep(100); // We must make a process switch

	SetUnhandledExceptionFilter(HandlerExceptionFilter);
	
	bPrivException = FALSE;
	read_parport(PortToAccess);  // Try to access the given port address

	if (bPrivException)
	{
		if (bShowMessageBox)
		{
#if 0
    		MessageBox(hParentWnd,"Privileged instruction exception has occured!\r\n\r\n"
								  "To use this external under Windows NT, 2000 or XP\r\n"
								  "you need to install the driver 'UserPort.sys' and grant\r\n"
								  "access to the ports used by this program.\r\n\r\n"
								  "See the file README for further information!\r\n", NULL, MB_OK);
#endif
		}
		return FALSE;
	}
	return TRUE;
}
	/* check if we are running NT/2k/XP */
static int IsWinNT(void)
{
	OSVERSIONINFO OSVersionInfo;
	OSVersionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);

	GetVersionEx(&OSVersionInfo);

	return OSVersionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT;
}

	/* open parport */
int open_port(int port)
{
	if(IsWinNT())	/* we are under NT and need kernel driver */
	{
		if(StartUpIoPorts(port, 1, 0))
			return(0);
		return(-1);
	}
	else	/* no need to use kernel driver */
	{
		return(0);
	}
}
#endif /* NT */

--- NEW FILE: tabset.c ---
(This appears to be a binary file; contents omitted.)

Index: zexy.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/zexy.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** zexy.c	1 Dec 2003 15:09:03 -0000	1.7
--- zexy.c	22 Mar 2005 20:58:25 -0000	1.8
***************
*** 1,6 ****
  /* ...this is a very ZEXY external ...
     so have fun
- 	
-    1999:forum::für::umläute:2001
  */
  
--- 1,21 ----
+ /******************************************************
+  *
+  * zexy - implementation file
+  *
+  * copyleft (c) IOhannes m zmölnig
+  *
+  *   1999:forum::für::umläute:2004
+  *
+  *   institute of electronic music and acoustics (iem)
+  *
+  ******************************************************
+  *
+  * license: GNU General Public License v.2
+  *
+  ******************************************************/
+ 
+ 
  /* ...this is a very ZEXY external ...
     so have fun
  */
  
***************
*** 135,139 ****
  }
  
! void *zexy_new(void)
  {
    t_zexy *x = (t_zexy *)pd_new(zexy_class);
--- 150,154 ----
  }
  
! static void *zexy_new(void)
  {
    t_zexy *x = (t_zexy *)pd_new(zexy_class);
***************
*** 141,279 ****
  }
  
! /* include some externals */
! #if 0
! void z_streamin_setup();	/* urps, i THINK this will be linux only */
! void z_streamout_setup();
! void z_stdinout_setup();	// not yet...
! #endif // 0
! void z_sfplay_setup();
! void z_sfrecord_setup();
! void z_noise_setup();
! void z_testfun_setup();
! void z_nop_setup();
! void z_zdelay_setup();
! void z_limiter_setup();
! void z_swap_setup();
! void z_quantize_setup();
! void z_sigzero_setup();
! void z_tabread4_setup();
! void z_makefilenamen_setup();
! void z_makesymbol_setup();
! 
! void z_pdf_setup();
! void z_dfreq_setup();
! void z_sigaverage_setup();
! void z_sigpack_setup();
! 
! void z_datetime_setup();
! 
! void z_sigbin_setup();
! 
! #if 0  // used to be Win32 only, but i somehow lost the fine code
! void z_execute_setup();
! #endif
! 
! /* lp ports are only on i386 machines  */
! #ifdef __i386__
! void z_lp_setup();
! #endif
! 
! void z_index_setup();
! void z_connective_setup();
! void z_sort_setup();
! void z_multiplex_setup();
! void z_average_setup();
! void z_coordinates_setup();
! void z_stat_setup();
! 
! void z_pack_setup();
! void z_drip_setup();
! 
! void z_stdinout_setup();
! void z_msgfile_setup();
! void z_multiline_setup();
! void z_matrix_setup();
! void z_sigmatrix_setup();
! 
! void z_strings_setup();
! 
! void z_prime_setup();
! void z_random_setup();
! void z_wrap_setup();
! /*
!   waiting to be released in near future:
!   make stdin~ and stdout~ work
!   MAKE streamin~ work !!!
!   sql
!   ...
! */
! void z_operating_system_setup();
  
  void zexy_setup(void) 
  {
    int i;
! #if 0
! #ifdef linux
!   z_streamin_setup();
! #endif
!   z_streamout_setup();
!   z_stdinout_setup();
! #endif
!   z_sfplay_setup();
!   z_sfrecord_setup();
!   z_noise_setup();
!   z_testfun_setup();
!   z_limiter_setup();
!   z_nop_setup();
!   z_zdelay_setup();
!   z_swap_setup();
!   z_quantize_setup();
! 
!   z_sigzero_setup();
!   z_pdf_setup();
!   z_dfreq_setup();
!   z_sigaverage_setup();
!   z_sigbin_setup();
! 
!   z_sigpack_setup();
! 
!   z_tabread4_setup();
!   z_average_setup();
!   z_coordinates_setup();
!   z_stat_setup();
!   z_makesymbol_setup();
! 
!   z_datetime_setup();
! 
!   z_index_setup();
!   z_connective_setup();
!   z_sort_setup();
!   z_multiplex_setup();
!   z_pack_setup();
!   z_drip_setup();
! 
!   z_prime_setup();
!   z_random_setup();
!   z_wrap_setup();
! #if 0
!   z_stdinout_setup();
! 
!   // we'll do this the next days
!   z_execute_setup();
! #endif
!   z_msgfile_setup();
! 
!   z_multiline_setup();
!   z_matrix_setup();
!   z_sigmatrix_setup();
! 
!   z_strings_setup();
!   z_operating_system_setup();
! 
! /* lp ports are only on i386 machines  */
! #ifdef __i386__
!   z_lp_setup();
! #endif
! 
    /* ************************************** */
    startpost("\n\t");
--- 156,165 ----
  }
  
! #include "z_zexy.c"
  
  void zexy_setup(void) 
  {
    int i;
!   z_zexy_setup();
    /* ************************************** */
    startpost("\n\t");

--- z_limiter.c DELETED ---

--- z_coordinates.c DELETED ---

--- NEW FILE: operating_system.c ---
(This appears to be a binary file; contents omitted.)

--- z_noise.c DELETED ---

--- NEW FILE: sum.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: list2int.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: multiplex_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: drip.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: quantize_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: Makefile.in ---
LIBNAME    =zexy

PREFIX     =@prefix@@PDLIBDIR@

INSTALL_BIN=$(PREFIX)/extra
INSTALL_DOC=$(PREFIX)/@REFERENCEPATH@$(LIBNAME)

EXT = @EXT@ 
DEFS = @DFLAGS@
IFLAGS = -I. @INCLUDES@

CC = @CC@
LD = @LD@
AFLAGS = 
LFLAGS = @LFLAGS@
WFLAGS =

TARNAME =  $(LIBNAME)- at ZEXY_VERSION@.tgz

.SUFFIXES: .$(EXT)

PDCFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) $(LFLAGS) $(AFLAGS)
CFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS)

LIBS = @LIBS@
#LIBS = -lpthread -lm -lc 

include Make.source

TARGETS = $(SOURCES:.c=.o)


all: $(LIBNAME)
	cp $(LIBNAME).$(EXT) ..

$(LIBNAME): $(TARGETS)
	$(LD) $(LFLAGS) -o $(LIBNAME).$(EXT) *.o $(LIBS)
	strip @STRIPFLAGS@ $(LIBNAME).$(EXT)

.c.o:
	$(CC) -c -o $@ $(CFLAGS) -DPD $*.c

# cp $@ $*_stat.o

.o.$(EXT):
	$(CC) -o $@ $(PDCFLAGS) -DPD $*.o


clean:
	-rm -f *.$(EXT) *.o 

cleaner: clean
	-rm -f *~ _* config.*

cleanest: cleaner
	-rm -f Makefile ../*.$(EXT) Make.source

distclean: cleanest newmakefile

install: install-bin install-doc install-abs

install-bin:
	-install -d $(INSTALL_BIN)
	-install -m 644 $(LIBNAME).$(EXT) $(INSTALL_BIN)

install-doc:
	-install -d $(INSTALL_DOC)
	-install -m 644 ../examples/*.pd $(INSTALL_DOC)

install-abs:
	-install -d $(INSTALL_BIN)
	-install -m 644 ../abs/*.pd $(INSTALL_BIN)

dist: all cleaner
	(cd ../..;tar czvf $(TARNAME) $(LIBNAME))

everything: clean all install distclean

newmakefile:
	echo "current:">Makefile
	echo "	./configure && make">>Makefile

make.source:
	echo "SOURCES = \\"> Make.source
	echo `ls z_*.c $(LIBNAME).c` >> Make.source
	echo >> Make.source

--- z_sfrecord.c DELETED ---

--- makefile.in DELETED ---

--- makefile.nt DELETED ---

--- makefile.darwin DELETED ---

--- NEW FILE: pdf_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: wrap.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: packel.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: atoi.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: blockmirror_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- z_operating_system.c DELETED ---

--- NEW FILE: glue.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: length.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: tavg_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- z_index.c DELETED ---

Index: z_sigbin.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/z_sigbin.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** z_sigbin.c	9 Oct 2002 10:19:04 -0000	1.1
--- z_sigbin.c	22 Mar 2005 20:58:25 -0000	1.2
***************
*** 1,2 ****
--- 1,18 ----
+ /******************************************************
+  *
+  * zexy - implementation file
+  *
+  * copyleft (c) IOhannes m zmölnig
+  *
+  *   1999:forum::für::umläute:2004
+  *
+  *   institute of electronic music and acoustics (iem)
+  *
+  ******************************************************
+  *
+  * license: GNU General Public License v.2
+  *
+  ******************************************************/
+ 
  /*
  	finally :: some of the missing binops for signals :: abs~, sgn~, >~, <~, ==~, &&~, ||~
***************
*** 10,15 ****
  #ifdef NT
  #define fabsf fabs
- #pragma warning( disable : 4244 )
- #pragma warning( disable : 4305 )
  #endif
  
--- 26,29 ----
***************
*** 799,801 ****
--- 813,816 ----
    sigOR_setup();
    sigAND_setup();
+   zexy_register("sigbin");
  }

--- NEW FILE: blockswap_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: sort.c ---
(This appears to be a binary file; contents omitted.)

--- z_swap.c DELETED ---

--- z_datetime.c DELETED ---

--- NEW FILE: repeat.c ---
(This appears to be a binary file; contents omitted.)

--- makefile.irix DELETED ---

--- z_pack.c DELETED ---

--- z_skeleton_tilde.c DELETED ---

--- z_matrix.c DELETED ---

--- NEW FILE: demultiplex.c ---
(This appears to be a binary file; contents omitted.)

--- z_connective.c DELETED ---

--- z_sigpack.c DELETED ---

--- NEW FILE: tabdump.c ---

/******************************************************
 *
 * zexy - implementation file
 *
 * copyleft (c) IOhannes m zmölnig
 *
 *   1999:forum::für::umläute:2004
 *
 *   institute of electronic music and acoustics (iem)
 *
 ******************************************************
 *
 * license: GNU General Public License v.2
 *
 ******************************************************/


/* hack : 2108:forum::für::umläute:1999 @ iem */

#include "zexy.h"


/* =================== tabdump ====================== */

static t_class *tabdump_class;

typedef struct _tabdump
{
  t_object x_obj;
  t_symbol *x_arrayname;
  t_int startindex, stopindex;
} t_tabdump;

static void tabdump_bang(t_tabdump *x)
{
  t_garray *A;
  int npoints;
  t_float *vec;

  if (!(A = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class)))
    error("%s: no such array", x->x_arrayname->s_name);
  else if (!garray_getfloatarray(A, &npoints, &vec))
    error("%s: bad template for tabdump", x->x_arrayname->s_name);
  else
    {
      int n;
      t_atom *atombuf;

      int start=x->startindex;
      int stop =x->stopindex;
      if(start<0||start>stop)start=0;
      if(stop<start||stop>npoints)stop=npoints;
      npoints=stop-start;

      atombuf = (t_atom *)getbytes(sizeof(t_atom)*npoints);
      for (n = 0; n < npoints; n++) SETFLOAT(&atombuf[n], vec[start+n]);
      outlet_list(x->x_obj.ob_outlet, &s_list, npoints, atombuf);
      freebytes(atombuf,sizeof(t_atom)*npoints);
    }
}

static void tabdump_list(t_tabdump *x, t_symbol*s,int argc, t_atom*argv)
{
  int a,b;
  switch(argc){
  case 2:
    a=atom_getint(argv);
    b=atom_getint(argv+1);
    x->startindex=(a<b)?a:b;
    x->stopindex =(a>b)?a:b;
    tabdump_bang(x);
    break;
  default:
    error("tabdump: list must be 2 floats (is %d atoms)", argc);
  }
}

static void tabdump_set(t_tabdump *x, t_symbol *s)
{
  x->x_arrayname = s;
}

static void *tabdump_new(t_symbol *s)
{
  t_tabdump *x = (t_tabdump *)pd_new(tabdump_class);
  x->x_arrayname = s;
  x->startindex=0;
  x->stopindex=-1;
  outlet_new(&x->x_obj, &s_list);

  return (x);
}

static void tabdump_helper(void)
{
  post("\n%c tabdump - object : dumps a table as a package of floats", HEARTSYMBOL);
  post("'set <table>'\t: read out another table\n"
       "'bang'\t\t: dump the table\n"
       "outlet\t\t: table-data as package of floats");
  post("creation\t: \"tabdump <table>\"");

}

void tabdump_setup(void)
{
  tabdump_class = class_new(gensym("tabdump"), (t_newmethod)tabdump_new,
			     0, sizeof(t_tabdump), 0, A_DEFSYM, 0);
  class_addbang(tabdump_class, (t_method)tabdump_bang);
  class_addlist(tabdump_class, (t_method)tabdump_list);

  class_addmethod(tabdump_class, (t_method)tabdump_set, gensym("set"),
		  A_SYMBOL, 0);

  class_addmethod(tabdump_class, (t_method)tabdump_helper, gensym("help"), 0);
  class_sethelpsymbol(tabdump_class, gensym("zexy/tabdump"));
}

--- NEW FILE: avg_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- z_multiplex.c DELETED ---

--- NEW FILE: time.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: makesymbol.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: sfplay.c ---
(This appears to be a binary file; contents omitted.)

--- z_multiline.c DELETED ---

--- NEW FILE: prime.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: mavg.c ---
(This appears to be a binary file; contents omitted.)

--- z_wrap.c DELETED ---

--- NEW FILE: makesource.sh ---
#!/bin/sh

ZEXY_H=z_zexy.h
ZEXY_C=z_zexy.c
ZEXY_S=Make.source

function head_h() {
 echo "/* zexy-setup autogenerated header-file"
 echo " * generated by \"$0\""
 echo " * !! DO NOT MANUALLY EDIT  !!"
 echo " */"
 echo
 echo "#ifndef Z_ZEXY_H__"
 echo "#define Z_ZEXY_H__"
}

function foot_h() {
 echo "#endif /* Z_ZEXY_H__ */"
 echo ""
}

function head_c() {
 echo "/* zexy-setup autogenerated setup-file"
 echo " * generated by \"$0\""
 echo " * !! DO NOT MANUALLY EDIT  !!"
 echo " */"
 echo 
 echo "#include \"$ZEXY_H\""
 echo
 echo "void z_zexy_setup(void)"
 echo "{"
}

function foot_c() {
 echo "}"
 echo
}

function head_s() {
  echo "SOURCES = \\"
}

function foot_s() {
  echo "	zexy.c"
  echo
}

head_h > $ZEXY_H
head_c > $ZEXY_C
head_s > $ZEXY_S

for i in `ls *.c | grep -v zexy.c`
do
  NAME="${i%.c}"
  SETUPNAME="void ${NAME}_setup(void)"
  if grep "$SETUPNAME" $i > /dev/null
  then
#    echo ${i%.c}
    echo "	$i \\" >> $ZEXY_S
    echo "$SETUPNAME;" >> $ZEXY_H
    echo "	${NAME}_setup();" >> $ZEXY_C
  fi
done

foot_h >> $ZEXY_H
foot_c >> $ZEXY_C
foot_s >> $ZEXY_S


--- NEW FILE: strcmp.c ---
(This appears to be a binary file; contents omitted.)

--- z_average.c DELETED ---

--- NEW FILE: noisi_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- z_tabread4.c DELETED ---

--- z_lp.c DELETED ---

--- NEW FILE: a2l.c ---
(This appears to be a binary file; contents omitted.)

--- z_sigzero.c DELETED ---

--- NEW FILE: multiplex.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: sfrecord.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: noish_tilde.c ---
(This appears to be a binary file; contents omitted.)

Index: configure.in
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/configure.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** configure.in	22 Jul 2004 09:24:52 -0000	1.2
--- configure.in	22 Mar 2005 20:58:22 -0000	1.3
***************
*** 215,226 ****
  fi
  
! echo "SOURCES = \\"> make.source
! for i in `ls z_*.c zexy.c`
  do
!   echo "	$i\\">> make.source
  done
! echo >> make.source
  
! AC_OUTPUT(makefile)
  
! rm -f conftest.*
\ No newline at end of file
--- 215,227 ----
  fi
  
! echo "SOURCES = \\"> Make.source
! for i in `ls *.c`
  do
!   echo "	$i\\">> Make.source
  done
! echo >> Make.source
  
! AC_OUTPUT(Makefile)
  
! rm -f conftest.*
! ./makesource.sh

--- z_strings.c DELETED ---

--- z_makesymbol.c DELETED ---

--- z_sfplay.c DELETED ---

--- NEW FILE: dfreq_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: dirac_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- configure DELETED ---

--- NEW FILE: tabminmax.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: index.c ---
(This appears to be a binary file; contents omitted.)

--- z_pdf.c DELETED ---

--- NEW FILE: pack_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: lister.c ---
(This appears to be a binary file; contents omitted.)

--- makefile.linux DELETED ---

--- NEW FILE: swap_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: envrms_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: z_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: symbol2list.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: niagara.c ---
(This appears to be a binary file; contents omitted.)

--- z_dfreq.c DELETED ---

--- NEW FILE: list2symbol.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: minmax.c ---
(This appears to be a binary file; contents omitted.)

--- z_skeleton.c DELETED ---

Index: zexy.dsp
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/zexy.dsp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** zexy.dsp	21 Jan 2004 18:13:49 -0000	1.3
--- zexy.dsp	22 Mar 2005 20:58:25 -0000	1.4
***************
*** 40,44 ****
  # PROP Target_Dir ""
  # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "ZEXY_EXPORTS" /YX /FD /c
! # ADD CPP /nologo /MT /W3 /GX /I "..\..\..\pd\src" /D "WIN32" /D "NT" /D "_WINDOWS" /D "ZEXY" /FR /YX /FD /c
  # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
  # ADD MTL /nologo /win32
--- 40,45 ----
  # PROP Target_Dir ""
  # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "ZEXY_EXPORTS" /YX /FD /c
! # ADD CPP /nologo /Zp16 /W3 /GX /I "..\..\..\pd\src" /D "WIN32" /D "NT" /D "_WINDOWS" /D "ZEXY" /D "Z_WANT_LPT" /FR /YX /FD /c
! # SUBTRACT CPP /O<none>
  # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
  # ADD MTL /nologo /win32
***************
*** 61,205 ****
  # Begin Source File
  
! SOURCE=.\z_average.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_connective.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_coordinates.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_datetime.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_dfreq.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_drip.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_index.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_limiter.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_makesymbol.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_matrix.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_msgfile.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_multiline.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_multiplex.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_noise.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_nop.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_operating_system.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_pack.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_pdf.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_prime.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_quantize.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_random.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_sfplay.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_sfrecord.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_sigaverage.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_sigbin.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_sigmatrix.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_sigpack.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_sigzero.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_sort.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_stat.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_strings.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_swap.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_tabread4.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_testfun.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_wrap.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\z_zdelay.c
  # End Source File
  # Begin Source File
--- 62,298 ----
  # Begin Source File
  
! SOURCE=.\a2l.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\atoi.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\avg_tilde.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\blockmirror_tilde.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\blockswap_tilde.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\date.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\demultiplex.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\demultiplex_tilde.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\dfreq_tilde.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\dirac_tilde.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\dot.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\drip.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\envrms_tilde.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\glue.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\index.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\length.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\limiter_tilde.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\list2int.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\list2symbol.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\lister.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\lpt.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\makesymbol.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\mavg.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\minmax.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\msgfile.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\multiline_tilde.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\multiplex.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\multiplex_tilde.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\niagara.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\noish_tilde.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\noisi_tilde.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\operating_system.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\pack_tilde.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\packel.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\pdf_tilde.c
  # End Source File
  # Begin Source File
  
! SOURCE=.\prime.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\quantize_tilde.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\repack.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\repeat.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\sfplay.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\sfrecord.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\sigzero_tilde.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\sort.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\step_tilde.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\strcmp.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\sum.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\swap_tilde.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\symbol2list.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\tabdump.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\tabminmax.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\tabset.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\tavg_tilde.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\time.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\unpack_tilde.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\urn.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\winNT_portio.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\wrap.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\z_sigbin.c
! # End Source File
! # Begin Source File
! 
! SOURCE=.\z_tilde.c
  # End Source File
  # Begin Source File
***************
*** 220,223 ****
--- 313,324 ----
  # End Source File
  # End Group
+ # Begin Group "generic"
+ 
+ # PROP Default_Filter ""
+ # Begin Source File
+ 
+ SOURCE=.\z_zexy.h
+ # End Source File
+ # End Group
  # End Target
  # End Project

--- z_stat.c DELETED ---

--- NEW FILE: multiline_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- z_quantize.c DELETED ---

--- NEW FILE: unpack_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: date.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: step_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: lpt.c ---
(This appears to be a binary file; contents omitted.)

--- z_msgfile.c DELETED ---

--- NEW FILE: repack.c ---
(This appears to be a binary file; contents omitted.)

--- z_sigmatrix.c DELETED ---

--- NEW FILE: sigzero_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: urn.c ---
(This appears to be a binary file; contents omitted.)

--- z_prime.c DELETED ---

--- NEW FILE: limiter_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- makefile DELETED ---

--- z_testfun.c DELETED ---

--- z_sigaverage.c DELETED ---

--- NEW FILE: dot.c ---
(This appears to be a binary file; contents omitted.)

--- z_nop.c DELETED ---

--- z_sort.c DELETED ---

--- NEW FILE: demultiplex_tilde.c ---
(This appears to be a binary file; contents omitted.)

--- makefile.win DELETED ---

--- z_drip.c DELETED ---

--- z_zdelay.c DELETED ---





More information about the Pd-cvs mailing list