1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2025-01-19 02:41:06 +02:00

midi2osc: added processing of program change events

This commit is contained in:
Werner Almesberger 2012-02-13 21:03:37 -03:00
parent 58d192ba4d
commit 45a0c17864

View File

@ -125,6 +125,15 @@ static void forward(snd_seq_t *midi, lo_address osc)
msg[2] = ctrl;
msg[3] = value;
break;
case SND_SEQ_EVENT_PGMCHANGE:
if (debug)
fprintf(stderr, "prog c%u=%u\n",
ev->data.control.channel,
ev->data.control.value);
msg[1] = 0xe0 | ev->data.control.channel;
msg[2] = ev->data.control.value;
msg[3] = 0;
break;
case SND_SEQ_EVENT_PITCHBEND:
if (debug)
fprintf(stderr, "pitch c%u=%u\n",