Sustain Pedal to Toggle On/Off Switch

  • Forum
  • Sustain Pedal to Toggle On/Off Switch
0
0

Hi. I’d really like to be able to use my sustain pedal to like a footswitch. Sustain pedals act like this: On (127) when pressed down, Off (0) when released.. How do I make it toggle between on and off with each press+release combo..

Thanks..

Marked as spam
Posted by (Forum: 2, Answers: 8)
May 18, 2019 4:12 am
71 views
0
Private answer

For looper, try this. Rules are modified so that it sends 127 when incoming value is greater than 0 (on first time only), then when incoming is released (goes to 0), it sends 0.

This is considered a momentary function but since your sustain pedal is not true momentary, we have to have rules to make it appear so.

In the attached file, I disabled the preset for sustain pedal and enabled the preset for looper function. If you want to switch back and forth, you will need to set up translators in a different preset to enable one preset and disable the other.

 

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

 

Marked as spam
Posted by (Forum: 42, Answers: 3461)
May 19, 2019 4:43 am

You will need to define your own input device in the project file. I used a Launch Control. Output device to Ableton in my file is BMT1

( at May 19, 2019 5:12 am)

Thank you.. But the rules in the file you gave is behaving exactly the same as the one I already tried, as in On/127 when pressed, Off/0 when released.. All on CC107.. But none of it is making the Looper plugin button work right.

( at May 19, 2019 5:27 am)

And I did the reassignment of devices, Input and Output.. But nothing still. I think the Launch Control have some pre-mapping abilities that some regular midi keyboards don’t have. Which is why mine is not even listed in the Control Surface drop-down menu in Ableton

( at May 19, 2019 5:33 am)

Ohhhh…. I figured out my problem… Very sorry for dragging this so much and most likely wasting your time.. I was select BMT1 and Bome Virtual Port 1, which made it act as double message for some reason… I apologize.. I deselected the Virtual Port 1, it’s now working fine.. Thank You very much again for your time and availability sir.

( at May 19, 2019 5:45 am)

Yes, this is a common mistake that I keep forgetting. It is very important to pay attention to the ports you are using and then make sure that if you want to only send to a given port that you override the defaults at the preset or translator level.

Also if you have any MIDI through routes set, anything translator that doesn’t execute an outgoing action will pass through the incoming MIDI to any default routes set.

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

( at May 19, 2019 7:14 pm)

Thank you… I found out that the Bome Virtual MIDI was installed with some Native Instruments software I have. The date matched the Maschine installation date so. I think I’ll read take the time to read the manual and understand the rules programming better. Anyway, thanks.

( at May 19, 2019 11:08 pm)

I think Native Instruments OEMs the Bome Virtual Port Drivers but I don’t think their software has rules like Bome MIDI Translator Pro.

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

( at May 19, 2019 11:20 pm)

It doesn’t. That Bome Virtual port is not even listed as a Midi port in my DAWs. I just plan on learning BMT better because I realize that it’s a very powerfully useful tool if you can master how to use it with ease.

( at May 19, 2019 11:37 pm)

OK, yes this is what I discovered when I bought it about 4 years ago. I use it with a lot of applications.

( at May 19, 2019 11:54 pm)
0
Private answer

OK, so your pedal does not put out a consistent on and off value, so the rules will need to be modified somewhat. We will have to only toggle the value if the incoming value goes from 0 to non-zero. Once it is non-zero, we don’t want to output anything again. Here are the rules.

The incoming is modified as follows, the outgoing action is unchanged:

Incoming: Control Change CC 64 on Channel 1  any value set value to pp

 

// Enable translator again for next iteration
if pp==0 then gb=0
// determine if it was previously set and abort output  if it was
if pp==0 then exit rules, skip outgoing action

// Was 127 sent already?
if gb>0 then exit rules, skip outgoing action
// set gb to 1 until pp is back to zero for next iteration
gb=1
if pp>0 then ga=ga^1

qq=0

if ga==1 then qq=127

 

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

 

Marked as spam
Posted by (Forum: 42, Answers: 3461)
May 18, 2019 6:16 am

Thank you very much.. Now the toggle 1 on 1 off is working right.. Now if possible, would you please help me with this:
Same pedal.. Sustain.. CC64.. I’m trying to use Ableton Live Looper.. The multi-purpose button.. When midi mapped to a MIDI (say A2) or a keystroke (say F), it works okay.. But I’m trying to figure out a way to use the pedal through Bome to use that multi-purpose button without needing to assign a keystroke or a note to it… I tried using a CC107 Outgoing from a normal CC64 Incoming since CC107 is undefined.. But it didn’t work.

I’m sure you’ve had this request about this Ableton Looper Multi-Purpose button…

Thanks again

( at May 19, 2019 3:09 am)

Hi, you will need to use different global variables to control the looper function. How do you plan on switching the function of your pedal from sustain to looper? I assume you mean the loop-on loop-off toggle at the top of the screen and not the looper plug in.

( at May 19, 2019 3:29 am)

I’m talking the Looper plugin (well, device as they called it).
Normal setup, sustain pedal acting normally. But I used the rules ‘if pp>0 then qq=127, if pp==0 then qq=0’ to make the pedal send 127 when pressed and 0 when released.

Now, from Ableton’s website, they say “A ‘Toggle’ MIDI message means the pedal or button sends out a value of 127 when pressed once. This does not constitute a ‘complete’ message for certain parameters until it is pressed a second time and a value of 0 is sent.

Instead, a different message, a ‘Momentary’ MIDI message, is expected by Looper’s Multi Purpose Button, which sends a value of 127 when pressed, and 0 when released.”

So in theory, my setup should work, but it doesn’t.. Help please. Thanks

( at May 19, 2019 3:51 am)
0
Private answer

Hi,

Assuming your sustain pedal send MIDI (is not just a switch with contacts), you would set up in Bome MIDI Translator  Pro as follows. In this example I’m assuming you are using CC64

 

Incoming: Control Change CC 64 on Channel 1 value 127

Rules:

ga=ga^1

qq=0

if ga==1 then qq=127

Outgoing: Control Change CC64 on MIDI Channel 1 value qq


It the above example ga is a global variable. The statement “ga=ga^1” toggles its value between 0 and 1.

 

–Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

 

Marked as spam
Posted by (Forum: 42, Answers: 3461)
May 18, 2019 4:34 am

Thanks for the quick reply.. I did that but now its behavior a bit bizarre.
Yes it’s sending MIDI. Sustain pedal connected to MIDI keyboard. Using a MIDI Monitor in Ableton, I notice that, before applying your answer, when pressed, it gradually goes to 127 (as in 59 82.. then 127) and when I release, it’s an instant 0.. Now, after applying the rules you gave me, that gradual rise to 127 is now toggling between 0 and 127 until it settles to one value, then when pressed again it toggles to settle to the other..

The footswitch functionality is correct, but the gradual behavior is confusing. Help please. Thank you

( at May 18, 2019 5:30 am)