You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using tusb midi and found that it works fine to sending MIDI message . But when I want to receive the data it doesn't work
till I try to print out the status It's not show anything. While I can still send MIDI message normally.
static void midi_task_read_example(void *arg)
{
// The MIDI interface always creates input and output port/jack descriptors
// regardless of these being used or not. Therefore incoming traffic should be read
// (possibly just discarded) to avoid the sender blocking in IO
uint8_t packet[4];
bool read = false;
for (;;)
{
vTaskDelay(1);
while (tud_midi_available())
{
printf("tud_midi_available\n");
read = tud_midi_packet_read(packet);
if (read)
{
tud_midi_available() not working
I tried using tusb midi and found that it works fine to sending MIDI message . But when I want to receive the data it doesn't work
till I try to print out the status It's not show anything. While I can still send MIDI message normally.
static void midi_task_read_example(void *arg)
{
// The MIDI interface always creates input and output port/jack descriptors
// regardless of these being used or not. Therefore incoming traffic should be read
// (possibly just discarded) to avoid the sender blocking in IO
uint8_t packet[4];
bool read = false;
for (;;)
{
vTaskDelay(1);
while (tud_midi_available())
{
printf("tud_midi_available\n");
read = tud_midi_packet_read(packet);
if (read)
{
}
}
The text was updated successfully, but these errors were encountered: