[PD] Load libraries dynamically

IOhannes m zmölnig zmoelnig at iem.at
Fri May 8 15:12:53 CEST 2009


Hannes wrote:
> Hello all,
> 
> if I remember correct there is a possibility in PD to dynamically load a library at runtime using a certain object(?) in your patch - any ideas? Thanks!

to load a library like Gem (e.g. in the file Gem.pd_linux), create the 
object [Gem].
that's it.

you can use [declare -lib Gem] as well, which will load Gem the next 
time you open the patch (not(!) immediately), but it will ensure that 
Gem is the loaded before any other objects in the patch are created 
(which might be important if some of these objects are only available 
after Gem has been loaded)

replace "Gem" with your fav lib.


sdfamtasd
IOhannes


> 
> br Hannes





More information about the Pd-list mailing list