[PD-cvs] externals/frankenstein ritmo1.c,1.1,1.2

dmorelli morellid at users.sourceforge.net
Tue Dec 13 18:19:31 CET 2005


Update of /cvsroot/pure-data/externals/frankenstein
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32140

Modified Files:
	ritmo1.c 
Log Message:
changing from 4 bars to 2 bars buffer

Index: ritmo1.c
===================================================================
RCS file: /cvsroot/pure-data/externals/frankenstein/ritmo1.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ritmo1.c	18 Oct 2005 23:10:53 -0000	1.1
--- ritmo1.c	13 Dec 2005 17:19:29 -0000	1.2
***************
*** 15,20 ****
      t_symbol *x_arrayname_dest; // where i put the computed pattern
  	t_float *buf1;
! 	t_float *buf2;
! 	t_float *buf3;
  } t_ritmo1;
  
--- 15,20 ----
      t_symbol *x_arrayname_dest; // where i put the computed pattern
  	t_float *buf1;
! //	t_float *buf2;
! //	t_float *buf3;
  } t_ritmo1;
  
***************
*** 22,27 ****
  {
  	x->buf1 = (t_float *)getbytes(BUFFER_LENGHT * sizeof(t_float));
! 	x->buf2 = (t_float *)getbytes(BUFFER_LENGHT * sizeof(t_float));
! 	x->buf3 =  (t_float *)getbytes(BUFFER_LENGHT * sizeof(t_float));
  }
  
--- 22,27 ----
  {
  	x->buf1 = (t_float *)getbytes(BUFFER_LENGHT * sizeof(t_float));
! //	x->buf2 = (t_float *)getbytes(BUFFER_LENGHT * sizeof(t_float));
! //	x->buf3 =  (t_float *)getbytes(BUFFER_LENGHT * sizeof(t_float));
  }
  
***************
*** 29,34 ****
  {
  	freebytes(x->buf1, sizeof(x->buf1));
! 	freebytes(x->buf2, sizeof(x->buf2));	
! 	freebytes(x->buf3, sizeof(x->buf3));}
  
  static void ritmo1_bang(t_ritmo1 *x) {
--- 29,34 ----
  {
  	freebytes(x->buf1, sizeof(x->buf1));
! //	freebytes(x->buf2, sizeof(x->buf2));	
! //	freebytes(x->buf3, sizeof(x->buf3));}
  
  static void ritmo1_bang(t_ritmo1 *x) {
***************
*** 62,66 ****
  		for (i=0; i<16; i++)
  		{
! 			vecdest[i] = (x->buf1[i] + x->buf2[i] + x->buf3[i] + vecsrc[i])/4;
  		}
  		// redraw the arrays
--- 62,67 ----
  		for (i=0; i<16; i++)
  		{
! 	//		vecdest[i] = (x->buf1[i] + x->buf2[i] + x->buf3[i] + vecsrc[i])/4;
! 			vecdest[i] = (x->buf1[i] vecsrc[i])/2;
  		}
  		// redraw the arrays
***************
*** 69,75 ****
  
  		// step 2: cycle buffers
! 		x->buf3 = x->buf2;
! 		x->buf2 = x->buf1;
! 		x->buf1 = x->buf3;
  		// fill the first buffer with src data
  		for (i=0; i<16; i++)
--- 70,76 ----
  
  		// step 2: cycle buffers
! 	//	x->buf3 = x->buf2;
! 	//	x->buf2 = x->buf1;
! 	//	x->buf1 = x->buf3;
  		// fill the first buffer with src data
  		for (i=0; i<16; i++)





More information about the Pd-cvs mailing list