Re: [PD] Pd exam 01: complete the list

2008-11-28 Thread Andy Farnell
Missed the start, but great thread ppl! 

a.

On Tue, 25 Nov 2008 23:47:56 +0100
Frank Barknecht [EMAIL PROTECTED] wrote:

 Hallo,
 Sylvain Le Beux hat gesagt: // Sylvain Le Beux wrote:
 
  not really working at best. replace 1 2 with 1 2 4 and 3 with 3 7 ...
 
 Oh, that would be a different assignment, like: replace a missing third
 element in a list.
 
 Ciao
 -- 
 Frank
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list


-- 
Use the source

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


[PD] Pd exam 01: complete the list

2008-11-25 Thread Frank Barknecht
Hallo,

attached is a little assignment for aspiring Pd users. The most
elegant (e.g. shortest) solution gets a free handshake! ;) 

Ciao
-- 
 Frank BarknechtDo You RjDj.me?  _ __footils.org__


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


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread Conor Higgins

donenow...where's that handshake?! :D



pd-exam-01.pd
Description: Binary data




On 25 Nov 2008, at 22:10, Frank Barknecht wrote:


Hallo,

attached is a little assignment for aspiring Pd users. The most
elegant (e.g. shortest) solution gets a free handshake! ;)

Ciao
--  
Frank BarknechtDo You RjDj.me?  _  
__footils.org__

pd-exam-01.pd___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


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


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread Mike McGonagle
Is this one? Or is there something shorter?

Mike


On Tue, Nov 25, 2008 at 4:10 PM, Frank Barknecht [EMAIL PROTECTED] wrote:
 Hallo,

 attached is a little assignment for aspiring Pd users. The most
 elegant (e.g. shortest) solution gets a free handshake! ;)

 Ciao
 --
  Frank BarknechtDo You RjDj.me?  _ __footils.org__

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





-- 
Peace may sound simple—one beautiful word— but it requires everything
we have, every quality, every strength, every dream, every high ideal.
—Yehudi Menuhin (1916–1999), musician


pd-exam-01-mjm-answer.pd
Description: Binary data
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread Mike McGonagle
actually, I just checked my answer again, and when the list has two
elements, it outputs a list of three elements on subsequent runs, as
the 100 was still part of the list...

Is this one more accurate?

Mike


On Tue, Nov 25, 2008 at 4:25 PM, Mike McGonagle [EMAIL PROTECTED] wrote:
 Is this one? Or is there something shorter?

 Mike


 On Tue, Nov 25, 2008 at 4:10 PM, Frank Barknecht [EMAIL PROTECTED] wrote:
 Hallo,

 attached is a little assignment for aspiring Pd users. The most
 elegant (e.g. shortest) solution gets a free handshake! ;)

 Ciao
 --
  Frank BarknechtDo You RjDj.me?  _ __footils.org__

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





 --
 Peace may sound simple—one beautiful word— but it requires everything
 we have, every quality, every strength, every dream, every high ideal.
 —Yehudi Menuhin (1916–1999), musician




-- 
Peace may sound simple—one beautiful word— but it requires everything
we have, every quality, every strength, every dream, every high ideal.
—Yehudi Menuhin (1916–1999), musician


pd-exam-01-mjm-answer2.pd
Description: Binary data
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread cyrille henry



Frank Barknecht a écrit :

Hallo,

attached is a little assignment for aspiring Pd users. The most
elegant (e.g. shortest) solution gets a free handshake! ;) 


