mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2025-01-19 05:11:06 +02:00
midi2osc: added processing of program change events
This commit is contained in:
parent
58d192ba4d
commit
45a0c17864
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user