[PD] Load libraries dynamically

Hans-Christoph Steiner hans at at.or.at
Fri May 8 17:38:14 CEST 2009


On May 8, 2009, at 9:12 AM, IOhannes m zmölnig wrote:

> 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.

There is also [import] which will load the lib immediately, and the  
next time you open the patch.

.hc

>
>
>
> sdfamtasd
> IOhannes
>
>
>> br Hannes
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list





----------------------------------------------------------------------------

'You people have such restrictive dress for women,’ she said, hobbling  
away in three inch heels and panty hose to finish out another pink- 
collar temp pool day.  - “Hijab Scene #2", by Mohja Kahf






More information about the Pd-list mailing list