Ciao




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list
#N canvas 499 263 626 380 10;
#X floatatom 142 286 5 0 0 0 - - -;
#X floatatom 75 286 5 0 0 0 - - -;
#X msg 75 122 1 2;
#X obj 75 235 unpack 0 0;
#X msg 116 151 3;
#X text 166 151 but this should set the number boxes to 3 and 100.
;
#X text 112 121 this should set the number boxes to 1 and 2.;
#X text 42 29 Assignment 1:;
#X text 67 58 Print the second element from a list. If there is no
second element in the list because the list is too short \, send 100
instead.;
#X obj 142 314 print Second_Element;
#N canvas 0 0 450 300  0;
#X obj 89 47 inlet;
#X obj 89 240 outlet;
#X text 178 52 Fill in this part.;
#X obj 88 78 t a b;
#X obj 89 105 unpack f f;
#X msg 139 134 100;
#X obj 88 159 pack f f;
#X connect 0 0 3 0;
#X connect 3 0 4 0;
#X connect 3 1 5 0;
#X connect 4 0 6 0;
#X connect 4 1 6 1;
#X connect 5 0 6 1;
#X connect 6 0 1 0;
#X restore 75 193 pd ;
#X text 176 193 == fill in this part.;
#X connect 0 0 9 0;
#X connect 2 0 10 0;
#X connect 3 0 1 0;
#X connect 3 1 0 0;
#X connect 4 0 10 0;
#X connect 10 0 3 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread Sylvain Le Beux

Frank Barknecht a écrit :

Hallo,

attached is a little assignment for aspiring Pd users. The most
elegant (e.g. shortest) solution gets a free handshake! ;) 


Ciao
  



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

ok, here's mine, simplfied as possible
#N canvas 654 394 626 380 10;
#X floatatom 142 286 5 0 0 0 - - -;
#X floatatom 75 286 5 0 0 0 - - -;
#X obj 75 235 unpack 0 0;
#X text 166 151 but this should set the number boxes to 3 and 100.
;
#X text 112 121 this should set the number boxes to 1 and 2.;
#X text 42 29 Assignment 1:;
#X text 67 58 Print the second element from a list. If there is no
second element in the list because the list is too short \, send 100
instead.;
#X obj 142 314 print Second_Element;
#N canvas 668 36 450 300  1;
#X obj 89 47 inlet;
#X obj 40 230 outlet;
#X msg 171 90 100;
#X text 203 3 Fill in this part.;
#X obj 132 191 spigot;
#X obj 73 131 zl len;
#X obj 40 185 spigot;
#X obj 73 159  1;
#X obj 132 117 zl join;
#X obj 89 74 t l l b;
#X obj 165 160 == 1;
#X connect 0 0 9 0;
#X connect 2 0 8 1;
#X connect 4 0 1 0;
#X connect 5 0 7 0;
#X connect 5 0 10 0;
#X connect 6 0 1 0;
#X connect 7 0 6 1;
#X connect 8 0 4 0;
#X connect 9 0 6 0;
#X connect 9 0 8 0;
#X connect 9 1 5 0;
#X connect 9 2 2 0;
#X connect 10 0 4 1;
#X restore 75 193 pd ;
#X text 176 193 == fill in this part.;
#X msg 75 122 1 2;
#X msg 116 151 3;
#X connect 0 0 7 0;
#X connect 2 0 1 0;
#X connect 2 1 0 0;
#X connect 8 0 2 0;
#X connect 10 0 8 0;
#X connect 11 0 8 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread Marius Schebella
hey frank,

[inlet]
 |
[list split 2]
 |  /
 |[pack 0 100]
 |/
 |   /
 |  /
 | /
 |/
 |   /
 |  /
 | /
 |/
[outlet]

m.

Frank Barknecht wrote:
 Hallo,

 attached is a little assignment for aspiring Pd users. The most
 elegant (e.g. shortest) solution gets a free handshake! ;) 

 Ciao

 

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


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


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread Sylvain Le Beux
not really working at best. replace 1 2 with 1 2 4 and 3 with 3 7 ...

Best

S.

cyrille henry a écrit :


 Frank Barknecht a écrit :
 Hallo,

 attached is a little assignment for aspiring Pd users. The most
 elegant (e.g. shortest) solution gets a free handshake! ;)
 Ciao


 

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

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


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


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread Frank Barknecht
Hallo,
Sylvain Le Beux hat gesagt: // Sylvain Le Beux wrote:

 not really working at best. replace 1 2 with 1 2 4 and 3 with 3 7 ...

Oh, that would be a different assignment, like: replace a missing third
element in a list.

Ciao
-- 
Frank

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


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread Sylvain Le Beux
Frank Barknecht a écrit :
 Hallo,
 Sylvain Le Beux hat gesagt: // Sylvain Le Beux wrote:

   
 not really working at best. replace 1 2 with 1 2 4 and 3 with 3 7 ...
 

 Oh, that would be a different assignment, like: replace a missing third
 element in a list.

 Ciao
   
