Hi,
The code compiles but I get the error when running in the pdint_setup where
pdint_new in class_new breaks with an error.
My idea is to first try to understand the code hence my question:
I think first you should post the error you get ;-) Maybe the problem is
trivially solved without having to look at code for class_new() at all.
What does class_new do?
It creates a new Pd class (t_pd). The class contains all the methods and
some metadata. It also registers a creator function in pd_objectmaker,
which is the factory object for all classes.
When you type "[foo 0]" you really send a message "obj <x> <y> foo 0" to
the canvas, which in turn sends a message "foo 0" to pd_objectmaker,
which finally returns a newly created instance (given that it can find a
creator method for "foo").
But again, I think the problem is likely trivial and those
implementation details shouldn't concern you, unless you want to learn
about Pd internals, of course :-)
Christof
On 21.03.2020 13:20, Boštjan Jerko wrote:
Hi,
I’m trying to port libpd to stm32. I don’t need gui so working only on
connecting pd script to the output (which is DAC from stm32 in my case).
The code compiles but I get the error when running in the pdint_setup where
pdint_new in class_new breaks with an error.
My idea is to first try to understand the code hence my question:
What does class_new do?
My guess is connecting puredata command with a function in C. Am I correct or
completely missing the point?
Thanks.
B.
_______________________________________________
Pd-dev mailing list
[email protected]
https://lists.puredata.info/listinfo/pd-dev
_______________________________________________
Pd-dev mailing list
[email protected]
https://lists.puredata.info/listinfo/pd-dev