Sustain pedal sustain issue / midi transform

For current or would-be users of Apple Mac computers, with answers to many FAQs.
Post Reply

Sustain pedal sustain issue / midi transform

Post by william.corney@icloud.com »

Hello

I am new to logic but fairly proficient now with it.

I want to create a midi transform to address an issue I have when using Logic Pro with my Yamaha keyboard / pedal unit.

The issue is that my sustain pedal isn’t operating normally in Logic Pro or main stage when using many of of the synths in the sample library. I lift foot off pedal but it is still registering that I have it pressed and have to press it again to turn sustain off. It works ok with third party VSTs but I suspect that’s because it’s the VST rather than logic handling the midi data.

I understand from doing some research that the issue is happening because when I press and release the pedal my pedal unit sends a range of CC value MIDI data on channel 64 and for whatever reason sometimes my pedal unit doesn’t always register 0 when the pedal is lifted. If logic doesn’t receive the 0 it holds the sustain.

I gather what I need to do is change the midi data so that everything above a certain number say 10 or even 64 is registered as sustain on and below a number is registered as sustain off .

I read I can achieve this with midi transform but would appreciate if someone could run me through exactly how this configuration is done

Many thanks
william.corney@icloud.com
New here
Posts: 4 Joined: Fri Nov 04, 2022 9:23 am

Re: Sustain pedal sustain issue / midi transform

Post by BJG145 »

Welcome to SOS. :thumbup:

Could you just confirm what keyboard/pedal you're using...?
User avatar
BJG145
Longtime Poster
Posts: 8088 Joined: Sat Aug 06, 2005 12:00 am Location: UK

Re: Sustain pedal sustain issue / midi transform

Post by forumuser931182 »

Not all sustain pedals are the same so it may be that your pedal is set up the opposite of what your keyboard is expecting - it’s contact switch may be set to be normally making a connection and then break when pressed rather than being open and making a circuit when pressed.
Some pedals have an extra dip switch to reverse this operation if required.
You can test your keyboard by plugging in a standard jack lead into the sustain socket and then shorting the jack connectors at the other end ( with a paper clip or anything metal ).
Some electronic pianos are capable of having multiple pedals so a simple sustain pedal might cause erratic issues.
forumuser931182
Regular
Posts: 204 Joined: Fri Jul 08, 2016 4:23 am Location: Australia

Re: Sustain pedal sustain issue / midi transform

Post by The Elf »

william.corney@icloud.com wrote: Fri Nov 04, 2022 9:34 amfor whatever reason sometimes my pedal unit doesn’t always register 0 when the pedal is lifted.

I wonder if this suggests either you're using a 'half-pedal' and your keyboard isn't expecting it, or that the pedal is faulty.
User avatar
The Elf
Forum Aficionado
Posts: 21435 Joined: Tue Aug 14, 2001 12:00 am Location: Sheffield, UK
An Eagle for an Emperor, A Kestrel for a Knave.

Re: Sustain pedal sustain issue / midi transform

Post by william.corney@icloud.com »

Thankyou very much

I am using a Yamaha P-125 keyboard and a Yamaha LP-13 pedal unit

ImageImageImage

Its not doing it at the moment but im about to give it a good test

the issue showed like this where rather than the 0 registering after the pedal was lifted ...it was showing numbers higher than 0 . At one point it seemed like the range was being limited to like 64-127

Image
Last edited by william.corney@icloud.com on Fri Nov 04, 2022 12:04 pm, edited 3 times in total.
william.corney@icloud.com
New here
Posts: 4 Joined: Fri Nov 04, 2022 9:23 am

Re: Sustain pedal sustain issue / midi transform

Post by william.corney@icloud.com »

ok its definately better but does still ocassionally exhibit the problem

this is what i see in the midi channel when i have issues

it would appear to me the issue is that its failing at times to go back to 0 .

the way i would like to attempt addressing issue is to have something like a transform in logic pro to interpret values say below 10 as being 0

could anybody give me some guidance on creating such a transform

Image
william.corney@icloud.com
New here
Posts: 4 Joined: Fri Nov 04, 2022 9:23 am

Re: Sustain pedal sustain issue / midi transform

Post by BigRedX »

I've just looked at the MIDI CC spec and for Controller 64 (hold/sustain) any value between 0 and 63 should be "off" and 64-127 equals "on". Ideally the pedal/piano should send 127 as on and 0 as off, but that doesn't appear to be happening. I wonder if the synths in Logic are interpreting MIDI CC 64 in a different way which is causing the problem, as the 4 values you have shown should equal on, off, off, off.

Edit: Just looked at your most recent post and it would appear that there is a problem with the CC values being transmitted from the pedal/piano. Am I right in thinking that each pair of messages are pedal down followed by pedal up? If so the first press is OK but after that the release of the pedal and subsequent presses are all wrong and you appear to have ended up with a 127 value being sent on pedal release.
User avatar
BigRedX
Frequent Poster
Posts: 3124 Joined: Fri Sep 03, 2004 12:00 am

Re: Sustain pedal sustain issue / midi transform

Post by william.corney@icloud.com »

BigRedX wrote: Fri Nov 04, 2022 12:33 pm I've just looked at the MIDI CC spec and for Controller 64 (hold/sustain) any value between 0 and 63 should be "off" and 64-127 equals "on". Ideally the pedal/piano should send 127 as on and 0 as off, but that doesn't appear to be happening

Yes agree thats how i'd like it to be working and how it should work but it seems it only goes off if the value 0 is issued by pedal

BigRedX wrote: Fri Nov 04, 2022 12:33 pmAm I right in thinking that each pair of messages are pedal down followed by pedal up? If so the first press is OK but after that the release of the pedal and subsequent presses are all wrong and you appear to have ended up with a 127 value being sent on pedal release.

i'm not sure how to exactly answer your question. the two instances shown in most recent screenshot are examples of where i have lifted the pedal and rather than 127 shooting down to 0 it only goes down as far as 1 which the software is registering as still being a pressed pedal
william.corney@icloud.com
New here
Posts: 4 Joined: Fri Nov 04, 2022 9:23 am

Re: Sustain pedal sustain issue / midi transform

Post by william.corney@icloud.com »

I might have stumbled on a fix for the issue when deep diving into the manual

It seems when i set this to OFF the pedal responds as i would expect

Further testing it now

Image
william.corney@icloud.com
New here
Posts: 4 Joined: Fri Nov 04, 2022 9:23 am

Re: Sustain pedal sustain issue / midi transform

Post by BJG145 »

What they say..."Deep dive"
What they mean..."I opened the manual"

Glad you found a fix... :D
User avatar
BJG145
Longtime Poster
Posts: 8088 Joined: Sat Aug 06, 2005 12:00 am Location: UK
Post Reply