Topic: MIDI coding for Pedals

I am programming a Teensy to interface between a Clavinova keyboard and Pianoteq. The Clavinova electronics died.

The Pianoteq CC settings restricts the Sustain Pedal range to 0 to 1.00 but MIDI CC values range from 0 to 127.
No matter what CC is used for Sustain, Pianoteq restricts its range to 0 to 1.
Does this mean that I cannot have partial Sustain via MIDI or is there another way that I am missing?

Some on this forum have argued against partial pedaling but the Clavinova designers thought it was useful.

The Soft and Sost pedal MIDI coding is also confusing. Should I just code CC MIDI values 0 and 1 instead of the whole CC MIDI range 0-127?

Re: MIDI coding for Pedals

fitball wrote:

The Pianoteq CC settings restricts the Sustain Pedal range to 0 to 1.00 but MIDI CC values range from 0 to 127.
No matter what CC is used for Sustain, Pianoteq restricts its range to 0 to 1.
Does this mean that I cannot have partial Sustain via MIDI or is there another way that I am missing?

You’re misunderstanding the meaning of those settings. The range is from 0 (pedal completely up) to 1 (pedal completely down). The source is the full range of the MIDI CC, from 0 to 127.

The ability to change those values doesn’t make much sense for pedals, but they’re in symmetry with other controllers (pitch bend, plus others in the “Full-featured” mapping), where they do make sense.

Edit to add: Note that you can also control the pedal mapping curve in the same area where you control the velocity curve; click the right arrow in the title bar of the curve section twice to show the pedal curve. This controls the translation between the actual input pedal cc and the “virtual” cc seen by Pianoteq.

Last edited by Coises (10-11-2024 21:59)

Re: MIDI coding for Pedals

fitball wrote:

I am programming a Teensy to interface between a Clavinova keyboard and Pianoteq. The Clavinova electronics died.

The Pianoteq CC settings restricts the Sustain Pedal range to 0 to 1.00 but MIDI CC values range from 0 to 127.
No matter what CC is used for Sustain, Pianoteq restricts its range to 0 to 1.
Does this mean that I cannot have partial Sustain via MIDI or is there another way that I am missing?

Some on this forum have argued against partial pedaling but the Clavinova designers thought it was useful.

The Soft and Sost pedal MIDI coding is also confusing. Should I just code CC MIDI values 0 and 1 instead of the whole CC MIDI range 0-127?

Like Coises said, Pianoteq will map 0-127 integer midi values to 0-1 floating point range. So you should not map midi values yourself. Just send 0-127 from your interface.

Re: MIDI coding for Pedals

Great and thanks for the velocity curve info. Saves coding and is easier to update than revising the code.