[PD-dev] Default value for unconnected signal input, or connection detection in an external

2020-03-19 Thread x nor
Hey Christof and dev list, Christof, I think it was you that did the work that allowed for a default value for unconnected [inlet~] in the inlet_features branch that didn't get merged? I'm wondering, is there a way to do that with externals as is without modifying the pure data source? Either

Re: [PD-dev] Default value for unconnected signal input, or connection detection in an external

2020-03-19 Thread x nor
k with including > "m_imp.h", you can use "obj_findsignalscalar" which returns a pointer to > the scalar value for the Nth signal inlet. > > Christof > On 19.03.2020 16:16, x nor wrote: > > Hey Christof and dev list, > > Christof, > I think it was you that did

Re: [PD-dev] array/table and canvas memory management

2020-01-30 Thread x nor
/freebytes(), but you have to make sure to set d_pd >> to data_class. See the "alist" class in x_list.c. >> >> Because t_data is a Pd class, you can now safely bind instances to >> symbols with pd_bind() and retrieve instances with pd_findbyclass(). >> >> As

Re: [PD-dev] array/table and canvas memory management

2020-01-30 Thread x nor
ss(). It will return NULL if the data > has been unbound (and deleted). > > This means you can have an object similar to [array define] which creates > a t_data instance and binds it to a symbol. In your patch you can pass this > symbol to your other externals which can retrieve th

[PD-dev] array/table and canvas memory management

2020-01-27 Thread x nor
I'm working on an external that loads analysis data into tables for use in re-synthesis and I want to make sure I'm not going to be leaking memory with this approach. I'd like to be able to load several sets of tables with a single object, and then access that data with an arbitrary number of

Re: [PD-dev] Fwd: capabilities of data structures with externals

2020-01-04 Thread x nor
On Sat, Jan 4, 2020 at 2:09 AM João Pais wrote: > > I do realize GEM is a possibility but, so many people seem to have trouble >> getting it working that it is tough to want to build new dependencies on >> GEM. >> It does turn out that I am actually converting the data from the >> datastructures

Re: [PD-dev] capabilities of data structures with externals

2020-01-04 Thread x nor
define], and then use [clone] or > dynamic patching. I think this is less work :-) > > --- > > That being said, I think there should be a way for [tabwrite~] etc. to > access data structure "float" arrays. See also: > https://github.com/pure-data/pure-data/pull/667 &

Re: [PD-dev] capabilities of data structures with externals

2020-01-03 Thread x nor
of task - > but if one were to design a text-language style interface, what language > would be suitable? Or indeed is there a compleetely different way to think > about it? I've been wondering about this since Pd's start around 1997 :) > > cheers > Miller > > On Fri, J

Re: [PD-dev] Fwd: capabilities of data structures with externals

2020-01-03 Thread x nor
> - or see if Miller can add a -s flag to [tabread~] and similars, as it was > done with [array] > > jmmmp > > Am Fr., 3. Jan. 2020 um 18:05 Uhr schrieb x nor : > >> This past week I've finally learned a bit more about data structures in >> PD and I've successfully creat

Re: [PD-dev] capabilities of data structures with externals

2020-01-03 Thread x nor
ndet:* Freitag, 03. Januar 2020 um 23:56 Uhr > *Von:* "x nor" > *An:* "Christof Ressi" > *Cc:* pd-dev > *Betreff:* Re: [PD-dev] capabilities of data structures with externals > > > On Fri, Jan 3, 2020 at 1:34 PM Christof Ressi > wrote: > >>

Re: [PD-dev] capabilities of data structures with externals

2020-01-03 Thread x nor
ays. See also: > https://github.com/pure-data/pure-data/pull/667 > I agree. -Alex > > Christof > > *Gesendet:* Freitag, 03. Januar 2020 um 17:59 Uhr > *Von:* "x nor" > *An:* pd-dev > *Betreff:* [PD-dev] capabilities of data structures with externals >

[PD-dev] capabilities of data structures with externals

2020-01-03 Thread x nor
This past week I've finally learned a bit more about data structures in PD and I've successfully created my own data structures that model data from ATS files (sines + noise analysis models). The re-synthesis ended up being a bit heavy because I didn't see a way to use tabread~/tabread4~ directly

Re: [PD-dev] dynamic patching - is iemguts the way to go?

2019-08-20 Thread x nor
another approach could be to generate all the permutations of your effects as abstractions and simply route audio to a permutation selectively like you would with a speaker with an N-channel panner. [adc~] | [pan control] | | [pan~ ] | | [effect1~]

Re: [PD-dev] can externals create data structures/templates?

2019-08-05 Thread x nor
ike in dynamic patching) > 4) vmess(s__X.s_thing, gensym("pop"), "i", 0) sends the "pop" messages to > the canvas. This effectively pops the canvas from the stack and #X is > restored to whatever it has been bound before. > > Hope that helps. >

Re: [PD-dev] can externals create data structures/templates?

2019-08-05 Thread x nor
lop/pd/src/vstplugin~.cpp#L649 > > Christof > > *Gesendet:* Montag, 05. August 2019 um 21:10 Uhr > *Von:* "x nor" > *An:* pd-dev > *Betreff:* [PD-dev] can externals create data structures/templates? > I'm starting to work with data structures and I'm curious if it

[PD-dev] can externals create data structures/templates?

2019-08-05 Thread x nor
I'm starting to work with data structures and I'm curious if it is possible to write externals that generate structs/templates? Are there any examples of this? I guess I can do dynamic patching if not? Thanks! ___ Pd-dev mailing list Pd-dev@lists.iem.at

Re: [PD-dev] Pure Rust Pure Data Externals

2019-07-31 Thread x nor
Thanks Julian, Hopefully it will be even more full featured at that point! -Alex On Wed, Jul 31, 2019 at 2:06 AM Julian Brooks wrote: > Nice work Alex, > > Look fwd to digging through these on my return from holidays. > > All the best, > > Julian > > On Tue, 30 Jul

[PD-dev] Pure Rust Pure Data Externals

2019-07-30 Thread x nor
This is very much still a work in progress, but recently I've been working on writing pure data externals in Rust and I figured I'd share: https://github.com/x37v/puredata-rust Rust can create dynamic libraries that can be loaded in C based projects without the need for any external build tools,