Modep issue (community)?

Hi,

I can’t find the modep community
I want to address an issue, not sure this is the right place to do it

my problem is that my midi pedal can only mod one pedal at a time

quiet annoying since you might wanna modulate different parameters or disable one pedal while another one could receive the foot pedal CC values

thanks for helping me on this

This is the Modep community. I’m still figuring things out myself, but I’d recommend starting by searching the forums for your answer? It would probably help to know what kind of midi controller your using, whether it’s connected via the DIN ports or USB, and what settings you’re running. It sounds like Patchbox is at least recognizing the controller for some things? Is everything sending CC?

You could try seeing if this post has any relevant information. This post also has some useful stuff to dig through.

The best way to go about it is to use the little magnifying glass while you’re in the “modep” section of the forum. If you type in “midi” it should give you all the midi topics specifically within the modep category.

it working perfectly fine, I removed the DIN connectors for ventilation

my issue is the modep software

once you assign “MIDI” to different controls, only one is taken into account

let’s say you have a multi band filter pedal, well I want to modulate all 3 bands with the same pedal

also you cannot select any midi channel and there is no “learn” capabilities AFAIK

Okay, so to clarify: you can in fact select parameters across multiple pedals, the problem is that you want 1 “pedal” (I’m assuming you mean an expression pedal vs a footswitch) to control multiple parameters.

So ideally you want to say, be able to select a parameter somehow, and then the the means to control those parameters would be assigned to the expression pedals on your footswitch?

If this assumption is correct, the problem isn’t a modep one, your pedal will only be able to send one midi cc message at a time and what channel that is, whether its a note or CC, and whether it’s momentary or a hold depends on the controller. I know my controller has its own software that I use to assign these things.

As far as “selecting any midi channel goes” and a learn function, can you be more specific? As far as I can tell modep doesn’t have any midi channels that cant be used, and again, if you want to change what message your pedal is sending you do at via your controller, not modep.

What pedal are you using?

at software level, there is no reason why a controller could not affect multiple parameters

also the selection like toggling a midi button “on/off” seems another limitation…I cant even indicate which CC is linked to what parameter so moding my pedal so it sends multiple control changes won’t fix the issue

another point is that modep allows for multiple controls to be “MIDI” linked…the midi standard has more than one single ON/OFF feature

fyi : I built my own pedal, based on an arduino that sends a CC, but that’s not the problem

from the MOD documentation

If you want to assign any type of parameter to an actuator of a MIDI Controller connected to your MOD device you must select the “MIDI” tab, press save and interact with the desired actuator (for example: push the button or turn the knob).

https://wiki.moddevices.com/wiki/MOD_Web_GUI_User_Guide

well it’s not working for me…I should be able to link my pedal to as many controls I want

that’s the whole idea behind “MIDI Learn”…it’s note a 1::1 mapping… it’s 1::N or at least it should

Ah yes I understand now. Sadly I do not know the answer to why current Midi mapping restricts control to one parameter per CC assignment, but Id also love to be able to map multiple things to 1 knob.

Based on the documentation, It clearly is possible using the actual MOD hardware knobs, so I assume there’s a reason that midi is more restricted, but I wouldn’t know why.

Hopefully one of the more experienced folk will chime in.

This is how it’s implemented for some reason in mod-host (this is a link to our fork of MOD Devices mod-host repository):

It first goes through the list of MIDI mapped CC parameter changes, and in case it finds on to work with for the current message, it processes it and stops further handling like MIDI learning, which is just after this block.

I don’t know why it was made this way, maybe there’s some special case to avoid somewhere by not allowing multiple mappings of same CC, but we can find that out! :slight_smile: It’s easy to workaround, in just 13 steps:

  1. git clone https://github.com/BlokasLabs/mod-host

  2. cd mod-host

  3. nano src/effects.c (or use any other editor at your convenience, it’s a huge file!)

  4. Comment out line 1716, so it looks like this: //handled = true;

  5. Comment out line 1735, so it looks like this: //break;

  6. Save & exit.

  7. Install build dependencies: sudo apt install libreadline-dev liblilv-dev

  8. Build: make

  9. Install: sudo make install

  10. Make a local copy of modep-mod-host.service, so it overrides the default one: sudo cp /usr/lib/systemd/system/modep-mod-host.service /etc/systemd/system/

  11. Edit it to point it to the locally built mod-host binary: nano /etc/systemd/system/modep-mod-host.service, change:

    ExecStart=/usr/bin/mod-host -p 5555 -f 5556
    

    to:

    ExecStart=/usr/local/bin/mod-host -p 5555 -f 5556
    
  12. Save & exit

  13. Reload and restart systemd services:

    sudo systemctl stop jack modep-mod-host modep-mod-ui
    sudo systemctl daemon-reload
    sudo systemctl start jack
    sudo systemctl start modep-mod-host
    sudo systemctl start modep-mod-ui
    

Now you should be able to map the same MIDI controller to multiple parameters.

2 Likes

dude, I can’t wait to try this out

would I then submit a PR ? is anyone interested in this ?

2 Likes

I’d suggest just giving it a try for a little while and check if you get any issues because of the change.

Then if it’s all fine, float the idea on the MOD Devices forum and see what the developers say. From the code history, the general structure of that part seems to haven’t changed much since original version, so maybe there is no technical reason to prevent one control to many controls mappings.

what is the difference between modep and mod device ?
what does ep mean btw ?

MOD Emulator [for Raspberry] Pi :slight_smile:

MODEP is just a slightly customized variation of the MOD open source software, stuff like having hardware specific features that won’t work on a plain Pi disabled, and is ready to install and run on Raspberry Pi’s.

Thanks for the instructions @Giedrius! I was actually working with the source from MOD repos, but I was still able to make it work by modifying the lines you mentioned.

Just in case anybody wants to do this on their own, the line numbers mentioned below have changed since the post was made.

You’d now need to modify the following lines instead:
https://github.com/BlokasLabs/mod-host/blob/master/src/effects.c#L2599
https://github.com/BlokasLabs/mod-host/blob/master/src/effects.c#L2618
The current line numbers are 2599 and 2618 respectively.

1 Like