MIDI DESIGNER
The only MIDI controller for iPad, iPhone, and Mac


Talk to other MIDI Designer users about MIDI Designer, iOS MIDI and related topics. Or share layouts, pages, and ideas.

Check out our Facebook Group.

Of course, if you want to send us an email, feel free.

Open problem reports

Summary of user requests
Using a wireless expression pedal to control multiple pedals - MIDI Designer Q&A

Using a wireless expression pedal to control multiple pedals

0 votes
asked Aug 5, 2022 in Advanced by nicholascombe (150 points)

4 Answers

0 votes
 
Best answer
In MDP2, super-sub relationships are always active, but StreamByter can add more flexible relationships.

1.  Easiest way is to add two "enable" buttons, one for each subcontrol.  Store these values in the values in the outbound SB module, and when inactive, block the respective outbound MIDI.  I know an example has been posted, maybe by Dsabou, but don't have time right now to search for it.

2.  The prior layout posted on Q&A shows a more advanced implementation - first example is a simple switched control - exactly what you requested.
answered Aug 5, 2022 by jkhiser (19,670 points)
selected Aug 5, 2022 by nicholascombe
0 votes
Of course, you can get this functionality very well with SB So that is your best bet.

For those of us who never learned SB, you could achieve this with channel changers. You would switch the sub control off of the active channel and onto one that is not mapped. But that’s pretty inelegant compared to the proper solution.
answered Aug 7, 2022 by MIDI Designer Team (Dan)
0 votes

SB Code partial solution


MIDI Target Manufacturer(s): Other/Unlisted Maker

I believe my original comment is https://mididesigner.com/qa/8794/how-to-switch-a-midi-stream-on-and-off?show=8794#q8794.

I provided the following StreamByter code to Nicholas via email to assist in changing Channels and CC values.

Midi Input examples

Input Channel 1, CC11 ==> Channel 3, CC4

                       1, CC12 ==> Channel 2, CC4

                       1, CC13 ==> Channel 5, CC4

* SB code to change channels where 11, 12, 13 are Decimal

IF M0 = B0 0B        *Detect Chan 1, CC $11

    SND B2 04 M2    *Send Chan 3, CC 04, Input Data (M2)

END

IF M0 = B0 0C        *Detect Chan 1, CC $12

    SND B1 04 M2    *Send Chan 2, CC 04, Input Data

END

IF M0 = B0 0D        *Detect Chan 1, CC $13

    SND B4 04 M2        Send Chan 5, CC 04, Input Data

END    

* SB code to change channels where 11, 12, 13 are Hex

IF M0 = B0 11        *Detect Chan 1, CC11

    SND B2 04 M2    *Send Chan 3, CC 04, Input Data (M2)

END

IF M0 = B0 12        *Detect Chan 1, CC12

    SND B1 04 M2    *Send Chan 2, CC 04, Input Data

END

IF M0 = B0 13        *Detect Chan 1, CC13

    SND B4 04 M2        Send Chan 5, CC 04, Input Data

END

answered Aug 7, 2022 by dsabou2062 (3,570 points)
0 votes
Here is an implementation of Dan’s suggestion to use a channel changers.  SB is powerful, but it is much neater if we can do everything in native MDP2 control.

A key assumption for this is that you have an unused MIDI channel internal to MDP2 that you can change the controls to when you want them inactive.

In addition to your main controls, build two channel changer knobs, one for each control.  Accept the default assignments, then change each so they are two ticks, MIDI values are (1) the normal channel for the control and (2) the unused channel.  Lets use 0-15 (=1 &16) for first, 1-15 (= 2 & 16) for the second, Ch 16 is the throw away channel.  Make these super controls of the appropriate secondary control.  They can also be hidden in play mode.

Make an enable button for each of the channel changers above - toggle, supercontrol, assign to appropriate channel changer, options as super - inverted (or invert the midi ranges in the channel changers above), so on state selects the desired channel, off select the throw away channel.

Option, we can block the throw away channel in StreamByter output rules - BF = XX +B will block all channel 16 messages.
Downloads: 112
Subcontrol Enable.mididesignerpage
Downloads: 112
Images
Enable subcontrols screenshot
Enable subcontrols screenshot
answered Oct 29, 2022 by jkhiser (19,670 points)
...