[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] sc_coremidi bug

OK, done. Tomorrow I can get the Wesleyan build and test it out.

On Feb 24, 2006, at 12:49 PM, tom tlalim wrote:

hi james, jan, others,
i believe there are little mistakes in the recent updates you added to SC_CoreMIDI.cpp 

line 129

uint8 status = pkt->data[0] & 0xF0;
uint8 chan = pkt->data[0] & 0x0F;

should be
uint8 status = pkt->data[i] & 0xF0;
uint8 chan = pkt->data[i] & 0x0F;

line 139
++g->sp; SetInt(g->sp,  pkt->data[1]); //val1
++g->sp; SetInt(g->sp,  pkt->data[2]); //val2

should be
++g->sp; SetInt(g->sp,  pkt->data[i + 1]); //val1
++g->sp; SetInt(g->sp,  pkt->data[i + 2]); //val2

etc. until line 174.

: H. James Harkins
: jamshark70@xxxxxxxxxxxxxxxxx
: http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman