Using a MIDI pedal and Modep

Friends

I have a midi pedal “SINCO” (a four button USB pedal from aliexpress).

In the modep-ui I can set it as a MIDI PORT. But I cannot assign it to a pedal

When I click the “gear” icon to configure a pedal I click on the “slider” button and I get a configuration dialogue for that control and can assign it to MIDI or CV

When I click on MIDI I get a message in the dialogue: 'To map this parameter to your MIDI controller, press “save” and move the desired control on your “MIDI” device

When I do that, and toggle a button on the controller it has no discernible effect

Is there some other thing I should be doing?

I am using modep, with Pisound on a Pi4, a fresh install of Patchbox OS

cat /etc/issue
Raspbian GNU/Linux 11

My MIDI devices

 $ aconnect -l
client 0: 'System' [type=kernel]
    0 'Timer           '
    1 'Announce        '
	Connecting To: 129:0, 130:0
client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
	Connecting To: 130:0[real:0]
	Connected From: 130:0
client 20: 'pisound' [type=kernel,card=1]
    0 'pisound MIDI PS-0N78HB5'
	Connecting To: 130:0[real:0]
	Connected From: 130:0
client 24: 'SINCO' [type=kernel,card=2]
    0 'SINCO MIDI 1    '
	Connecting To: 130:0[real:0]
	Connected From: 130:0
client 128: 'touchosc' [type=user,pid=519]
    0 'touchosc        '
	Connecting To: 130:0[real:0]
	Connected From: 130:0
client 131: 'pisound-ctl' [type=user,pid=914]
    0 'pisound-ctl     '
	Connecting To: 130:0[real:0]
	Connected From: 130:0

Use aseqdump -p 24:0 to see what sort of messages are you receiving from the device. Usually only CC messages are mappable to parameters.

$ aseqdump -p 24:0
Waiting for data. Press Ctrl+C to end.
Source  Event                  Ch  Data
  0:1   Port subscribed            20:0 -> 138:0
  0:1   Port subscribed            28:0 -> 138:0
  0:1   Port subscribed            129:0 -> 138:0
  0:1   Port subscribed            131:0 -> 138:0
129:0   Port subscribed            129:0 -> 138:0
  0:1   Port subscribed            130:0 -> 138:0
 28:0   Program change          0, program 0
 28:0   Program change          0, program 1

“Programme change”. I am unsure what that means

There are multiple commands defined in the Midi standard, one of which is program change. Typically this command is used to tell a midi synthesizer to change it’s sound. Control change is another command in the midi definition and that is what MODEP is looking for when assigning a pedals parameter to midi. Is it possible to change your midi device to send control change commands instead of program change? I’ve not used your device but it could be a setting somewhere in the device.

Probably not. But thank you I will look into it

I think with Program Change messages you may be able to switch between preset snapshots.