View Single Post
Old 04-18-2012, 02:25 PM   #133
bang
Human being with feelings
 
bang's Avatar
 
Join Date: Jul 2006
Posts: 626
Default

Quote:
Originally Posted by bang View Post
no luck. still has bogus midi out.
ok. more fwiw: looking a bit closer, noteoffs are ok, and noteons have correct msg23 data. only "evmsgs[ii]" is garbled in "midisend(evtimes[ii],evmsgs[ii],evmsg23s[ii]);" here:
Code:
//   send due noteons first to avoid stuck notes
//     also do reset current notes first so new current notes appear
midi_bus= chanbus;
ii= 0; loop ( evcnt,
  evtimes[ii] < samplesblock ?( //event due this @block
    evmsgs[ii] >= 0 && (evmsgs[ii]&$xf0) == $x90 ?(
      midisend(evtimes[ii],evmsgs[ii],evmsg23s[ii]);
    ): evmsgs[ii] == -notes && evmsg23s[ii] < 0 ?( //reset current note hilites
      lastcnt= 0;
    );
  );
  evmsgs[ii] >= 0 && (evmsgs[ii]&$xf0) == $x90 ? foo2+= 1;
  ii+= 1; 
);
thanks again! /dan
bang is offline   Reply With Quote