hello,
I created an external and it works fine. now I would like to call this object with a different name, such as "<><>".
I changed the first argument in class_new method to gensym("<><>") but it did not work.
I did not change anything else from the compilation steps, meaning I still create my old "myext.pd_linux" file and i copy it under extras.
are there any restrictions against using operators like this in external files?
any suggestions? thanks a lot.
ahmet
-
Create external object with a name different than the type name
ahmetkizilay - ubuntu 11.04, 32bit, pd-extended 0.42.5
-
I noticed that there is a method called class_addcreator which lets objects to be called by an alias.
I triedclass_addcreator((t_newmethod) myext_new, gynsym("<><>"), A_DEFSYM, 0);
but it still did not work.
any suggestions? thanks a lot.
ahmetahmetkizilay - ubuntu 11.04, 32bit, pd-extended 0.42.5
-
Haven't tried this in linux yet, but it seems that you can tell pd to load an external on startup.
That's Preferences=>Startup...=>New...
then type the name of the pd_linux or dll file, minus the extension.