Simulating a mod on my Linux PC

@faltTX, an opinion.

I thought about doing something like separate GUI so you can create an application for Android (as an example).

The reason:
The Zynthian staff are adapting the mod-ui to use in their project. I have a project for college for audio plugins too - would need an interface.

In my opinion, it would be interesting that the interface (html, js + css) stay separate business rules - that is, the business would be a service that the UI consume and if someone wanted to take advantage of this magnificent work (mod-ui) in another place only implement the service layer.

Another justification, for example, would you create another product (mod-one) and - for some reason business logic is different, work to use the same interface would be reduced, I think.

You could also think that someone could create other programs to control the mod-duo using WebSocket API + REST

You have discussed something in the project?

mod-host can be controlled via sockets, and regarding the html interfaces please see this project:


It still depends on mod-ui, but we have plans to make it a standalone project.

mod-sdk can also load the html interfaces, so they’re not really tied to mod-ui.

EDIT: If what you want is an alternative remote interface (instead of the browser), go for it I guess.
These are the REST calls you can make: https://github.com/moddevices/mod-ui/blob/master/mod/webserver.py#L1229
Some calls are done in the websocket, because they don’t need a callback response and websockets are faster than rest/ajax calls, those are in https://github.com/moddevices/mod-ui/blob/master/mod/webserver.py#L591

do note that some rest cals are not used anymore, that code needs a little cleanup…
also the calls vary between OS releases

2 Likes

Hi @SrMouraSilva

If you are using our software for any work outside the MOD scope, I’d like to kindly ask to properly inform where did the GUI came from and if possible, do some promotion on the MOD system.

The Zynthian guys did an announcement all wrong, disclosing one of our developers - @falktx - as the creator e totally omitting the MOD system itself.

This is not the first time I see something like this happening. It seems that because we are a commnercial endeavor, the “opens source code of conduct” simply does not apply.

It is very frustrating and offending to spend years putting money on a project and release it entirely open source and then having some people using your code without even bothering about promoting, or to the very least simply disclosing its origins.

This kind of incident makes us reconsider whether we should continue releasing our source code or not.

So I kindly ask you to at least be careful about that.

Kind regards

Gianfranco

4 Likes

@gianfranco Open source is what makes your product so interesting and unique and that’s what is needed to kick the industry’s ass. I have a dry/wet guitar setup and I haven’t found any multi fx system, that offers me the flexible routing options I want, except for the MOD (I was lucky to try one and looking forward to get my own). The prospect of even porting my favorite LV2 plugins or even create completely new FX is what makes it really awesome.

So, there is the opportunity to create a lively and creative community around the MOD, of users and contributors. I totally agree with you, that there has to be a certain kind of fairness and naming the source of the code that is being used is the least one should do.

Cheers
Bollie

1 Like

The discourse limits me, then i will reply in parts :disappointed_relieved:

“Sorry, new users can only put 2 links in a post.”


Thanks @falkTX for informations. I will analize! :smile:

@gianfranco

If you are using our software for any work outside the MOD scope, I’d like to kindly ask to properly inform where did the GUI came from and if possible, do some promotion on the MOD system.

My project - that is academic - is something like the Mod-Duo, open source multi effects for the Raspberry Pi 3. It is at an early stage with serious problems of latency. I would like to congratulate the work you have in Linux: I thought the RPI 3 had similar configurations with the Mod duo (CPU - RAM, not audio interface), but the initial results I have had are something to be desired.

I’m not usign the mod-ui now. I’m usign the mod-host and - in a near future - lilvlib fork (https://github.com/PedalPi/lilvlib). For tests, I’m usign too the your plugins data. For my Apk, I’m usign your 2 images too (knob and footswitch - view the presentation [slide 14] in next reply)

I’m currently doing work for the degree course (Bacharelado em Ciência da Computação) in IFCE - Campus Maracanaú.

I recently presented my project - which is ongoing - the scientific methodology discipline. The presentation is in Brazilian Portuguese. I hope I have made it clear that I am using the mod-host, however, any criticism or the need to reinforce, if possible, tell me!

Do I have an article on the subject, but - as I intend to publish - could only send (what is written so far) specifically for you.

I thought of using the mod-ui (or similar) to be an alternative to my Apk https://github.com/PedalPi/Apk. The presentation (slide 16 - Arquitetura), I think is possible understand the care that I’m trying to have to separate the design of the modules to facilitate possible changes.

So from what I understand - which was apparently wrong - would have to make some modifications to the mod-ui. I thought then to try to help and send pull requests if I could do the mod-ui run on my machine (I’m having some problems with the jack on the notebook), so the original question.

It is very frustrating and offending to spend years putting money on a project and release it entirely open source and then having some people using your code without even bothering about promoting, or to the very least simply disclosing its origins.

This kind of incident makes us reconsider whether we should continue releasing our source code or not.

So I kindly ask you to at least be careful about that.

I imagine. I hope not to do something that displease.

Perhaps it would be interesting to you to post in the blog metrics to use the project or image for publicity purposes. Or something, maybe minimize a bit.

Boa sorte no seu trabalho!
É algo magnífico!

Paulo

3 Likes

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…