Re: [PD] Abstraction arguments: tell apart symbols from floats from no argument at all

2018-12-22 Thread Jérôme Abel
Hi all, Some vanilla solutions in attachments, taken from some projects. ++ -- Jérôme Abel http://jeromeabel.net #N canvas 13 101 902 398 10; #X obj 110 127 route float symbol; #X obj 110 84 route bang; #X obj 110 63 list; #X obj 110 39 loadbang; #X obj 110 105 list append \$1; #X obj 458 58

Re: [PD] Abstraction arguments: tell apart symbols from floats from no argument at all

2018-12-22 Thread Peter P.
* hans w. koch [2018-12-22 19:28]: > i have this vanilla abstraction based on a patch by johannes, which gives 1 > for argument present and 0 if absent > maybe thats for you? Thanks Hans, this looks good and seems to be a similar way than the one proposed by Christof. best, P > > best hans

Re: [PD] Grid, x y control

2018-12-22 Thread Max
Dang! I want this thing in the Put menu! :) On 21.12.18 14:22, Alexandre Torres Porres wrote: my [else/slider2d] solves that in a vanilla way Em sex, 21 de dez de 2018 às 09:57, Esteban Viveros > escreveu: Take a look into:

Re: [PD] Abstraction arguments: tell apart symbols from floats from no argument at all

2018-12-22 Thread hans w. koch
i have this vanilla abstraction based on a patch by johannes, which gives 1 for argument present and 0 if absent maybe thats for you? best hans checkarg.pd Description: Binary data argtest.pd Description: Binary data > Am 22.12.2018 um 16:52 schrieb Matt Davey : > > If you're ok with

Re: [PD] Abstraction arguments: tell apart symbols from floats from no argument at all

2018-12-22 Thread Christof Ressi
unfortunately, this doesn't work. missing arguments will become 0 and therefore can't be differentiated from a float arg with with the same value. I think it's only dollarsyms (e.g. "_$1") where the missing argument doesn't become 0. I think Pd vanilla really needs a mechanism to retreive the

Re: [PD] Abstraction arguments: tell apart symbols from floats from no argument at all

2018-12-22 Thread João Pais
another way to do it might be the following. I don't have now the time to test it: - loadbang a list with all the arguments (maybe initiated by something like [list $1 $2 $3 ... $16 or whatever]) - use an abstraction from list-abs to drip the list - send the output through a route to test

Re: [PD] Abstraction arguments: tell apart symbols from floats from no argument at all

2018-12-22 Thread Peter P.
* Christof Ressi [2018-12-22 17:15]: > if you're ok with externals you can also use [dollarg] from iemlib or > [canvasargs] from iemguts. for a hacky vanilla solution, see attached patch. > I'm sure there are more ways, this is just one that I remembered. And it is a nice one, Thanks Christof!

Re: [PD] Abstraction arguments: tell apart symbols from floats from no argument at all

2018-12-22 Thread Christof Ressi
if you're ok with externals you can also use [dollarg] from iemlib or [canvasargs] from iemguts. for a hacky vanilla solution, see attached patch. I'm sure there are more ways, this is just one that I remembered.   Christof  Gesendet: Samstag, 22. Dezember 2018 um 16:52 Uhr Von: "Matt Davey"

Re: [PD] Abstraction arguments: tell apart symbols from floats from no argument at all

2018-12-22 Thread Matt Davey
If you're ok with using an external library, then there is [pofutil] in the pof library which outputs a list of arguments when sent a [dollarg( message. so, like: [dollarg( | [pofutil] You can then just use pd's list functions (list length, list split, etc) to pull that list apart and check its

[PD] Abstraction arguments: tell apart symbols from floats from no argument at all

2018-12-22 Thread Peter P.
Hi list, please excuse me if this has been discussed numerous times, but the search engine at https://lists.puredata.info/pipermail/pd-list/ does not give me reasonable answers. I am writing an abstraction and for one of its numeric arguments I would like to detect if it has been not specified,