[PD] how to set variable types
AshK
ashk at azylum.net
Sat Jul 29 20:15:48 CEST 2006
well I keep working on this patch on the working PD and I need help
about how I can pass the $3 variable to the second [ctlin] (the one that
uses $3 as an argument) ?
see the attached patches (open main, the other is the abstraction)
thanks
derek holzer wrote:
> Works here. Try the attached patches. Save both somewhere and load
> "main.pd". The [bang< message should output $1's value (i.e. "1").
>
> If those don't work for you, you might have some trouble with your
> number box. In that case, info on your OS, PD version and possibly also
> your Tcl/Tk versions would be useful, as the problem would be somewhere
> in there.
>
> d.
>
>
> AshK wrote:
>> yes that's exactly what I mean and I have tried that already but the
>> number box remains empty.
>>
>>> Georg Holzmann wrote:
>>>> Hallo!
>>>>
>>>>> I couldn't find it in the doc.
>>>>> I have an abstraction with 2 arguments : [abstraction 1 2], inside
>>>>> the abstraction I send $1 to [print] and it returns 1. That's
>>>>> perfect but instead of the [print] I want a number box. When I try
>>>>> nothing happens.
>>>>> How can I get my variable in a number box?
>>>>
>>>> I don't know if I understand you correct, but maybe you mean this:
>>>>
>>>> [bang(
>>>> |
>>>> [f $1]
>>>> |
>>>> [numberbox]
>>>>
>>>> LG
>>>> Georg
>>>
>>
>> _______________________________________________
>> PD-list at iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list
>>
>
>
>
> ------------------------------------------------------------------------
>
> #N canvas 0 22 454 304 10;
> #X obj 214 90 f \$1;
> #X obj 219 50 inlet;
> #X obj 211 144 outlet;
> #X connect 0 0 2 0;
> #X connect 1 0 0 0;
>
>
> ------------------------------------------------------------------------
>
> #N canvas 0 22 454 304 10;
> #X obj 249 128 abst 1 2;
> #X floatatom 249 177 5 0 0 0 - - -;
> #X msg 253 91 bang;
> #X connect 0 0 1 0;
> #X connect 2 0 0 0;
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: main.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060729/91d760f2/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ctlin14.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060729/91d760f2/attachment.txt>
More information about the Pd-list
mailing list