Simulating a mod on my Linux PC

Yay. The MOD makes it into academic presentations and with proper references as well! That’s very cool.

IIRC you need to set some environment variables. probably


but best ask on IRC.

1 Like

yes, either MOD_DEV_ENVIRONMENT or MOD_DEV_HOST needs to be set in the environment to “1”.
that will enable the communication with mod-host, which must be running already.

3 Likes

Hi, don’t want to bother you, but maybe you can help me.
I’m trying to test mod. I’ve installed mod-host and mod-app.
Jack is OK, webserver is running… But I get a 500 error.
/mod-app/source/modules/mod-ui/html/resources/templates/pedal-default.html
So I put mod-ui source in that folder…
Then it’s missing /mod-app/source/modules/mod-ui/mod/…/utils/libmod_utils.so
Is it a module I have to compile?
Thank you

yes, you need to build mod-ui first.
the readme on the project mentions how.

Hello guys,

I installed the mod-host and mod-ui (from git) in my notebook for testing, but I can not get any sound.

When I make some connection to a new effect Jackd returns me a message like this:

Unknown destination port in attempted (dis)connection src_name [system:capture_1] dst_name [mod-monitor:in_1]
Unknown source port in attempted (dis)connection src_name [mod-monitor:in_1] dst_name [system:capture_1]

I tried to change the settings in the settings.py file, as below:

DEV_ENVIRONMENT = bool(int(os.environ.get(‘MOD_DEV_ENVIRONMENT’, True)))

But I still have no sound.

Could you tell me what changes I should make?

Thank you

Have you checked that jackd is running?

Try “jack_load mod-monitor” before starting mod-ui.

Regards, Holger

I modified some things, and now ‘jack_load mod-monitor’ might be required before loading mod-ui.
At some point soon I’m going to start pointing users to mod-app instead, as the setup for running mod-ui requires some manual work. But mod-app needs a little love first…

Here even after “jack_load mod-monitor” the audio (direct through) works at the start, then when you add an effect no jack client is created for that effect and no audio is routed through the effect.

Using mod-app everything works fine with effect_0, effect_1 etc being created.

I’m having the same problem. I’ll try the mod-app

mod-ui by default assumes you want to do development, and for that it skips mod-host integration (which needs jack running).
set MOD_DEV_ENVIRONMENT=0 environment variable before running it to make it connect to mod-host.
this of course assumes you have mod-host running before.

Thanks! Now works fine!

Hi, I’m tring to do the same things, and I’m able to load Jackd, Mod-host and mod-ui… but I’ve a very newbie question… Where I’ve to put the .lv2 plugins?? 'cause I can’t see its on mod-ui, but I’ve compiled and put some .lv2 on /home/user/.lv2 folder…

Thanks in advance and sorry for this maybe stupid question!

LV2 has an official page documenting where we should put the plugins.
http://lv2plug.in/pages/filesystem-hierarchy-standard.html

if you can’t see them, you did something else wrong…

Hi @maoz

the LV2-plugins live in $LV2_PATH. You can try to do the following as the user which runs “mod-ui/mod-host”:

echo $LV2_PATH # shows where your LV2-Plugins live

Or you can change this variable before starting mod-host/mod-ui pointing to the right folder:

export LV2PATH="/my/favorite/path"

Regards, Holger

Hi all,

just FYI:

On a Raspi3 (with pisound audio card) I have trouble using mod-host loaded into jackd. Loading with jack_load mod-host works. Also running mod-ui and creating a pedalboard. But when loading another pedalboard or erasing the current one, I often got a hanging jackd.

I tried a little bit around and looked at some information on stdout. The problem seems to happen when mod-host is calling jack_deactivate():

Output of server.py:
[I 170908 17:05:17 host:987] [host] popped from queue: feature_enable processing 0
[I 170908 17:05:17 host:1014] [host] sending -> feature_enable processing 0
[I 170908 17:05:17 host:987] [host] popped from queue: remove -1
[I 170908 17:05:17 host:1014] [host] sending -> remove -1
[I 170908 17:05:18 host:999] [host] received <- ‘resp -203\x00’
[I 170908 17:05:18 host:987] [host] popped from queue: feature_enable processing 1

-203 means:
-203 ERR_JACK_CLIENT_DEACTIVATION

… and is called at effects.c:3406:
if (jack_deactivate(effect->jack_client) != 0) return ERR_JACK_CLIENT_DEACTIVATION;

I don’t know if this may also happen on other architectures. My Mod-Duo works fine - I don’t know if it is using the mod-host embedded into jack. So this is not an error report - only a hint for others who may run into the same problems.

BTW: Loading mod-host as a normal process instead of jack-embedded works fine…

Regards, Holger

1 Like

Hi everyone,

Any recomendations about the best Linux Dist to run MOD?

1 Like

Works best for me on *buntu or *bian distros. I personally use Kubuntu.

Regards, Holger

2 Likes

Thx @Codeman!

I would recommend checking the version of Jack running on the distro. The one on Debian is very old and prevent making the most of your duo (such as inserting it inside your workstation jack network and recording from it with Ardour as described in other posts here. It works with Debian but performance really doesn’t make justice to the gear).

1 Like