I would like to know if it is possible with midifre (already purchased for iPad), to create an wah pedal auto engage. What i want to do is, when i press the expression pedal from my midi pedalboard, for example irig blueboard or meloaudio midi commander, to auto enable the wah pedal without the need to press any other button.
And of course to auto disable when the expression pedal value is 0.
OK, so we have to do this in two steps. The first step is to get Bias FX to learn our 'secret' CC to enable/disable the wah. We need to know also the CC that you real footpedal sends and adjust the script (change K0 line)
Here is the code you will need configured for the learn step:
# BiasFX autowah engage by audeonic IF LOAD ASS K0 = B0 01 # this needs to be the CC your pedal sends ASS K2 = B0 50 # this is our secret CC
ASS L80 = 0 # flag for toggling wah just the once END
# trap the hardware CC IF M0 == K0 K1
# hardware pedal went to 0, disengage wah IF M2 == 0 IF L80 == 1 SND K2 K3 00 ASS L80 = 0 END END
# hardware pedal went positive, engage wah IF M2 > 0 IF L80 == 0 SND K2 K3 7F ASS L80 = 1 END END
# block hardware pedal CC whilst learning XX = XX +B
So, change ASS K0 == B0 01 to the correct incantation for your pedal (use the Event Monitor to get this) and then switch BiasFX into MIDI learn for the wah engage switch and move the hardware pedal.
Once it has learnt the wah engage, comment out the XX = XX +B line in the code above.
If you want the wah to engage only when the hardware pedal passes a certain threshold, change IF M2 > 0 line to IF M2 > 20 (or whatever).
Can you please be more detailed in the whole procedure? This is what i am doing,
1. create a new project 2. add a new midi source, correct? 3. add an event monitor & connect it with the midi source 4. add a stream byter and copy paste the code 5. press install rules, this is where i get the error 6. connect with the event monitor 7. connect with midi destination (biasfx)
i copied the code to a new stream byter settings block. I pressed the install rules and i am getting an error "some rules are not valid. they have been prefixed with '#ERR' "
My apologies - I was missing an END in the code. I have corrected that, so you should paste the amended code above, but here are the steps in MidiFire:
1. Use the '+' menu and drop the input port that represents the hardware pedal 2. Drop an Event Monitor onto the canvas and connect the pedal to it. 3. Use the detail cog to open the Event Monitor 4. Move the pedal - you should see events and the CC that is being generated. They should all start with the same two bytes BX XX (where X will be values in the monitor) 5. When you have those two bytes that your pedal is sending, add a StreamByter to the canvas and connected the pedal port to it 6. Paste the code above into the StreamByter and change ASS K0 = B0 01, replacing B0 and 01 with the two bytes you got from step 4 7. Press 'Install Rules' and hopefully no errors.
8. Drop BiasFX output port onto canvas and connect StreamByter to it. 9. Switch to BiasFX, enable learn mode for the wah and move the hardware pedal. It should learn B0 50 (or CC 80 on channel 1)
Now, when you move the pedal up it will engage the way at full on as soon as it goes positive and off when it goes back to 0.