I think I found the reason for the seg-faults I was getting in connecting a notein to a noteout. Having a quick look at x_midi.c, it seems that the channel number is zero-based in noteout, but one-based in notein! Once I added one to the channel number before feeding it to noteout, everything works - see attached patch. Is this how these objects are intended to work, or is this a bug in noteout? Or, am I overlooking something?
Larry
#N canvas 0 0 450 288 10; #X obj 35 17 notein; #X obj 36 99 noteout; #X obj 70 56 + 1; #X connect 0 0 1 0; #X connect 0 1 1 1; #X connect 0 2 2 0; #X connect 2 0 1 2;
This is a bug; in fact since PD crashes it's two bugs (giving noteout a channel of zero shouldn't have crashed it.)
I'll fix for the "real" 0.32 release...
cheers Miller
On Fri, Jul 28, 2000 at 08:16:17PM -0400, Larry Troxler wrote:
I think I found the reason for the seg-faults I was getting in connecting a notein to a noteout. Having a quick look at x_midi.c, it seems that the channel number is zero-based in noteout, but one-based in notein! Once I added one to the channel number before feeding it to noteout, everything works - see attached patch. Is this how these objects are intended to work, or is this a bug in noteout? Or, am I overlooking something?
Larry #N canvas 0 0 450 288 10; #X obj 35 17 notein; #X obj 36 99 noteout; #X obj 70 56 + 1; #X connect 0 0 1 0; #X connect 0 1 1 1; #X connect 0 2 2 0; #X connect 2 0 1 2;