bendin and touchin confused
Miller Puckette
mpuckett at man104-1.ucsd.edu
Thu Jun 29 06:45:34 CEST 2000
Aha -- the line,
case 5: inmidi_pitchbend(0, chan, byte1<<7 + byte2 - 8192); break;
should read:
case 5: inmidi_pitchbend(0, chan, (byte1<<7) + byte2 - 8192); break;
I'll fix this for the next release (not for another 2 weeks or so; I'm
away frmo my NT machine right now...)
cheers
Miller
On Thu, Jun 29, 2000 at 10:52:04AM +0900, Toshinori Ohkouchi wrote:
> Hi All
>
> It happened in my case.
>
> ----------------------------------------------
> pd030/ s_nt.c / void sys_poll_midi(void)
>
> switch (msgtype)
> {
> case 0: inmidi_noteon(0, chan, byte1, 0); break;
> case 1: inmidi_noteon(0, chan, byte1, byte2); break;
> case 2: inmidi_polyaftertouch(0, chan, byte1, byte2); break;
> case 3: inmidi_controlchange(0, chan, byte1, byte2); break;
> case 4: inmidi_programchange(0, chan, byte1); break;
> > case 6: inmidi_aftertouch(0, chan, byte1); break;
> > case 5: inmidi_pitchbend(0, chan, byte1<<7 + byte2 - 8192); break;
> ----------------------------------------------------
>
> > case 5: inmidi_aftertouch(0, chan, byte1); break;
> > case 6: inmidi_pitchbend(0, chan, byte1<<7 + byte2 - 8192); break;
More information about the Pd-list
mailing list