@ATWAW said in Sustain Pedal Question:

What function would I use to turn on a sustain pedal via a button on the interface,

If you're only using the sustain pedal for standard sustain pedal sustaining, then you just need to send a CC64 message.

In the button's callback you could use.

Synth.sendController(64, component.getValue() == 0 ? 1 : 80);