[PD] store value of any type

2013-07-04 Thread yvan volochine

hi all,

I'd like to store a value which can be of any type but I don't remember 
if that's even possible.. something like [value foo] but that would work 
for integer, list, or anything else like for [foo bar 123(


is there a vanilla object for that?

cheers,
y

--
http://yvanvolochine.com
http://soundcloud.com/yvanvolochine
http://soundcloud.com/elgusanorojo
http://vimeo.com/yv

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


Re: [PD] store value of any type

2013-07-04 Thread Miller Puckette
If it's just local, the list object will do it (floats and symbols are
just one-element lists).

If you want something that (like 'value') can be accessed by name or
pointer elsewhere in the patch, you might want the text object (in git
repo, upcoming for version 0.45).  If you're insteested in trying it and
don't want to compile your own write back and I can put out a test release -
there's a bunch still to do but it seems to be working OK.

cheers
M

On Thu, Jul 04, 2013 at 09:50:46PM +0200, yvan volochine wrote:
 hi all,
 
 I'd like to store a value which can be of any type but I don't
 remember if that's even possible.. something like [value foo] but
 that would work for integer, list, or anything else like for [foo
 bar 123(
 
 is there a vanilla object for that?
 
 cheers,
 y
 
 -- 
 http://yvanvolochine.com
 http://soundcloud.com/yvanvolochine
 http://soundcloud.com/elgusanorojo
 http://vimeo.com/yv
 
 ___
 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] store value of any type

2013-07-04 Thread yvan volochine

hi Miller,


If it's just local, the list object will do it (floats and symbols are
just one-element lists).

If you want something that (like 'value') can be accessed by name or
pointer elsewhere in the patch, you might want the text object (in git
repo, upcoming for version 0.45).  If you're insteested in trying it and
don't want to compile your own write back and I can put out a test release -
there's a bunch still to do but it seems to be working OK.


I want it to be accessed by pointer somewhere else so I guess I'll give 
[text] a try..


thanks!
y

ps: pd would not build from master like 5 days ago on my machine 
(up-to-date archlinux) but I didn't folow recent commits so maybe that's 
fixed already..


--
http://yvanvolochine.com
http://soundcloud.com/yvanvolochine
http://soundcloud.com/elgusanorojo
http://vimeo.com/yv

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


Re: [PD] store value of any type

2013-07-04 Thread Lorenzo Sutton

Hi,

On 04/07/13 21:50, yvan volochine wrote:

hi all,

I'd like to store a value


Does that mean only within the scope of your session (then [list] 
should do..), or even through patch opening/closing?
In this second case some message manipulation trickery with [set( and 
[add2( could work depending on your scenario...


Lorenzo.

which can be of any type but I don't remember

if that's even possible.. something like [value foo] but that would work
for integer, list, or anything else like for [foo bar 123(

is there a vanilla object for that?

cheers,
y




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


Re: [PD] store value of any type

2013-07-04 Thread Miller Puckette
It might be fixed.  I use make -f makefile.gnu from pd/src to avoice
all the automake horror, and so had allowed the automake to get out of sync
witht he source - Iohannes patched that so things migth be back to normal
with automake too by now.

cheers
M

On Thu, Jul 04, 2013 at 10:08:36PM +0200, yvan volochine wrote:
 hi Miller,
 
 If it's just local, the list object will do it (floats and symbols are
 just one-element lists).
 
 If you want something that (like 'value') can be accessed by name or
 pointer elsewhere in the patch, you might want the text object (in git
 repo, upcoming for version 0.45).  If you're insteested in trying it and
 don't want to compile your own write back and I can put out a test release 
 -
 there's a bunch still to do but it seems to be working OK.
 
 I want it to be accessed by pointer somewhere else so I guess I'll
 give [text] a try..
 
 thanks!
 y
 
 ps: pd would not build from master like 5 days ago on my machine
 (up-to-date archlinux) but I didn't folow recent commits so maybe
 that's fixed already..
 
 -- 
 http://yvanvolochine.com
 http://soundcloud.com/yvanvolochine
 http://soundcloud.com/elgusanorojo
 http://vimeo.com/yv
 
 ___
 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] store value of any type

2013-07-04 Thread yvan volochine

On 04/07/13 22:23, Miller Puckette wrote:

It might be fixed.  I use make -f makefile.gnu from pd/src to avoice
all the automake horror, and so had allowed the automake to get out of sync
witht he source - Iohannes patched that so things migth be back to normal
with automake too by now.


it's still broken for me but I managed to build with the 
old-school-way(TM) :)


it seems that [text] help file is missing though..
would you mind giving me a quick `howto` for that object?

cheers,
y

--
http://yvanvolochine.com
http://soundcloud.com/yvanvolochine
http://soundcloud.com/elgusanorojo
http://vimeo.com/yv

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


Re: [PD] store value of any type

2013-07-04 Thread yvan volochine

On 04/07/13 22:54, Miller Puckette wrote:

Relly - you can make a [text] object but help comes up empty?

There should be a file doc/5.reference/text-object-help.pd ...


nope, trying to open its help gives me:
  sorry, couldn't find help patch for text-object.pd

and that might be because:
  $ ls /usr/local/lib/pd
  bin/

I built latest master with the following:
  $ cd src
  $ make -f makefile.gnu
  $ make
  $ sudo make install

y

--
http://yvanvolochine.com
http://soundcloud.com/yvanvolochine
http://soundcloud.com/elgusanorojo
http://vimeo.com/yv

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


Re: [PD] store value of any type

2013-07-04 Thread yvan volochine

On 04/07/13 22:13, Lorenzo Sutton wrote:

Does that mean only within the scope of your session (then [list]
should do..), or even through patch opening/closing?


yep [list] is the way to go..

thanks!
y

--
http://yvanvolochine.com
http://soundcloud.com/yvanvolochine
http://soundcloud.com/elgusanorojo
http://vimeo.com/yv

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


Re: [PD] store value of any type

2013-07-04 Thread Miller Puckette
Aha... I never 'make install' myself - I'd better go look at that.
Anyhow I think it shoud have been 'make -f makefile.gnu install' instead...

cheers
M

On Thu, Jul 04, 2013 at 10:56:58PM +0200, yvan volochine wrote:
 On 04/07/13 22:54, Miller Puckette wrote:
 Relly - you can make a [text] object but help comes up empty?
 
 There should be a file doc/5.reference/text-object-help.pd ...
 
 nope, trying to open its help gives me:
   sorry, couldn't find help patch for text-object.pd
 
 and that might be because:
   $ ls /usr/local/lib/pd
   bin/
 
 I built latest master with the following:
   $ cd src
   $ make -f makefile.gnu
   $ make
   $ sudo make install
 
 y
 
 -- 
 http://yvanvolochine.com
 http://soundcloud.com/yvanvolochine
 http://soundcloud.com/elgusanorojo
 http://vimeo.com/yv
 
 ___
 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] store value of any type

2013-07-04 Thread yvan volochine

On 04/07/13 23:08, Miller Puckette wrote:

Aha... I never 'make install' myself - I'd better go look at that.
Anyhow I think it shoud have been 'make -f makefile.gnu install' instead...


yes this works..
I'll give [text] a try, thanks!

maybe it's worth updating INSTALL.txt with your instructions while 
automake build is broken? =)


(I have to say that I agree with Iohannes about sticking to only one 
build process for better/easier maintenance, but that's another subject)


cheers,
y

--
http://yvanvolochine.com
http://soundcloud.com/yvanvolochine
http://soundcloud.com/elgusanorojo
http://vimeo.com/yv

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