Re: [PD] another basic pd question/creation arguments in abstraction

2007-10-18 Thread IOhannes m zmoelnig
Roman Haefeli wrote:

 [list $1] - allows both, symbols and floats

shouldn't this be [list append $1]?


mfgasd.r
IOhannes

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] another basic pd question/creation arguments in abstraction

2007-10-18 Thread Atte André Jensen
IOhannes m zmoelnig wrote:

 [list $1] - allows both, symbols and floats
 
 shouldn't this be [list append $1]?

I tried both and both seem to work. There might be some situations where 
  the append make a difference, though...

-- 
peace, love  harmony
Atte

http://atte.dk   | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] another basic pd question/creation arguments in abstraction

2007-10-18 Thread Frank Barknecht
Hallo,
Roman Haefeli hat gesagt: // Roman Haefeli wrote:

 there is no mechanism in pd, that allows you to check, whether a certain
 argument for an abstraction was specified or not. when a certain
 argument is not given, pd just assumes '0'. if '0' is not part of your
 intended argument range, you can check in your abstraction, if the
 argument is '0' and assume, when it is '0', that it was not specified. 
 
 [loadbang]
 |
 [list $1] - allows both, symbols and floats
  
  [list append $1] - allows both, symbols and floats

 |
 [sel 0]
 | |
 [53 ] |  - your default value (could also be a symbol)
 |/
 |   /
 |  /
 | /
 |/
 [t a]

Ciaoo
-- 
 Frank Barknecht _ __footils.org__

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] another basic pd question/creation arguments in abstraction

2007-10-18 Thread Frank Barknecht
Hallo,
Atte André Jensen hat gesagt: // Atte André Jensen wrote:

 What can I do then about audio rate inlets? 

Inlets (sig and control) and arguments aren't related in any
predefined way. Obviously you cannot pass signals itself as arguments,
only symbols and numbers are possible, so any conversion to signals
has to happen using some dsp object. 

 As far as I understand they supply continious streams thus
 overriding and creation arguments I might supply. Is there something
 like [sel~] that'll only send the signal on should it be different
 from 0?

Is [sig~ $1] of any help? It will take the signal to generate from the
first argument. If that is missing, it would be the same as [sig~ 0].
The same of course is possible with any dsp-object that accepts
arguments, like [hip~ $1] etc.

Ciao
-- 
 Frank Barknecht _ __footils.org__

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] another basic pd question/creation arguments in abstraction

2007-10-18 Thread Roman Haefeli
yo, hi frank and IOhannes

On Thu, 2007-10-18 at 08:04 +0200, Frank Barknecht wrote:
  [loadbang]
  |
  [list $1] - allows both, symbols and floats
   
   [list append $1] - allows both, symbols and floats

On Thu, 2007-10-18 at 09:21 +0200, IOhannes m zmoelnig wrote: 
 shouldn't this be [list append $1]?

yes, of course. thanks

roman




___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] another basic pd question/creation arguments in abstraction

2007-10-17 Thread Atte André Jensen

Hi

Still a lot to learn...

With the attached patch as an example, how do I make it possible to use 
the numbers 2000, 4000 and 5200 a creations arguments, but still use the 
said numbers as defaults, should no arguments be supplied?


Confused at a very basic level, unfortunately :-)

I seem to get most of the other stuff with pd, esp the audio part, but 
I'm always messing up when it comes to creation arguments in 
abstractions. What would be required read-up (besides the 
*dollarsign*.pd files under doc/2.control.examples) that'll allow me to 
grasp this aspect?


--
peace, love  harmony
Atte

http://atte.dk   | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk
#N canvas 324 175 463 402 10;
#X obj 106 266 *~;
#X obj 48 32 inlet;
#X obj 83 312 outlet~;
#X obj 139 312 outlet~;
#X text 85 330 left;
#X text 139 329 right;
#X obj 103 32 inlet;
#X text 48 13 note;
#X text 103 13 velocity;
#X obj 53 146 noise~;
#X obj 53 215 hip~ 5200;
#X obj 48 53 unpack;
#X obj 53 189 vcf~ 17;
#X obj 140 80 moses 1;
#X obj 184 124 vline~;
#X obj 122 245 *~ 0.1;
#X obj 75 169 *~ 2000;
#X msg 184 104 1 30 \, 0.1 4000 30;
#X connect 0 0 2 0;
#X connect 0 0 3 0;
#X connect 1 0 11 0;
#X connect 6 0 13 0;
#X connect 9 0 12 0;
#X connect 10 0 0 0;
#X connect 11 1 13 0;
#X connect 12 0 10 0;
#X connect 13 1 17 0;
#X connect 14 0 15 0;
#X connect 14 0 16 0;
#X connect 15 0 0 1;
#X connect 16 0 12 1;
#X connect 17 0 14 0;
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] another basic pd question/creation arguments in abstraction

2007-10-17 Thread Roman Haefeli
On Thu, 2007-10-18 at 02:44 +0200, Atte André Jensen wrote:
 Hi
 
 Still a lot to learn...
 
 With the attached patch as an example, how do I make it possible to use 
 the numbers 2000, 4000 and 5200 a creations arguments, but still use the 
 said numbers as defaults, should no arguments be supplied?
 
 Confused at a very basic level, unfortunately :-)
 
 I seem to get most of the other stuff with pd, esp the audio part, but 
 I'm always messing up when it comes to creation arguments in 
 abstractions. What would be required read-up (besides the 
 *dollarsign*.pd files under doc/2.control.examples) that'll allow me to 
 grasp this aspect?

there is no mechanism in pd, that allows you to check, whether a certain
argument for an abstraction was specified or not. when a certain
argument is not given, pd just assumes '0'. if '0' is not part of your
intended argument range, you can check in your abstraction, if the
argument is '0' and assume, when it is '0', that it was not specified. 

[loadbang]
|
[list $1] - allows both, symbols and floats
|
[sel 0]
| |
[53 ] |  - your default value (could also be a symbol)
|/
|   /
|  /
| /
|/
[t a]

roman




___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list