ok, well sorry. I just take the assignment as it, where you wrote a 
list and too short.
Thought you were making teh statement general, and lists were here just 
as example. anyway, that was fun playing.

Best

S.

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


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread Enrique Erne
wow, that's a pretty solution you got here.



cyrille henry wrote:
 
 
 Frank Barknecht a écrit :
 Hallo,

 attached is a little assignment for aspiring Pd users. The most
 elegant (e.g. shortest) solution gets a free handshake! ;)
 Ciao


 

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


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


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread Thomas Grill

i haven't looked at the others... maybe it's a duplicate already... gr~~

[inlet]
|
[route list]
|   |
|  [pack 0 100]
|  /
[outlet]

Am 25.11.2008 um 23:10 schrieb Frank Barknecht:


Hallo,

attached is a little assignment for aspiring Pd users. The most
elegant (e.g. shortest) solution gets a free handshake! ;)

Ciao
--  
Frank BarknechtDo You RjDj.me?  _  
__footils.org__

pd-exam-01.pd___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list




smime.p7s
Description: S/MIME cryptographic signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread Mike McGonagle
Marius,

Wasn't quite sure if this would work, so I implemented it, and found
that, maybe do to this ascii version, that the [pack 0 100] should
be connected to the right outlet of the [list split 2]... This appears
to be the shortest implementation.

Just mention this so others would recognize this...

I attached that version...

On Tue, Nov 25, 2008 at 4:39 PM, Marius Schebella
[EMAIL PROTECTED] wrote:
 hey frank,

 [inlet]
  |
 [list split 2]
  |  /
  |[pack 0 100]
  |/
  |   /
  |  /
  | /
  |/
  |   /
  |  /
  | /
  |/
 [outlet]

 m.

 Frank Barknecht wrote:
 Hallo,

 attached is a little assignment for aspiring Pd users. The most
 elegant (e.g. shortest) solution gets a free handshake! ;)

 Ciao

 

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


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




-- 
Peace may sound simple—one beautiful word— but it requires everything
we have, every quality, every strength, every dream, every high ideal.
—Yehudi Menuhin (1916–1999), musician


pd-exam-01-marius.pd
Description: Binary data
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread Frank Barknecht
Hallo,
Sylvain Le Beux hat gesagt: // Sylvain Le Beux wrote:

 ok, well sorry. I just take the assignment as it, where you wrote a 
 list and too short.
 Thought you were making teh statement general, and lists were here just 
 as example. anyway, that was fun playing.

You're right in that the length of the list in the assignment is an
arbitrary choice and ideally a solution would extend to larger lists as
well. But any solution would have to be adapted to a certain list
length. I guess at least, but maybe someone proves me wrong? ;)

Ciao
-- 
Frank


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


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread Frank Barknecht
Hallo,
Marius Schebella hat gesagt: // Marius Schebella wrote:

 nice!! so I guess you should think of the the next little wise 
 assignment for tomorrow. except frank can top this and shake hands with 
 himself...

Of course I can't participate in my own exam. ;) 

The idea for this task actually comes from real life patching: 

I recently had to patch this little idiom myself (or rather the harder
one from the new Exam 02) when doing a sample player which accepts lists
composed of: 

table-name gain speed start position duration

I wanted to provide defaults for all parameters except the table-name:
gain=1, speed=1, start=0, duration=0 (for play all).

Ciao
-- 
Frank Barknecht

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


Re: [PD] Pd exam 01: complete the list

2008-11-25 Thread Jack

Based on the same patch i send before (ex. 2).
I know this not the shortest solution :)
++

Jack



pd-exam-01.pd
Description: Binary data


Le 25 nov. 08 à 23:10, Frank Barknecht a écrit :


Hallo,

attached is a little assignment for aspiring Pd users. The most
elegant (e.g. shortest) solution gets a free handshake! ;)

Ciao
--  
 Frank BarknechtDo You RjDj.me?  _  
__footils.org__pd- 
exam-01.pd___

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


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