Re: [PD] Can you help me with this patch? II

2007-11-01 Thread cyrille henry



Javier Garcia a écrit :

Hi,

the patch that is attached should do a loop between 0 and 1.

someone knows why it doesnt work?

certainly a missong trigger problem.



I tried with several delays, but nothing...

why do you nead a delay?

does the attached patch is what you wanted?

c



br.
GARFF

_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




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


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


Re: [PD] Can you help me with this patch? II

2007-11-01 Thread Roman Haefeli
hi javier

i am not quite sure, if i understand what you would like to achieve. and
reading your patch still doesn't help me somehow. do you want to get an
alternating output, switching between 0 and 1, on each metro tick?

like this:

[metro 1000]
|
[== ]X[f ]

?

roman



On Thu, 2007-11-01 at 16:50 +0100, Javier Garcia wrote:
 Hi,
 
 the patch that is attached should do a loop between 0 and 1.
 
 someone knows why it doesnt work?
 
 I tried with several delays, but nothing...
 
 br.
 GARFF

 




___ 
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


Re: [PD] Can you help me with this patch? II

2007-11-01 Thread Javier Garcia
Thanks Cyrille

Cyrille Henry wrote:

 certainly a missong trigger problem.

I dont understand...could you correct my patch?



 why do you nead a delay?

As you can see here i asked for something similar some days ago:

http://lists.puredata.info/pipermail/pd-list/2007-10/055664.html

