hi all
i would like to rewrite the netpd-server patch using [tcpserver], but i cannot figure out how to convert 'list of number' messages into ascii messages. the OSC classes also from mrpeach seem to do the conversion internally. what i would need would something similar without the OSC functionality. is there something around?
roman
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
Roman Haefeli wrote:
hi all
i would like to rewrite the netpd-server patch using [tcpserver], but i cannot figure out how to convert 'list of number' messages into ascii messages. the OSC classes also from mrpeach seem to do the conversion internally. what i would need would something similar without the OSC functionality. is there something around?
Well if you had a functional [str] you could do that. Otherwise the moocow objects work, hmm... which don't seem to be in Pd version 0.40.3-extended-20080719...
Martin
On Tue, 2008-08-12 at 18:45 -0400, Martin Peach wrote:
Roman Haefeli wrote:
hi all
i would like to rewrite the netpd-server patch using [tcpserver], but i cannot figure out how to convert 'list of number' messages into ascii messages. the OSC classes also from mrpeach seem to do the conversion internally. what i would need would something similar without the OSC functionality. is there something around?
Well if you had a functional [str] you could do that.
it seems, that the conversion from string to any and vice versa is part of the OSC classes written by you. i don't see why the class, that _only_ does this conversion, needs a patched pd, when at the same time the OSC classes don't. would it be possible to have both: an efficient [str] for pd-extended and [str]
roman
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
Many of you knows that Hans-Christoph Steiner has done an extremely interesting piece of music using pd's data structure named Solitude.
Maybe some of you don't already know that all the pd patch are available. On the technical side, it is a unique chance to understand how to use data-structures. On the musical side it is also an unique chance to compose something new from that framework.
On http://www.graphicalscores.org you'll find an interview of Hans-Christoph Steiner about Solitude where you'll learn some more interesting details about it.
There is also a Wiki, if anyone there as done some "graphical score related stuff" don't hesitate to add a reference to your work or contact me directly.
all the best, Damien.
Roman Haefeli wrote:
On Tue, 2008-08-12 at 18:45 -0400, Martin Peach wrote:
Roman Haefeli wrote:
hi all
i would like to rewrite the netpd-server patch using [tcpserver], but i cannot figure out how to convert 'list of number' messages into ascii messages. the OSC classes also from mrpeach seem to do the conversion internally. what i would need would something similar without the OSC functionality. is there something around?
Well if you had a functional [str] you could do that.
it seems, that the conversion from string to any and vice versa is part of the OSC classes written by you. i don't see why the class, that _only_ does this conversion, needs a patched pd, when at the same time the OSC classes don't. would it be possible to have both: an efficient [str] for pd-extended and [str]
Yes, maybe a [serialize] and [unserialize] would be a good idea. [unserialize] would take a list of integer floats, interpret them as ascii, and convert it to a single symbol, and [serialize] would take a symbol and convert it to a list of integer floats on [0..255]. Converting floats and lists raises problems though (should a float be converted to its ascii or binary representation? How to tell if a list of floats is meant to be decoded as symbols or floats?).
I think [moocow/any2string] and [moocow/string2any] already do this, but I can't tell right now because they don't seem to be in my Pd 0.40.3-extended-20080719, or I'm not looking in the right place.
Martin
moin Martin, moin Roman,
On 2008-08-13 19:25:20, Martin Peach martin.peach@sympatico.ca appears to have written:
Roman Haefeli wrote:
On Tue, 2008-08-12 at 18:45 -0400, Martin Peach wrote:
Roman Haefeli wrote:
hi all
i would like to rewrite the netpd-server patch using [tcpserver], but i cannot figure out how to convert 'list of number' messages into ascii messages.
Yes, maybe a [serialize] and [unserialize] would be a good idea. [unserialize] would take a list of integer floats, interpret them as ascii, and convert it to a single symbol, and [serialize] would take a symbol and convert it to a list of integer floats on [0..255]. Converting floats and lists raises problems though (should a float be converted to its ascii or binary representation? How to tell if a list of floats is meant to be decoded as symbols or floats?).
I think [moocow/any2string] and [moocow/string2any] already do this,
yep, that's pretty much exactly what they do, except [string2any] outputs a list, rather than a single symbol (...but you can always patch it into [list2symbol] from zexy if you need a single symbol). for non-symbol arguments, [any2string] does whatever t_binbuf does (probably truncating floats, performing dollar-substitutions, etc...).
but I can't tell right now because they don't seem to be in my Pd 0.40.3-extended-20080719, or I'm not looking in the right place.
looking at the debian-stable and debian-testing debs from 2008-07-19, they ought to live in /usr/lib/pd/extra/moocow/any2string.pd_linux rsp. /usr/lib/pd/extra/moocow/any2string.pd_linux. the only pd-extended system on which my externals still don't build in windoof/mingw32, because that box is still using a broken version of make. what system are you using, Martin?
There are also (probably old and stale, possibly broken) copies in /usr/lib/pd/extra/flatspace, which should probably just get deleted (along with sprinkler). I assume these come from externals/build/src; I'll just go ahead and remove them and see if anyone hollers...
marmosets, Bryan
Bryan Jurish wrote:
moin Martin, moin Roman,
On 2008-08-13 19:25:20, Martin Peach martin.peach@sympatico.ca appears to have written:
Roman Haefeli wrote:
On Tue, 2008-08-12 at 18:45 -0400, Martin Peach wrote:
Roman Haefeli wrote:
hi all
i would like to rewrite the netpd-server patch using [tcpserver], but i cannot figure out how to convert 'list of number' messages into ascii messages.
Yes, maybe a [serialize] and [unserialize] would be a good idea. [unserialize] would take a list of integer floats, interpret them as ascii, and convert it to a single symbol, and [serialize] would take a symbol and convert it to a list of integer floats on [0..255]. Converting floats and lists raises problems though (should a float be converted to its ascii or binary representation? How to tell if a list of floats is meant to be decoded as symbols or floats?).
I think [moocow/any2string] and [moocow/string2any] already do this,
yep, that's pretty much exactly what they do, except [string2any] outputs a list, rather than a single symbol (...but you can always patch it into [list2symbol] from zexy if you need a single symbol). for non-symbol arguments, [any2string] does whatever t_binbuf does (probably truncating floats, performing dollar-substitutions, etc...).
but I can't tell right now because they don't seem to be in my Pd 0.40.3-extended-20080719, or I'm not looking in the right place.
looking at the debian-stable and debian-testing debs from 2008-07-19, they ought to live in /usr/lib/pd/extra/moocow/any2string.pd_linux rsp. /usr/lib/pd/extra/moocow/any2string.pd_linux. the only pd-extended system on which my externals still don't build in windoof/mingw32, because that box is still using a broken version of make. what system are you using, Martin?
Yes I was using WinXP. I also have an Ubuntu machine which does have the moocow objects. I wonder what it is about those objects that makes them difficult to compile on Windows...I just looked through any2string.c and it looks like an ordinary source file for a pd external, except for the debug macro A2SDEBUG and the PACKAGE_VERSION, which should probably be defined in a header file, not the makefile.
Martin
moin Martin,
On 2008-08-14 00:51:53, Martin Peach martin.peach@sympatico.ca appears to have written:
Bryan Jurish wrote:
but I can't tell right now because they don't seem to be in my Pd 0.40.3-extended-20080719, or I'm not looking in the right place.
looking at the debian-stable and debian-testing debs from 2008-07-19, they ought to live in /usr/lib/pd/extra/moocow/any2string.pd_linux rsp. /usr/lib/pd/extra/moocow/any2string.pd_linux. the only pd-extended system on which my externals still don't build in windoof/mingw32, because that box is still using a broken version of make. what system are you using, Martin?
Yes I was using WinXP. I also have an Ubuntu machine which does have the moocow objects. I wonder what it is about those objects that makes them difficult to compile on Windows...I just looked through any2string.c and it looks like an ordinary source file for a pd external, except for the debug macro A2SDEBUG and the PACKAGE_VERSION, which should probably be defined in a header file, not the makefile.
afaik, there's no reason the objects shouldn't compile; the problem is that my pd-extended build rules use GNU make macros, and the make on the PdLab winxp build machine is "broken" (v3.79), meaning it doesn't handle macros propertly. i'm also unsure whether "configure" & co will work on mingw32, but that I can test (later... currently on baby duty)...
marmosets, Bryan