[PD-dev] midirealtime/midiclk

Thomas Grill gr at grrrr.org
Mon Aug 28 15:47:21 CEST 2006

Hi all,
since the SF patch tracker is down i post it here for now. It's  
already fixed in the devel branch.

First, there's a bug in x_midi.c, preventing the output of the midi  
status byte from the midirealtime object. Find the fixing diff below.

Second: Midi clock messages are also sent to midirealtime, although  
there's also a midiclkin object (for midi status F8), which seems to  
be unused. The respective inmidi_clk function is used nowhere in PD.  
Is midiclkin supposed to be used one day?


Index: src/x_midi.c
RCS file: /cvsroot/pure-data/pd/src/x_midi.c,v
retrieving revision
diff -u -w -r1.2.8.5 x_midi.c
--- src/x_midi.c        28 Aug 2006 13:25:45 -0000
+++ src/x_midi.c        28 Aug 2006 13:38:15 -0000
@@ -639,7 +639,7 @@
          t_atom at[2];
          SETFLOAT(at, portno);
          SETFLOAT(at+1, SysMsg);
-        pd_list(midirealtimein_sym->s_thing, &s_list, 1, at);
+        pd_list(midirealtimein_sym->s_thing, &s_list, 2, at);

Thomas Grill

More information about the Pd-dev mailing list