and [delay worked. (The patch i refered is attached on this mail)



 does the attached patch is what you wanted?

Yes, but would prefer modify my patch.


GARFF



 Date: Thu, 1 Nov 2007 17:13:51 +0100
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 CC: pd-list@iem.at
 Subject: Re: [PD] Can you help me with this patch? II
 
 
 
 Javier Garcia a écrit :
  Hi,
  
  the patch that is attached should do a loop between 0 and 1.
  
  someone knows why it doesnt work?
 certainly a missong trigger problem.
 
  
  I tried with several delays, but nothing...
 why do you nead a delay?
 
 does the attached patch is what you wanted?
 
 c
 
  
  br.
  GARFF
  
  _
  Express yourself instantly with MSN Messenger! Download today it's FREE!
  http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
  
  
  
  
  ___
  PD-list@iem.at mailing list
  UNSUBSCRIBE and account-management - 
  http://lists.puredata.info/listinfo/pd-list

_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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


Re: [PD] Can you help me with this patch? II

2007-11-01 Thread ilya .d
On Thu, Nov 01, 2007 at 05:13:32PM +0100, Roman Haefeli wrote:
 hi javier
 
 i am not quite sure, if i understand what you would like to achieve. and
 reading your patch still doesn't help me somehow. do you want to get an
 alternating output, switching between 0 and 1, on each metro tick?
 
 like this:
 
 [metro 1000]
 |
 [== ]X[f ]
 
 ?
 
 roman

greate little patch, Roman!

i just made a little test patch to see if this is faster then a standard
counter approach with [mod 2] ..

have look what you think about it .. (in the attachmetn)

i couldn't actually quite get why [==]X[f] behave exactly this way ..
it's cool.
 
 
 
 On Thu, 2007-11-01 at 16:50 +0100, Javier Garcia wrote:
  Hi,
  
  the patch that is attached should do a loop between 0 and 1.
  
  someone knows why it doesnt work?
  
  I tried with several delays, but nothing...
  
  br.
  GARFF
 
  
 
 
   
   
 ___ 
 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

#N canvas 320 288 618 421 10;
#X obj 62 155 metro;
#X floatatom 92 139 5 0 0 0 - - -;
#X obj 41 140 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 268 155 f;
#X floatatom 310 172 5 0 0 0 - - -;
#X obj 209 172 ==;
#X obj 130 172 f;
#X floatatom 94 251 5 0 0 0 - - -;
#X obj 94 189 + 1;
#X obj 94 224 mod 2;
#X obj 228 241 sel 1;
#X obj 268 241 sel 1;
#X obj 336 258 timer;
#X floatatom 336 281 5 0 0 0 - - -;
#X obj 391 258 realtime;
#X floatatom 391 281 5 0 0 0 - - -;
#X connect 0 0 5 0;
#X connect 0 0 6 0;
#X connect 1 0 0 1;
#X connect 2 0 0 0;
#X connect 3 0 4 0;
#X connect 3 0 5 1;
#X connect 3 0 11 0;
#X connect 5 0 3 0;
#X connect 6 0 8 0;
#X connect 8 0 6 1;
#X connect 8 0 9 0;
#X connect 9 0 7 0;
#X connect 9 0 10 0;
#X connect 10 0 12 0;
#X connect 10 0 14 0;
#X connect 11 0 12 1;
#X connect 11 0 14 1;
#X connect 12 0 13 0;
#X connect 14 0 15 0;
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Can you help me with this patch? II

2007-11-01 Thread Steffen Juul

On 01/11/2007, at 17.30, Javier Garcia wrote:
  does the attached patch is what you wanted?

 Yes, but would prefer modify my patch.

Have a look at cyrille's patch and see where it differs from your patch.

- It doesn't use the delay. after you've checked if you've got all  
the way up to 1, you don't have to wait 10ms to reset the counter.  
The next thing that happens is that the metro bang's the [f] again at  
some point. Let the metro control the timing (in this case at least).

- you can use [moses 1] as in curille's patch to check if check if  
you have got all the way up to 1. As in, use moses instead of the  
combination of [== 1] and [select 1] you've used. One good reason is  
that you make sure the counter doesn't skip the 1 mark. Fx from 0.97  
to 1.01. In your patch that could easily happen.

- and finally it uses a trigger, [t f f]. This is done to make sure  
the counter is updated before you check if you've got all the way up  
to 1. In this case it might not matter, but the use of triggers is a  
good thing one should use when ever there is more then one patch-cord  
out of an outlet to make sure things happen in the order one what's  
them to happen.

So in this view cyrille has in fact modified your patch.

Hope this helps.

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


Re: [PD] Can you help me with this patch? II

2007-11-01 Thread Frank Barknecht
Hallo,
Javier Garcia hat gesagt: // Javier Garcia wrote:

 Thanks Cyrille
 
 Cyrille Henry wrote:
 
  certainly a missong trigger problem.
 
 I dont understand...could you correct my patch?
 
 
 
  why do you nead a delay?
 
 As you can see here i asked for something similar some days ago:
 
 http://lists.puredata.info/pipermail/pd-list/2007-10/055664.html
 
 and [delay worked. (The patch i refered is attached on this mail)

A [trigger anything] would have worked there as well. Both of your
patches have a tricky execution order and you did get the order wrong.
To get execution order right, you should not use [delay] but
[trigger]. You should only use [delay] when you actually want to delay
something not to fix execution order problems (except in some very
rare cases.)

Anyway looping from 0-1 is just a variation on counting, which doesn't
need triggers or delays. There are standard idioms on how to do
counters in Pd (search the archive). I'd recommend to only count in
integer numbers and scale to your needed range afterwards. See
attached patch which is your patch changed in small steps.

Ciao
-- 
 Frank Barknecht _ __footils.org__


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


Re: [PD] Can you help me with this patch? II

2007-11-01 Thread Frank Barknecht
Hallo,
Frank Barknecht hat gesagt: // Frank Barknecht wrote:

 See attached patch which is your patch changed in small steps.

Quick addendum: Note the first change I did to your patch. It's the
most important one! If you always make your patches clean and tidy
it's much easier to see what's going on and to identify certain idioms
like counters. 

At least try to align left in- and outlets, that are connected to each
other, in strictly vertical colums. This is the Pd equivalent of left
aligned text that is used in books and newspapers etc. and makes
patches much more readable.

Ciao
-- 
 Frank Barknecht _ __footils.org__

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