[PD-cvs] pd/src s_midi_pm.c,1.4.4.1.2.6,1.4.4.1.2.7

Thomas Grill xovo at users.sourceforge.net
Wed Aug 30 10:37:17 CEST 2006


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24079/src

Modified Files:
      Tag: devel_0_39
	s_midi_pm.c 
Log Message:
converting c++-style comments

Index: s_midi_pm.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/s_midi_pm.c,v
retrieving revision 1.4.4.1.2.6
retrieving revision 1.4.4.1.2.7
diff -C2 -d -r1.4.4.1.2.6 -r1.4.4.1.2.7
*** s_midi_pm.c	29 Aug 2006 22:38:38 -0000	1.4.4.1.2.6
--- s_midi_pm.c	30 Aug 2006 08:37:15 -0000	1.4.4.1.2.7
***************
*** 230,267 ****
              int status = Pm_MessageStatus(msg);
  			if(status == 0xf0 || !(status&0x80)) {
! 				// sysex
  				for(j = 0; j < 4; ++j,msg >>= 8) {
  					int data = msg&0xff; 
  					sys_midibytein(i, data);
! 					if(data == 0xf7) break; //sysex end
  				}
  			}
  			else {
! 				// non-sysex
  				sys_midibytein(i, status);
  				
  				switch(status>>4)
  				{
! 				case 0x8: // note off
! 				case 0x9: // note on  
! 				case 0xa: // poly pressure
! 				case 0xb: // control change
! 				case 0xe: // pitch bend
  					sys_midibytein(i, Pm_MessageData1(msg));
  					sys_midibytein(i, Pm_MessageData2(msg));
  					break; 
! 				case 0xc: // program change
! 				case 0xd: // channel pressure
  					sys_midibytein(i, Pm_MessageData1(msg));
  					break;
! 				case 0xf: // system common/realtime messages
  					switch(status) 
  					{
! 						case 0xf1:  // time code
! 						case 0xf3:  // song select
! 						case 0xf6:  // tune request
  							sys_midibytein(i, Pm_MessageData1(msg));
  							break; 
! 						case 0xf2:  // song position pointer
  							sys_midibytein(i, Pm_MessageData1(msg));
  							sys_midibytein(i, Pm_MessageData2(msg));
--- 230,267 ----
              int status = Pm_MessageStatus(msg);
  			if(status == 0xf0 || !(status&0x80)) {
! 				/* sysex header or data */
  				for(j = 0; j < 4; ++j,msg >>= 8) {
  					int data = msg&0xff; 
  					sys_midibytein(i, data);
! 					if(data == 0xf7) break; /* sysex end */
  				}
  			}
  			else {
! 				/* non-sysex */
  				sys_midibytein(i, status);
  				
  				switch(status>>4)
  				{
! 				case 0x8: /* note off */
! 				case 0x9: /* note on */
! 				case 0xa: /* poly pressure */
! 				case 0xb: /* control change */
! 				case 0xe: /* pitch bend */
  					sys_midibytein(i, Pm_MessageData1(msg));
  					sys_midibytein(i, Pm_MessageData2(msg));
  					break; 
! 				case 0xc: /* program change */
! 				case 0xd: /* channel pressure */
  					sys_midibytein(i, Pm_MessageData1(msg));
  					break;
! 				case 0xf: /* system common/realtime messages */
  					switch(status) 
  					{
! 						case 0xf1:  /* time code */
! 						case 0xf3:  /* song select */
! 						case 0xf6:  /* tune request */
  							sys_midibytein(i, Pm_MessageData1(msg));
  							break; 
! 						case 0xf2:  /* song position pointer */
  							sys_midibytein(i, Pm_MessageData1(msg));
  							sys_midibytein(i, Pm_MessageData2(msg));





More information about the Pd-cvs mailing list