kyle I believe it can receive note data over i2c because on pg 35
looks like it can:
page 80
MIDI / Select Bus
send MIDI message
<address> 0x4F <status> <optional data byte 0> <optional data byte 1>
so it seems you have to craft a message of this type. Using the I2c
class from the most recent Bela image/core code, something like this should send a test Note ON:
#include <I2c.h>
I2c disting;
bool setup(BelaContext* context, void*)
{
if(disting.initI2C_RW(1, gDistingAddress, -1))
return false;
uint8_t buf[] = { 0x4F, 0x90, 60, 127, };
size_t count = sizeof(buf);
if(count == disting.writeBytes(buf, count))
printf("Successfully sent note on\n");
else
fprintf(stderr, "Error sending note on\n");
return false; // stop the program anyhow: this is just a test. Will print an error message.
}
.... //render etc ...
to do a MIDI USB->I2C things are slightly more complex, but make sure the above works fine first.