Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-30 Thread Derek Kwan
> > an example of an object that uses it? where exactly is this function? > Scope~ itself uses sic_setup (for the leftmost inlet). > -Jonathan Hello, So I gave using class_domainsignalin() and class_addfloat() a shot in the setup of both main and proxy classes in my test external which is what

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-30 Thread Jonathan Wilkes via Pd-list
> an example of an object that uses it? where exactly is this function? Scope~ itself uses sic_setup (for the leftmost inlet). -Jonathan On Wednesday, March 30, 2016 11:03 AM, Alexandre Torres Porres wrote: 2016-03-29 18:55 GMT-03:00 Jonathan Wilkes via Pd-list : looking at that cyclon

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-30 Thread Alexandre Torres Porres
2016-03-29 18:55 GMT-03:00 Jonathan Wilkes via Pd-list : > looking at that cyclone wrapper function it seems like you should be able > to get the same behavior with a proxy inlet. > an example of an object that uses it? where exactly is this function? thanks

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-29 Thread Jonathan Wilkes via Pd-list
Yes, there's a very good reason to employ a solution to a name clash.  Also, using a capital letter in an external name is a poor solution to that problem.  Even calling the thing "pdrunsonwindowstooscope~" would have been better. -Jonathan On Tuesday, March 29, 2016 3:21 AM, IOhannes m z

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-29 Thread Jonathan Wilkes via Pd-list
Well, I just couldn't understand how to get the behavior you're after by looking at the inlet_new code.  But looking at that cyclone wrapper function it seems like you should be able to get the same behavior with a proxy inlet. -Jonathan On Tuesday, March 29, 2016 8:01 AM, Derek Kwan wro

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-29 Thread Derek Kwan
> > Actually after looking deeper I have no clue.  It looks like cyclone has > some helper functions to set a separate float method for the leftmost signal > inlet.  If you can figure out how it works perhaps you can try doing the same > for a secondary inlet. Hello Jonathan, Yeah, scope's se

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-29 Thread Derek Kwan
(oops, forgot to cc the list, sorry iohannes, still getting a handle on this...) > did i miss something? > why would it not work with proxy inlets? > With the code I found here: http://puredata.info/Members/mjmogo/proxy-example-for-pd.zip/view tackling proxy inlets (basically making a proxy clas

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-29 Thread IOhannes m zmoelnig
On 2016-03-28 22:35, Jonathan Wilkes via Pd-list wrote: > "Scope~" already has a capital "S" in the name for no _good_ reason, so it's > not like the method space is the only discrepancy. the *very good* reason for the capital "S" is that back in the days when cyclone was developed, Pd (vanilla)

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-28 Thread IOhannes m zmoelnig
On 2016-03-28 22:35, Jonathan Wilkes via Pd-list wrote: > Hi Derek,Have a look at the inlet_new code in m_obj.c. But after skimming it > I don't see > any sensible way to achieve what you want. did i miss something? why would it not work with proxy inlets? am,sdr IOhannes signature.asc Desc

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-28 Thread Jonathan Wilkes via Pd-list
Actually after looking deeper I have no clue.  It looks like cyclone has some helper functions to set a separate float method for the leftmost signal inlet.  If you can figure out how it works perhaps you can try doing the same for a secondary inlet. -Jonathan On Monday, March 28, 2016 1

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-28 Thread Alexandre Torres Porres
2016-03-28 17:35 GMT-03:00 Jonathan Wilkes via Pd-list : > after skimming it I don't see any sensible way to achieve what you want. > Just to be clear, do you mean you can't see any way, or that you may see some possible hacks that might be very clumsy and might not work well and be kind of non s

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-28 Thread Alexandre Torres Porres
2016-03-28 21:16 GMT-03:00 Derek Kwan : > Thanks, John, I'll take a look myself and yeah, I'm not super-optimistic > either. bummer, hope there is some way... > There are calls to class_addcreator for "scope~" and > "cyclone/scope~" but yeah, "Scope~" is a weird one... > I had the idea that i

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-28 Thread Derek Kwan
Thanks, John, I'll take a look myself and yeah, I'm not super-optimistic either. There are calls to class_addcreator for "scope~" and "cyclone/scope~" but yeah, "Scope~" is a weird one... Derek = Derek Kwan www.derekxkwan.com ___ Pd

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-28 Thread Jonathan Wilkes via Pd-list
Hi Derek,Have a look at the inlet_new code in m_obj.c. But after skimming it I don't see any sensible way to achieve what you want.  I'd suggest just using the left-most inlet with a sensible method name. "Scope~" already has a capital "S" in the name for no _good_ reason, so it's not like the

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-28 Thread IOhannes m zmölnig
On 03/28/2016 01:27 AM, Derek Kwan wrote: >> Are you really sure you want that? These days most Pd-users expect an >> implicit float-to-signal conversion. This might lead to unexpected (though >> well-defined) behaviour of your objects. >> My advice is to not try hard to break the expectancy of y

[PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-27 Thread Derek Kwan
> Are you really sure you want that? These days most Pd-users expect an > implicit float-to-signal conversion. This might lead to unexpected (though > well-defined) behaviour of your objects. > My advice is to not try hard to break the expectancy of your users. Hello, In normal circumstances, I

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-27 Thread IOhannes zmölnig
Am 27. März 2016 07:21:59 MESZ, schrieb Derek Kwan : >My main goal is to have a second signal inlet that can also accept >floats >not as a substitute for a signal but calls a separate method. Are you really sure you want that? These days most Pd-users expect an implicit float-to-signal conversio

[PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-26 Thread Derek Kwan
Hello, Thanks for pointing me to the concept of proxy inlets. I've tried to implement a test external using this code: http://puredata.info/Members/mjmogo/proxy-example-for-pd.zip/view In the linked code, they're basically making another class of type t_proxy: typedef struct _proxy { t_pd l

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-25 Thread Alexandre Torres Porres
2016-03-25 19:21 GMT-03:00 Jonathan Wilkes via Pd-list : > There's a way to do it. Search the mailing list for "proxy inlet". > this is where the search took me to http://puredata.info/Members/mjmogo Inlet Proxy Object

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-25 Thread Alexandre Torres Porres
2016-03-25 19:21 GMT-03:00 Jonathan Wilkes via Pd-list : > (Unless of course you are trying to be compatible with a Max/MSP object > that does it that way.) > yep, [scope~] by the way, second signal inlet should set "bufsize" when receiving a float, to be more specific. Well, glad there is a way

Re: [PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-25 Thread Jonathan Wilkes via Pd-list
There's a way to do it.  Search the mailing list for "proxy inlet". However, as a general rule this is a bad idea.  (Unless of course you are trying to be compatible with a Max/MSP object that does it that way.) -Jonathan On Friday, March 25, 2016 5:33 PM, Derek Kwan wrote: Hey y'all

[PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-25 Thread Derek Kwan
Hey y'all, I'm actually the one that needs this, I've been working with Alexandre on updating Cyclone. If further info is needed, the method I've been trying to use is inlet_new. The part of documentation that seems to drive the nail in the coffin is this bullet-point: "It is not possible to ad

[PD] can signal inlets that aren't the main inlet have float or message methods?

2016-03-25 Thread Alexandre Torres Porres
Howdy, for main inlets (left inlet), you can add whatever kind of method to whatever kind of type, being it a signal, a symbol, a list... but not sure if you can do this with non-main inlets (the documentation pd-externals how to put up my IOhannes seems to confirm this). anyway, i kinda needed a