Skip to content

Latest commit

 

History

History
84 lines (58 loc) · 2.04 KB

mod_host.rst

File metadata and controls

84 lines (58 loc) · 2.04 KB

PedalPi - PluginsManager - ModHost

About mod-host

mod-host is a LV2 host for Jack controllable via socket or command line. With it you can load audio plugins, connect, manage plugins.

For your use, is necessary download it

git clone https://github.com/moddevices/mod-host
cd mod-host
make
make install

Then boot the JACK process and start the mod-host. Details about "JACK" can be found at https://help.ubuntu.com/community/What%20is%20JACK

# In this example, is starting a Zoom g3 series audio interface
jackd -R -P70 -t2000 -dalsa -dhw:Series -p256 -n3 -r44100 -s &
mod-host

You can now connect to the mod-host through the Plugins Manager API. Create a ModHost object with the address that is running the mod-host process. Being in the same machine, it should be 'localhost'

mod_host = ModHost('localhost')
mod_host.connect()

Finally, register the mod-host in your BanksManager. Changes made to the current pedalboard will be applied to mod-host

manager = BanksManager()
# ...
manager.register(mod_host)

To change the current pedalboard, change the pedalboard parameter to mod_host. Remember that for changes to occur in mod-host, the pedalboard must belong to some bank of banks_manager.

mod_host.pedalboard = my_awesome_pedalboard

ModHost

pluginsmanager.mod_host.mod_host.ModHost

ModHost internal

The classes below are for internal use of mod-host

Connection

pluginsmanager.mod_host.connection.Connection

Host

pluginsmanager.mod_host.host.Host

ProtocolParser

pluginsmanager.mod_host.protocol_parser.ProtocolParser