Re: [PD] data-struct: (x:y) move object

2009-02-18 Thread Jonathan Wilkes



--- On Wed, 2/18/09, João Pais jmmmp...@googlemail.com wrote:

 From: João Pais jmmmp...@googlemail.com
 Subject: Re: [PD] data-struct: (x:y)  move object
 To: jancs...@yahoo.com, Frank Barknecht f...@footils.org, pd-list@iem.at
 Date: Wednesday, February 18, 2009, 2:03 AM
  In one of your tutorials, you asked about the
 sort message.  Have a look at 07.sequencer.pd. 
 If you open the synthesis subpatch, you'll see that
 pd-data is sent a sort message before sequencing.  This
 sorts the data so that the left-to-right order of the
 graphical objects on the screen reflects the order in which
 they will be traversed.  In this case it's a way of
 ensuring that the sounds match the visuals.
 
 did I? sorry, I didn't know. it was clear for me what
 sort is.

In your first tutorial, step 8, you have the question about sort: How is it 
useful?  But now I see I missed your definition of its behavior earlier in the 
patch.  Anyhow, the sequencer help patch shows a practical use for the sort 
message.


 
 
  As far as undocumented features, I don't know, but
 I just noticed there's a typo in the release notes:
  A sendwindow message forwards any
 message to the window contining the scalar currently pointed
 to.
  
  It's actually send-window (with a hyphen).
  [send-window vis 1(
  |
  [pointer]
 
 where did you find that information? I was looking for that
 file, and couldn't find it in pd-ext or pd-van. or is it
 only on svn or something?

It's part of the pd documentation (in doc/1.manual) that comes with pd-vanilla 
(and, I would assume, pd-ext): chapter 5.  Also check out section 2.9 on data 
structures if you haven't already.

-Jonathan


  

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


Re: [PD] data-struct: (x:y) move object

2009-02-17 Thread João Pais

are there any other still undocumented features? I already noticed that
struct outputs more than select/deselect - specially in pd-van.


I don't think, Pd-extended has different DS features than Pd vanilla.


I'm on extended+windows, and the latest available build is from july 08 -  
there the structs don't output the click values. but that might be back  
in order when HC replaces the windows build disk. but testing them with  
pd-van revealed a couple missing details.




(x:y) is documented in 4.data.structures/09.scaling.pd


yes, that was the tutorial I was speaking about and didn't clearly say.


I've made these tutorials to resume the possibilities of working with  
data-s. they're not too pedagogic, but I think it's understandable for  
non-beginners. is anything missing there?


And a question: arrays don't output the change separator?

jmp-data-structs-tut-2.pd
Description: Binary data


jmp-data-structs-tut-3.pd
Description: Binary data


jmp-data-structs-tut-1.pd
Description: Binary data
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] data-struct: (x:y) move object

2009-02-17 Thread João Pais
I think I've got it, thanks - if you want, check out the files I just sent  
to the list (although you don't need them).

This gui editor is way more complex than the one I've made some years ago.  
if you're on extended, look for [jmmmp/gui-edit].

and by the way, if you work a lot with data-s, you might be interested in  
my color catalogue patch - [jmmmp/pd-colors] - for both data-s and tk gui.  
(I guess I could update this to have the new colorpicker as well)

Joao

 --- On Tue, 2/17/09, João Pais jmmmp...@googlemail.com wrote:

 From: João Pais jmmmp...@googlemail.com
 Subject: Re: [PD] data-struct: (x:y)  move object
 To: Frank Barknecht f...@footils.org, pd-list@iem.at
 Date: Tuesday, February 17, 2009, 12:34 AM
  Maybe check out this:
 
 http://lists.puredata.info/pipermail/pd-list/2007-10/055597.html

 it didn't help that much. but then I noticed that there
 was a tutorial
 with it, so I could understand it better.

 are there any other still undocumented features? I already
 noticed that
 struct outputs more than select/deselect - specially in
 pd-van.

 Check here:
 http://article.gmane.org/gmane.comp.multimedia.puredata.general/55635/match=struct+outlet

 I made a gui editor that uses all of these except maybe displace.  It's  
 in the pal folder in ds-gui in SVN if you want to check it out (though  
 it's not documented very well).


-- 
Friedenstr. 58
10249 Berlin (Deutschland)
Tel +49 30 42020091 | Mob +49 162 6843570
jmmmp...@googlemail.com | skype: jmmmpjmmmp

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


Re: [PD] data-struct: (x:y) move object

2009-02-17 Thread João Pais
that reminds me of another thing: is it possible that someone who can't  
read code could understand which features were implemented in the data-s  
just by looking at the code? at least enough to get a hint and try it in  
pd? where is the data-s code?

 Hallo,
 João Pais hat gesagt: // João Pais wrote:

 Maybe check out this:
 http://lists.puredata.info/pipermail/pd-list/2007-10/055597.html

 it didn't help that much. but then I noticed that there was a tutorial
 with it, so I could understand it better.

 are there any other still undocumented features? I already noticed that
 struct outputs more than select/deselect - specially in pd-van.

 I don't think, Pd-extended has different DS features than Pd vanilla.

 (x:y) is documented in 4.data.structures/09.scaling.pd

 Ciao



-- 
Friedenstr. 58
10249 Berlin (Deutschland)
Tel +49 30 42020091 | Mob +49 162 6843570
jmmmp...@googlemail.com | skype: jmmmpjmmmp

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


Re: [PD] data-struct: (x:y) move object

2009-02-17 Thread dmotd
On Tuesday 17 February 2009 23:48:54 João Pais wrote:
 that reminds me of another thing: is it possible that someone who can't
 read code could understand which features were implemented in the data-s
 just by looking at the code? at least enough to get a hint and try it in
 pd? where is the data-s code?

in general anything that can be messaged with a symbol from a pd canvas to a 
pd internal (and visa versa) is allocated with the 'gensym' function. 

and code relevant to data-structures can be found here:
 g_array.c (for rendering of tables as well as DS scalars)
 g_scalar.c
 g_template.c
 g_traversal.c 

these are just my notes..

as far as i know, miller is the only developer working on DS code, i would 
love to be corrected however.. if anyone else can provide a developer 
reference for data-structures i would be much in debt.. 

ciao,

dmotd

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


Re: [PD] data-struct: (x:y) move object

2009-02-17 Thread Jonathan Wilkes
Thanks for the info on your patches, I'll check them out when I get a chance.

In one of your tutorials, you asked about the sort message.  Have a look at 
07.sequencer.pd.  If you open the synthesis subpatch, you'll see that pd-data 
is sent a sort message before sequencing.  This sorts the data so that the 
left-to-right order of the graphical objects on the screen reflects the order 
in which they will be traversed.  In this case it's a way of ensuring that the 
sounds match the visuals.

As far as undocumented features, I don't know, but I just noticed there's a 
typo in the release notes:
A sendwindow message forwards any message to the window contining the scalar 
currently pointed to.

It's actually send-window (with a hyphen).
[send-window vis 1(
|
[pointer]

-Jonathan

--- On Tue, 2/17/09, João Pais jmmmp...@googlemail.com wrote:

 From: João Pais jmmmp...@googlemail.com
 Subject: Re: [PD] data-struct: (x:y)  move object
 To: Frank Barknecht f...@footils.org, pd-list@iem.at
 Date: Tuesday, February 17, 2009, 2:21 PM
  are there any other still undocumented features? I
 already noticed that
  struct outputs more than select/deselect -
 specially in pd-van.
  
  I don't think, Pd-extended has different DS
 features than Pd vanilla.
 
 I'm on extended+windows, and the latest available build
 is from july 08 - there the structs don't output the
 click values. but that might be back in order
 when HC replaces the windows build disk. but testing them
 with pd-van revealed a couple missing details.
 
 
  (x:y) is documented in 4.data.structures/09.scaling.pd
 
 yes, that was the tutorial I was speaking about and
 didn't clearly say.
 
 
 I've made these tutorials to resume the
 possibilities of working with data-s. they're not too
 pedagogic, but I think it's understandable for
 non-beginners. is anything missing there?
 
 And a question: arrays don't output the
 change
 separator?___
 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] data-struct: (x:y) move object

2009-02-17 Thread João Pais
 In one of your tutorials, you asked about the sort message.  Have a  
 look at 07.sequencer.pd.  If you open the synthesis subpatch, you'll see  
 that pd-data is sent a sort message before sequencing.  This sorts the  
 data so that the left-to-right order of the graphical objects on the  
 screen reflects the order in which they will be traversed.  In this case  
 it's a way of ensuring that the sounds match the visuals.

did I? sorry, I didn't know. it was clear for me what sort is.


 As far as undocumented features, I don't know, but I just noticed  
 there's a typo in the release notes:
 A sendwindow message forwards any message to the window contining the  
 scalar currently pointed to.

 It's actually send-window (with a hyphen).
 [send-window vis 1(
 |
 [pointer]

where did you find that information? I was looking for that file, and  
couldn't find it in pd-ext or pd-van. or is it only on svn or something?

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


Re: [PD] data-struct: (x:y) move object

2009-02-16 Thread Jonathan Wilkes
--- On Tue, 2/17/09, João Pais jmmmp...@googlemail.com wrote:

 From: João Pais jmmmp...@googlemail.com
 Subject: Re: [PD] data-struct: (x:y)  move object
 To: Frank Barknecht f...@footils.org, pd-list@iem.at
 Date: Tuesday, February 17, 2009, 12:34 AM
  Maybe check out this:
 
 http://lists.puredata.info/pipermail/pd-list/2007-10/055597.html
 
 it didn't help that much. but then I noticed that there
 was a tutorial  
 with it, so I could understand it better.
 
 are there any other still undocumented features? I already
 noticed that  
 struct outputs more than select/deselect - specially in
 pd-van.

Check here:
http://article.gmane.org/gmane.comp.multimedia.puredata.general/55635/match=struct+outlet

I made a gui editor that uses all of these except maybe displace.  It's in the 
pal folder in ds-gui in SVN if you want to check it out (though it's not 
documented very well).


 
 ___
 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] data-struct: (x:y) move object

2009-02-16 Thread Frank Barknecht
Hallo,
João Pais hat gesagt: // João Pais wrote:

 Maybe check out this:
 http://lists.puredata.info/pipermail/pd-list/2007-10/055597.html

 it didn't help that much. but then I noticed that there was a tutorial  
 with it, so I could understand it better.

 are there any other still undocumented features? I already noticed that  
 struct outputs more than select/deselect - specially in pd-van.

I don't think, Pd-extended has different DS features than Pd vanilla.

(x:y) is documented in 4.data.structures/09.scaling.pd

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


[PD] data-struct: (x:y) move object

2009-02-08 Thread João Pais
Hi,

I'm looking to do something using data-s, but can't really get it, and  
don't have enough documentation around:

- how do the (x:y)(a:b) fields work? from what I've seen, you need a  
variable before, and x-y indicate the value of the variable, and a-b scale  
that position in the screen?

- I wanted to do a small object that moves around in a fixed area by  
click-grabing it (a small circle, or square, doesn't really matter). I  
supposed I should use the feature from the previous line for it?

Do you have any already made examples for what I'm looking for? The  
documentation in pd is still out of date on these things (as normal).


Thanks,

João Pais

-- 
Friedenstr. 58
10249 Berlin (Deutschland)
Tel +49 30 42020091 | Mob +49 162 6843570
jmmmp...@googlemail.com | skype: jmmmpjmmmp

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


Re: [PD] data-struct: (x:y) move object

2009-02-08 Thread Frank Barknecht
Hallo,
Jo?o Pais hat gesagt: // Jo?o Pais wrote:

 Hi,
 
 I'm looking to do something using data-s, but can't really get it, and  
 don't have enough documentation around:
 
 - how do the (x:y)(a:b) fields work? from what I've seen, you need a  
 variable before, and x-y indicate the value of the variable, and a-b scale  
 that position in the screen?
 
 - I wanted to do a small object that moves around in a fixed area by  
 click-grabing it (a small circle, or square, doesn't really matter). I  
 supposed I should use the feature from the previous line for it?
 
 Do you have any already made examples for what I'm looking for? The  
 documentation in pd is still out of date on these things (as normal).

Maybe check out this:
http://lists.puredata.info/pipermail/pd-list/2007-10/055597.html

Ciao
-- 
Frank

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