puredata

What alternatives are there to dynamic patching (to deal with variables passed at creation time)?

做~自己de王妃 提交于 2020-07-10 00:50:20
问题 I have heard people describe dynamic patching as a bit of a hack or at risk of breaking in future releases of Pd. This is reasonable enough, but it seems to imply that there are alternatives when building abstractions. Dynamic patching seems to be useful for both instantiating a variable number of objects and connecting up to a variable number (a number defined at creation time - I personally don't need it to change after the fact, at this stage) of inlets and outlets within an abstraction.

What alternatives are there to dynamic patching (to deal with variables passed at creation time)?

纵饮孤独 提交于 2020-07-10 00:48:50
问题 I have heard people describe dynamic patching as a bit of a hack or at risk of breaking in future releases of Pd. This is reasonable enough, but it seems to imply that there are alternatives when building abstractions. Dynamic patching seems to be useful for both instantiating a variable number of objects and connecting up to a variable number (a number defined at creation time - I personally don't need it to change after the fact, at this stage) of inlets and outlets within an abstraction.

Get console messages into a message box

痞子三分冷 提交于 2019-12-10 22:34:34
问题 Is there any way to get the Pure Data Pd windows console messages into a message box within the patch? I'm trying to get error messages back into the patch so that the patch can react to them. 回答1: the only way to do this (in Pd-vanilla even) is to: send all post/error messages to the stderr (with the -stderr startup flag) redirect the stderr to stdout capture the stdout with a script, reformat it and send it back to Pd via the network (preferrably UDP) add a [netreceive] to get the messages.

Is there any reason to use vanilla Pure Data instead of Pd-extended?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-09 18:29:54
问题 I'm just starting out with Pd, and want to know what factors I consider in choosing between using Pd vanilla vs. Pd-extended . 回答1: For beginners Pd-extended offers many convenient tools and comes with many externals, abstractions and GUI-plugins already pre-installed (and direct access to the bug tracker) that you might find useful to get started. However you can still have Vanilla Pd installed alongside and try Pd in all flavours. Vanilla is usually a little more up-to-date and has the

Is there any reason to use vanilla Pure Data instead of Pd-extended?

旧城冷巷雨未停 提交于 2019-12-04 08:41:01
I'm just starting out with Pd, and want to know what factors I consider in choosing between using Pd vanilla vs. Pd-extended . For beginners Pd-extended offers many convenient tools and comes with many externals, abstractions and GUI-plugins already pre-installed (and direct access to the bug tracker) that you might find useful to get started. However you can still have Vanilla Pd installed alongside and try Pd in all flavours. Vanilla is usually a little more up-to-date and has the freshest improvements, because it takes time to be packaged in a Pd-extended (at the time of writing this,

C Wrapper for C++

£可爱£侵袭症+ 提交于 2019-11-28 18:23:41
I'd like to use Pure Data as a prototyping tool for my own library. I found out that Pure Data patches are written in C, but my library is written in C++. So how can I use this code in pure data? Since I haven't used plain C, I'd like to know how I could write a C wrapper for C++ classes and how do instantiate my classes then? Or do I have to rewrite everything in C? You will need to write wrapper functions for every function which needs to be called. For example: // The C++ implementation class SomeObj { void func(int); }; extern "C" { SomeObj* newSomeObj() {return new SomeObj();} void

C Wrapper for C++

我怕爱的太早我们不能终老 提交于 2019-11-27 11:18:32
问题 I'd like to use Pure Data as a prototyping tool for my own library. I found out that Pure Data patches are written in C, but my library is written in C++. So how can I use this code in pure data? Since I haven't used plain C, I'd like to know how I could write a C wrapper for C++ classes and how do instantiate my classes then? Or do I have to rewrite everything in C? 回答1: You will need to write wrapper functions for every function which needs to be called. For example: // The C++