OK, it seems T.K. nailed the 0xBA, 0x02 bug..
0xBA = Status Byte, Control Change, Channel 11
0x02 = Breath Controller (Coarse)
0x?? = Data Value for Breath Control..
So, it’s looking for another byte of data there..
I have said it before, that T.K. guy knows his stuff!
Have Fun,
LyleHaze
hello lylehaze,
thanks for your answer.
considering the pots event map of the core1:
{0xbA, 0x01}, {0xbA, 0x02}, {0xbB, 0x01}, {0xbB, 0x02},
{0xbA, 0x03}, {0xbA, 0x04}, {0xbB, 0x03}, {0xbB, 0x04}
why it doesn’t for 0xbB, 0x02 ? oh, wait.. I may not explain enough my stuff… parts of code involved are:
const unsigned char pot_event_map[32][2] = {
//-------- AIN 11
// SR1 = instrument control 1 for channels 1-8
{0xb0, 0x03}, {0xb1, 0x03}, {0xb2, 0x03}, {0xb3, 0x03},
{0xb4, 0x03}, {0xb5, 0x03}, {0xb6, 0x03}, {0xb7, 0x03},
// SR2 = send B rate for channels 1-8
{0xb0, 0x02}, {0xb1, 0x02}, {0xb2, 0x02}, {0xb3, 0x02},
{0xb4, 0x02}, {0xb5, 0x02}, {0xb6, 0x02}, {0xb7, 0x02},
// SR3 = send A rate for channels 1-8
{0xb0, 0x01}, {0xb1, 0x01}, {0xb2, 0x01}, {0xb3, 0x01},
{0xb4, 0x01}, {0xb5, 0x01}, {0xb6, 0x01}, {0xb7, 0x01},
// SR4 = send A controls + send B controls
{0xbA, 0x01}, {0xbA, 0x02}, {0xbB, 0x01}, {0xbB, 0x02},
{0xbA, 0x03}, {0xbA, 0x04}, {0xbB, 0x03}, {0xbB, 0x04}
};
/////////////////////////////////////////////////////////////////////////////
// This function is called by MIOS when a pot has been moved
/////////////////////////////////////////////////////////////////////////////
void AIN_NotifyChange(unsigned char pin, unsigned int pin_value) __wparam
{
// send mapped CC value
MIOS_MIDI_BeginStream(); // midilink encapsulation header
MIOS_MIDI_TxBufferPut((unsigned char)pot_event_map[pin][0]); // first value from table
MIOS_MIDI_TxBufferPut((unsigned char)pot_event_map[pin][1]); // second value from table
MIOS_MIDI_TxBufferPut(MIOS_AIN_Pin7bitGet(pin)); // 7bit pot value
MIOS_MIDI_EndStream(); // midilink encapsulation tail
}
so the 3rd value is always sent… I GUESS!
could it be an overcurrent issue ?
I write again a very strange thing: it happens when I turn a bit the pot.
not when the value is high at the beginning:
-
I start the midibox with this pot at 0. it boots correctly, everything works fine. I turn a bit …issue!
-
I start the midibox with this pot at N>0. it boots correctly, everything works fine. I turn a bit …issue!