mod-audio / mod-host

LV2 host for Jack controllable via socket or command line
GNU General Public License v3.0
108 stars 55 forks source link

IR-files don't get loaded #59

Open rominator1983 opened 2 years ago

rominator1983 commented 2 years ago

Hi,

Probably not an issue but pebcak. I did not exactly know where to post this. This repositoriy seemed to fit best. If you think it should be posted somewhere else please let me know.

I am compiling mod-host on my machine for ubuntu using x86_64 as a platform in order to run it on the box directly. Thus mod-host reads all plugins from /usr/lib/lv2/ So I compiled some plugins and also https://github.com/moddevices/mod-cabsim-IR-loader using https://github.com/moddevices/mod-plugin-builder and copied the output from ~/mod-workdir/x86_64/plugins/* to /usr/lib/lv2/ to get things to show up when starting mod-host and mod-ui. https://github.com/moddevices/mod-cabsim-IR-loader/blob/master/source/cabsim-IR-loader.lv2/cabsim-IR-loader.ttl states that I should put my IR files at the Speaker Cabinet IRs folder. But unfortunately I cannot find the folder and do not know where to place the IR files instead. The default IR (...AliceInBones...) will always get loaded and resides in /usr/lib/lv2/cabsim-IR-loader.lv2. Putting my IRs right next to this default IR file did not do the trick. Event if I restart the computer in between.

So obviously I am doing something wrong here and should be putting the IR files somewhere else. Can you give me a hint, where the files should be placed in order to have them show up?

rominator1983 commented 2 years ago

After spending some time reading the code I found it in https://github.com/moddevices/mod-ui/blob/master/mod/webserver.py One can set the directory via the environment variable MOD_USER_FILES_DIR. If it is not set, it defaults to the absolute path outside of the mod-ui-directory /data/user-files

This is not quite intuitive since MOD_DATA_DIR has a default of ~/data but I believe has something to do with how the MOD devices work and were built. Anyhow I have a startup bash script for mod-ui and I added a export MOD_USER_FILES_DIR=~/somewhere where in 'somewhere' there is a directory Speaker Cabinets IRs with my IRs and now it is working. \O/

I did not close this issue now since I think the documentation on such topics could be improved. Maybe I do a PR on https://github.com/moddevices/mod-ui

rominator1983 commented 1 year ago

Can be closed when https://github.com/moddevices/mod-ui/pull/135 is merged