more corrections for libmidi++ (N)RPN API
This commit is contained in:
parent
9d46da4e6f
commit
3095cbc4f9
@ -174,12 +174,12 @@ Channel::maybe_process_rpns (Parser& parser, EventTwoBytes *tb)
|
||||
case 0x60:
|
||||
/* data increment */
|
||||
_nrpn_state = RPNState (_nrpn_state|HaveValue);
|
||||
parser.channel_nrpn_increment[_channel_number] (parser, rpn_id, 1); /* EMIT SIGNAL */
|
||||
parser.channel_nrpn_change[_channel_number] (parser, rpn_id, 1); /* EMIT SIGNAL */
|
||||
return true;
|
||||
case 0x61:
|
||||
/* data decrement */
|
||||
_nrpn_state = RPNState (_nrpn_state|HaveValue);
|
||||
parser.channel_nrpn_decrement[_channel_number] (parser, rpn_id, -1); /* EMIT SIGNAL */
|
||||
parser.channel_nrpn_change[_channel_number] (parser, rpn_id, -1); /* EMIT SIGNAL */
|
||||
return true;
|
||||
case 0x06:
|
||||
/* data entry MSB */
|
||||
@ -214,12 +214,12 @@ Channel::maybe_process_rpns (Parser& parser, EventTwoBytes *tb)
|
||||
case 0x60:
|
||||
/* data increment */
|
||||
_rpn_state = RPNState (_rpn_state|HaveValue);
|
||||
parser.channel_rpn_increment[_channel_number] (parser, rpn_id, 1); /* EMIT SIGNAL */
|
||||
parser.channel_rpn_change[_channel_number] (parser, rpn_id, 1); /* EMIT SIGNAL */
|
||||
return true;
|
||||
case 0x61:
|
||||
/* data decrement */
|
||||
_rpn_state = RPNState (_rpn_state|HaveValue);
|
||||
parser.channel_rpn_decrement[_channel_number] (parser, rpn_id, -1); /* EMIT SIGNAL */
|
||||
parser.channel_rpn_change[_channel_number] (parser, rpn_id, -1); /* EMIT SIGNAL */
|
||||
return true;
|
||||
case 0x06:
|
||||
/* data entry MSB */
|
||||
|
@ -77,12 +77,10 @@ class LIBMIDIPP_API Parser {
|
||||
TwoByteSignal channel_controller[16];
|
||||
ZeroByteSignal channel_active_preparse[16];
|
||||
ZeroByteSignal channel_active_postparse[16];
|
||||
RPNSignal channel_rpn[16];
|
||||
RPNSignal channel_nrpn[16];
|
||||
RPNValueSignal channel_rpn_increment[16];
|
||||
RPNValueSignal channel_rpn_decrement[16];
|
||||
RPNValueSignal channel_nrpn_increment[16];
|
||||
RPNValueSignal channel_nrpn_decrement[16];
|
||||
RPNValueSignal channel_rpn[16];
|
||||
RPNValueSignal channel_nrpn[16];
|
||||
RPNSignal channel_rpn_change[16];
|
||||
RPNSignal channel_nrpn_change[16];
|
||||
|
||||
OneByteSignal mtc_quarter_frame; /* see below for more useful signals */
|
||||
Signal mtc;
|
||||
|
Loading…
Reference in New Issue
Block a user