[PD-cvs] externals/postlude/dssi/src dssi~.c, 1.12, 1.13 dssi~.h, 1.9, 1.10

Jamie Bullock postlude at users.sourceforge.net
Wed Mar 29 21:38:58 CEST 2006


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

Modified Files:
	dssi~.c dssi~.h 
Log Message:
Added key and channel aftertouch support.


Index: dssi~.c
===================================================================
RCS file: /cvsroot/pure-data/externals/postlude/dssi/src/dssi~.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** dssi~.c	27 Mar 2006 21:53:43 -0000	1.12
--- dssi~.c	29 Mar 2006 19:38:55 -0000	1.13
***************
*** 1251,1254 ****
--- 1251,1264 ----
  		x->midiEventBuf[x->bufWriteIndex].data.control.value = val;
  		break;
+ 	    case SND_SEQ_EVENT_CHANPRESS:
+ 		x->midiEventBuf[x->bufWriteIndex].data.control.channel = chan;
+ 		x->midiEventBuf[x->bufWriteIndex].data.control.param = 0;
+ 		x->midiEventBuf[x->bufWriteIndex].data.control.value = val;
+ 		break;
+ 	    case SND_SEQ_EVENT_KEYPRESS:
+ 		x->midiEventBuf[x->bufWriteIndex].data.note.channel = chan;
+ 		x->midiEventBuf[x->bufWriteIndex].data.note.note = param;
+ 		x->midiEventBuf[x->bufWriteIndex].data.note.velocity = val;
+ 		break;
  	    case SND_SEQ_EVENT_PGMCHANGE:
  		x->instances[chan].pendingBankMSB = (param - 1) / 128;
***************
*** 1296,1299 ****
--- 1306,1313 ----
  	case ASCII_b: ev_type = SND_SEQ_EVENT_PITCHBEND;
  		      break;
+ 	case ASCII_t: ev_type = SND_SEQ_EVENT_CHANPRESS;
+ 		      break;
+ 	case ASCII_a: ev_type = SND_SEQ_EVENT_KEYPRESS;
+ 		      break;
      }
  #if DEBUG

Index: dssi~.h
===================================================================
RCS file: /cvsroot/pure-data/externals/postlude/dssi/src/dssi~.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** dssi~.h	27 Mar 2006 21:53:43 -0000	1.9
--- dssi~.h	29 Mar 2006 19:38:55 -0000	1.10
***************
*** 42,46 ****
  
  
! #define VERSION 0.93
  #define EVENT_BUFSIZE 1024
  #define OSC_BASE_MAX 1024
--- 42,46 ----
  
  
! #define VERSION 0.94
  #define EVENT_BUFSIZE 1024
  #define OSC_BASE_MAX 1024
***************
*** 51,54 ****
--- 51,56 ----
  #define ASCII_c 99
  #define ASCII_b 98
+ #define ASCII_t 116
+ #define ASCII_a 97
  
  #define LOADGUI 1 /* FIX: depracate this */





More information about the Pd-cvs mailing list