My original method of hacking a sostenuto pedal can now be greatly simplified. I still use a Pure Data patch to "convert" my USB pedal into a sostenuto pedal. However, the patch only needs to send controller messages to the Pianoteq virtual instrument; the sostenuto effect is correctly managed within Pianoteq. My new patch is here: http://edwardneeman.com/sostenutoPianoteq.pd
The setup instructions are still the same as before. However, Pianoteq will be receiving MIDI data from two separate sources: the MIDI keyboard, and Pure Data. To send MIDI data from Pure Data to Pianoteq, I do the following (this is Mac specific):
- Open the Application "Audio MIDI Setup".
- Under the Window menu, select "MIDI Studio".
- Doubleclick IAC Driver to open the "IAC Driver Properties" window.
- Make sure the "Device is online" box is checked.
- In the Pure Data application, select "MIDI Settings" under the Media menu.
- Set the Output Device to IAC Driver.
- Pianoteq will now need to accept MIDI data from both the IAC Driver and the external MIDI from the keyboard.
- In Pianoteq, select "Audio/MIDI Setup" in the File menu.
- Make sure all the relevant inputs are checked under "Active MIDI inputs", or just check "Listen to all MIDI inputs".
- Don't forget to select the independent sostenuto option! Right-click (or control-click) the sostenuto pedal and check the "Ignore the damper pedal" box.