@@ -338,8 +338,8 @@ namespace showmidi
338
338
339
339
paintProgramChange (g, state, channel_messages);
340
340
state.offset_ = paintPitchBend (g, state, channel_messages);
341
- state.offset_ = paintParameters (g, state, " RPN" , channel_messages, channel_messages .rpns_ );
342
- state.offset_ = paintParameters (g, state, " NRPN" , channel_messages, channel_messages .nrpns_ );
341
+ state.offset_ = paintParameters (g, state, " RPN" , channel_messages.rpns_ );
342
+ state.offset_ = paintParameters (g, state, " NRPN" , channel_messages.nrpns_ );
343
343
int notes_bottom = paintNotes (g, state, channel_messages);
344
344
int control_changes_bottom = paintControlChanges (g, state, channel_messages);
345
345
@@ -504,7 +504,7 @@ namespace showmidi
504
504
return y_offset;
505
505
}
506
506
507
- int paintParameters (Graphics& g, ChannelPaintState& state, const String& name, ActiveChannel& channel, Parameters& parameters)
507
+ int paintParameters (Graphics& g, ChannelPaintState& state, const String& name, Parameters& parameters)
508
508
{
509
509
int y_offset = state.offset_ ;
510
510
@@ -669,7 +669,7 @@ namespace showmidi
669
669
670
670
if (!isExpired (state.time_ , channel.channelPressure_ .time_ ))
671
671
{
672
- paintControlChangeEntry (g, state, channel, y_offset, String (" CP" ), channel.channelPressure_ .value_ );
672
+ paintControlChangeEntry (g, state, y_offset, String (" CP" ), channel.channelPressure_ .value_ );
673
673
}
674
674
675
675
auto & control_changes = channel.controlChanges_ ;
@@ -680,15 +680,15 @@ namespace showmidi
680
680
auto & cc = control_changes.controlChange_ [i];
681
681
if (!isExpired (state.time_ , cc.time_ ))
682
682
{
683
- paintControlChangeEntry (g, state, channel, y_offset, String (" CC " ) + output7Bit (cc.number_ ), cc.value_ );
683
+ paintControlChangeEntry (g, state, y_offset, String (" CC " ) + output7Bit (cc.number_ ), cc.value_ );
684
684
}
685
685
}
686
686
}
687
687
688
688
return y_offset;
689
689
}
690
690
691
- void paintControlChangeEntry (Graphics& g, ChannelPaintState& state, ActiveChannel& channel, int & yOffset, const String& label, int value)
691
+ void paintControlChangeEntry (Graphics& g, ChannelPaintState& state, int & yOffset, const String& label, int value)
692
692
{
693
693
if (yOffset == -1 )
694
694
{
0 commit comments