Re: [PD] d_fat vs. pd_darwin (was Re: Gem 0.91-2 bugfix release)
On Fri, 2009-01-23 at 09:26 +0100, IOhannes m zmoelnig wrote: > Hans-Christoph Steiner wrote: > > On Jan 22, 2009, at 2:39 PM, IOhannes m zmoelnig wrote: > > > > > > I wasn't saying anything about GNU/Linux or Windows. I was talking > > Mac OS X. .pd_darwin is all that is needed. .d_fat, etc cause more > > troubles than the fix. > > but i was talking about architectures _and_ platforms (the later being > freebsd, linux, irix, windows, darwin, ...) > > i would like to see a naming convention that is valid on all these > platforms and where i can have files live side by side on a network > share. (e.g. .so is bad because i cannot distinguish between linux/i386, > linux/ppc, linux/x86_64 and eventually osx/fat. hi all let me drop my two cents here: i would like to emphasize IOhannes' point here, since i have been a few times in a situation with a group of people using different platforms, where a naming convention respecting platform and architecture would have been helpful. i mean, there is a real practical use in finding such a convention, whereas there seem to be only theoretical reasons for keeping the existing suffixes. roman ___ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Alpha+pix_film
i...@thesaddj.com wrote: Hi all, here is Marco, this is my first post.. glad to be here. i'm trying to use the [alpha] object to mix different videos using OpenGL. I followed tutorials, checked the forum and the list but i still have this problem: I can change the transparency of a geo without texture, and everything works also when i load images. But when i add [pix_film] or [pix_movie] and i load a video the geo itself disappears - if alpha is on - and appears again (displaying correctly the video) when alpha is off. this seems to be a problem with the video having an alpha-channel set to 0 - thus making the video totally transparent. the problem might be not the actual video-data but the video-importer. which platform are you on? I also tried to change [pix_texture] with [pix_texture2] and [rectangle] with other geos, but nothing... this is expected, as [pix_texture2] is (nowadays) really just an alias for [pix_texture] and all Geos should behave consistently. mfdasr IOhannes 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] Alpha+pix_film
i...@thesaddj.com wrote: HI everybody, thanks to all, i solved the issue. But is still not clear to me what's happening. I mixed the different suggestions you gave me (cause independently no one was working) and i got this: [gemhead] | [pix_film]/[colorspace RGB( | [pix_alpha] | [colorRGB] | [alpha] | [pix_texture] | [rectangle] it looks a bit weird but it's working and my cpu is drinking a coffee while i mix four videos of 160/200mb each. but I'm really keen to understand where was my problem... as Philippe said i have to send the [colorspace RGB( message first and then load videos. [pix_alpha] seems to be the obj making the work done, but well, [pix_alpha] will overwrite whatever alpha is in the channel. so if the original alpha is 0 (full transparency), [pix_alpha] will eventually raise this to 1 (full opacity), thus making your object not disappear. what bothers me a bit is the use of RGB rather than RGBA in the colorspace message anyway i had to add [colorRGB] to be able to change transparency. well, that was the original idea, wasn't it? @IOhannes: i'm on windows xp pro. do you think it could be because of this? don't know, it just makes it easier to debug...(e.g. on osx the default colorspace is YUV, having no alpha-channel at all, which would make it unlikely that each pixel would have an alpha of 0) which movie are you opening? an AVI, a QuickTime movie? could you share it for testing purposes? or does it happen with the example movies that come with Gem as well? what do you mean with video-importer? i mean the actual backend that reads the file and passes the frame to pix_film. e.g. the Gem code that accesses QuickTime/W32 or DirectShow or gmerlin. if the movie does not contain an alpha-channel, "somebody" has to provide values for alpha when doing RGBA; there might be a bug there... fgkafdrt, IOhannes 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] Alpha+pix_film
HI everybody, thanks to all, i solved the issue. But is still not clear to me what's happening. I mixed the different suggestions you gave me (cause independently no one was working) and i got this: [gemhead] | [pix_film]/[colorspace RGB( | [pix_alpha] | [colorRGB] | [alpha] | [pix_texture] | [rectangle] it looks a bit weird but it's working and my cpu is drinking a coffee while i mix four videos of 160/200mb each. but I'm really keen to understand where was my problem... as Philippe said i have to send the [colorspace RGB( message first and then load videos. [pix_alpha] seems to be the obj making the work done, but anyway i had to add [colorRGB] to be able to change transparency. @IOhannes: i'm on windows xp pro. do you think it could be because of this? what do you mean with video-importer? thanks.. Marco ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Alpha+pix_film
i use RGBA then :) thanks IOhannes for explainations, now i get it. i had the same issue with different video formats including all the movies that come with Gem, so maybe there might be a bug for real... please tell me if you need more infos about this.. Marco - Original Message Follows - From: IOhannes m zmoelnig To: i...@thesaddj.com Cc: pd-list@iem.at Subject: Re: [PD] Alpha+pix_film Date: Mon, 26 Jan 2009 11:13:18 +0100 > i...@thesaddj.com wrote: > > HI everybody, > > thanks to all, i solved the issue. But is still not > > clear to me what's happening. > > I mixed the different suggestions you gave me (cause > > independently no one was working) and i got this: > > > > [gemhead] > > | > > [pix_film]/[colorspace RGB( > > | > > [pix_alpha] > > | > > [colorRGB] > > | > > [alpha] > > | > > [pix_texture] > > | > > [rectangle] > > > > it looks a bit weird but it's working and my cpu is > > drinking a coffee while i mix four videos of 160/200mb > > each. but I'm really keen to understand where was my > > problem... as Philippe said i have to send the > > [colorspace RGB( message first and then load videos. > > [pix_alpha] seems to be the obj making the work done, > but > > well, [pix_alpha] will overwrite whatever alpha is in the > channel. so if the original alpha is 0 (full transparency) > , [pix_alpha] will eventually raise this to 1 (full > opacity), thus making your object not disappear. > > what bothers me a bit is the use of RGB rather than RGBA > in the colorspace message > > > > anyway i had to add [colorRGB] to be able to change > > transparency. > > well, that was the original idea, wasn't it? > > > @IOhannes: i'm on windows xp pro. do you think it could > > be because of this? > > don't know, it just makes it easier to debug...(e.g. on > osx the default colorspace is YUV, having no > alpha-channel at all, which would make it unlikely that > each pixel would have an alpha of 0) which movie are you > opening? an AVI, a QuickTime movie? > > could you share it for testing purposes? or does it happen > with the example movies that come with Gem as well? > > > what do you mean with video-importer? > > i mean the actual backend that reads the file and passes > the frame to pix_film. > e.g. the Gem code that accesses QuickTime/W32 or > DirectShow or gmerlin. if the movie does not contain an > alpha-channel, "somebody" has to provide values for alpha > when doing RGBA; there might be a bug there... > > fgkafdrt, > IOhannes > > > [Attachment: smime.p7s] ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] Controlling openDMXpro usb interface from pd-extended
Hello team. I've been searching for a way of controlling openDMXpro usb interface from pd-extended. All I've found that seems to be active is dmxusbpro ( http://www.nullmedium.de/dev/dmxusbpro/ ) Has anybody used this successfully on pd-extended on linux (ubuntu 8.10). Thanks for any feedback albesan ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] [PD-announce] Gem 0.91-2 bugfix release
Hans-Christoph Steiner wrote: On Jan 19, 2009, at 5:04 AM, IOhannes m zmoelnig wrote: IOhannes m zmoelnig wrote: i just put a bugfix release of Gem-0.91 online. or svn checkout from - https://pd-gem.svn.sourceforge.net/svnroot/pd-gem/tags/0.91-2/ having said that, it would be nice that any autobuilds that explicitely use 0.91(0,1) should be updated to use 0.91-2 fgasm,dr IOhannes I think the 'pd-extended' auto-build uses trunk for everything but 'pd', which uses the 'pd-extended/0.41.4' branch. Once I make the release cycle (soon), I'll make a branch of everything. Should I use that version of Gem for the release branch? did you already do the switch (libmpeg3 build errors popped up again)? i just realized it would be better to use https://pd-gem.svn.sourceforge.net/svnroot/pd-gem/branches/0.91/ since this one will eventually get even more bugfixes (and as a matter of fact already has some more in it: 0.91.3; though the libmpeg3 issue has probably not been backported yet) fgmasdr IOhannes 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] Controlling openDMXpro usb interface from pd-extended
hello Alberto, in the svn repository for pd externals you'll find this lib iem/dmx512/ it's a bit tricky to compile (see a previous discussion on this list with IOhannes) cd externals/iem/dmx512 wget ftp://ftp.cubic.org/pub/llg/dmx4linux-2.6.1.tar.gz tar xzf dmx4linux-2.6.1.tar.gz cp dmx4linux2.6.1.patch dmx4linux-2.6.1 cd dmx4linux-2.6.1 patch -p1 < dmx4linux2.6.1.patch and the usual ./configure make sudo make install then compiling the extension cd externals/iem/dmx512/src ./configure make *you might also want to try* http://sourceforge.net/projects/wtf2osc if you know a bit of python it will be easier it worked pretty fine for me on debian/ubuntu systems good luck, v Alberto Santos Bellido a écrit : > Hello team. > > I've been searching for a way of controlling openDMXpro usb interface > from pd-extended. > All I've found that seems to be active is dmxusbpro ( > http://www.nullmedium.de/dev/dmxusbpro/ ) > > Has anybody used this successfully on pd-extended on linux (ubuntu 8.10). > > Thanks for any feedback > > albesan > > ___ > 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] pd 0.42 problem with fa-101
Hi all :-) I tried the new pd vanilla and there seems to be a problem with my fa-101, which worked fine with all the previous versions of pd (on windows). The Problem: After i set the audio settings and close the window, nothing does seem to work, and when i reopen the window to see what the problem is, the name of the fa asio driver is gone. Furthermore, all the others are gone too! (like the realtek ..) Does anyone have similar problems? (i'm on vista at the moment..) thank you alabala -- ypatios ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] pd 0.42 problem with fa-101
well, i just made a test with an rme fireface 800 and i think i found what the problem is. i unchecked the "use callbacks" box in the audio settings and everything worked fine. so maybe there's a bug there... i'll leave it to the programmers from here.. ;) ciao 2009/1/26 ypatios > Hi all :-) > > I tried the new pd vanilla and there seems to be a problem with my fa-101, > which worked fine with all the previous versions of pd (on windows). > > The Problem: > After i set the audio settings and close the window, nothing does seem to > work, and when i reopen the window to see what the problem is, the name of > the fa asio driver is gone. Furthermore, all the others are gone too! (like > the realtek ..) > > Does anyone have similar problems? > (i'm on vista at the moment..) > > thank you > > > alabala > -- > ypatios > -- ypatios ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] Announce: pdstring v0.08 + locale v0.01
morning all, As of yesterday, a new version of [pdstring] is available on SVN and from me (http://www.ling.uni-potsdam.de/~moocow/projects/pd). Following the discussion ensuing from my recent "request for objections", I weaseled some wide-character support into the [pdstring] representation with new objects ([bytes2wchars], [wchars2bytes]) and abstractions ([any2wchars], [wchars2any]). The old [any2string] and [string2any] are now [any2bytes] and [bytes2any], with the old names still working as aliases. In order for the wide character support to do anything useful, you'll need to call setlocale(LC_CTYPE,...) to determine how byte strings are to be interpreted. For this, I've written a quick & dirty external [locale], which has stunning potential for disaster (see the help file for one scenario), but does what it should. I'm still toying with Miller's suggestion of array-based persistent strings, but I haven't found a good solution yet: either we access and re-interpret g_array's data vector (safe at runtime, but gets mangled on save & reload), or we're limited to 24-bit values which t_float can losslessly encode. The latter is more compatible with other pd tools ([tabread], [tabwrite], zexy's [tabset], [tabdump]), but the former would make wrapping C functions a lot more comfortable... ideas, anyone? marmosets, Bryan -- Bryan Jurish "There is *always* one more bug." jur...@ling.uni-potsdam.de -Lubarsky's Law of Cybernetic Entomology ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] [GEM] Compile error in OS X 10.4 G5
Hello, I am trying to compile GEM in OSX 10.4.11 2 x 2.66 dual core Intel Xeon G% Macintosh Machine. I get the following error, and don't really know where to go from there. It seems to be some problem with ImageMagick, although ./configure gives: image-support use ImageMagick : yes any suggestions will be welcomed, cheers, J here is the error: dyn137-110-112-184:~/JAIME/gem/src sanctuary$ make make -C Base g++ -c -g -O2 -fPIC -freg-struct-return -Os -falign-loops=32 -falign-functions=32 -falign-jumps=32 -funroll-loops -ffast-math -mmmx -fpascal-strings -I.. GemPixImageSave.cpp -o ../Objects/GemPixImageSave.o GemPixImageSave.cpp: In function 'int mem2image(imageStruct*, const char*, int)': GemPixImageSave.cpp:177: warning: 'FSMakeFSSpec' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:8967) GemPixImageSave.cpp:177: warning: 'FSMakeFSSpec' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:8967) GemPixImageSave.cpp: In function 'int mem2magickImage(imageStruct*, const char*)': GemPixImageSave.cpp:491: error: 'Magick' has not been declared GemPixImageSave.cpp:491: error: 'Image' was not declared in this scope GemPixImageSave.cpp:491: error: expected `;' before 'mimage' GemPixImageSave.cpp:494: error: 'mimage' was not declared in this scope GemPixImageSave.cpp:498: error: 'mimage' was not declared in this scope GemPixImageSave.cpp:501: error: 'Magick' has not been declared GemPixImageSave.cpp:501: error: expected type-specifier GemPixImageSave.cpp:501: error: expected `)' before 'e' GemPixImageSave.cpp:501: error: expected `{' before 'e' GemPixImageSave.cpp:501: error: 'e' was not declared in this scope GemPixImageSave.cpp:501: error: expected `;' before ')' token GemPixImageSave.cpp:506: error: expected `}' at end of input make[1]: *** [GemPixImageSave.o] Error 1 make: *** [Base] Error 2 -- Jaime E Oliver LR joliv...@ucsd.edu www.realidadvisual.org/jaimeoliver www-crca.ucsd.edu/ www.realidadvisual.org 858 202 1522 9168 Regents Rd. Apt. G La Jolla, CA 92037 USA ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] [PD-announce] Gem 0.91-2 bugfix release
On Jan 26, 2009, at 11:05 AM, IOhannes m zmoelnig wrote: > Hans-Christoph Steiner wrote: >> On Jan 19, 2009, at 5:04 AM, IOhannes m zmoelnig wrote: >>> IOhannes m zmoelnig wrote: i just put a bugfix release of Gem-0.91 online. or svn checkout from - https://pd-gem.svn.sourceforge.net/svnroot/pd-gem/tags/0.91-2/ >>> having said that, it would be nice that any autobuilds that >>> explicitely use 0.91(0,1) should be updated to use 0.91-2 >>> >>> fgasm,dr >>> IOhannes >> I think the 'pd-extended' auto-build uses trunk for everything but >> 'pd', which uses the 'pd-extended/0.41.4' branch. Once I make the >> release cycle (soon), I'll make a branch of everything. Should I >> use that version of Gem for the release branch? > > did you already do the switch (libmpeg3 build errors popped up again)? > i just realized it would be better to use > https://pd-gem.svn.sourceforge.net/svnroot/pd-gem/branches/0.91/ > since this one will eventually get even more bugfixes (and as a > matter of fact already has some more in it: 0.91.3; though the > libmpeg3 issue has probably not been backported yet) > > fgmasdr > IOhannes The pd-extended nightly build is indeed using the branch, not the tag: https://pd-gem.svn.sourceforge.net/svnroot/pd-gem/branches/0.91/Gem .hc kill your television ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] [GEM] Compile error in OS X 10.4 G5
Looks to me like Gem is not finding imageMagick. Maybe Gem is expecting a different version of ImageMagick than you have. .hc On Jan 26, 2009, at 5:23 PM, Jaime Oliver wrote: Hello, I am trying to compile GEM in OSX 10.4.11 2 x 2.66 dual core Intel Xeon G% Macintosh Machine. I get the following error, and don't really know where to go from there. It seems to be some problem with ImageMagick, although ./ configure gives: image-support use ImageMagick : yes any suggestions will be welcomed, cheers, J here is the error: dyn137-110-112-184:~/JAIME/gem/src sanctuary$ make make -C Base g++ -c -g -O2 -fPIC -freg-struct-return -Os -falign-loops=32 - falign-functions=32 -falign-jumps=32 -funroll-loops -ffast-math - mmmx -fpascal-strings -I.. GemPixImageSave.cpp -o ../Objects/ GemPixImageSave.o GemPixImageSave.cpp: In function 'int mem2image(imageStruct*, const char*, int)': GemPixImageSave.cpp:177: warning: 'FSMakeFSSpec' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/ Frameworks/CarbonCore.framework/Headers/Files.h:8967) GemPixImageSave.cpp:177: warning: 'FSMakeFSSpec' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/ Frameworks/CarbonCore.framework/Headers/Files.h:8967) GemPixImageSave.cpp: In function 'int mem2magickImage(imageStruct*, const char*)': GemPixImageSave.cpp:491: error: 'Magick' has not been declared GemPixImageSave.cpp:491: error: 'Image' was not declared in this scope GemPixImageSave.cpp:491: error: expected `;' before 'mimage' GemPixImageSave.cpp:494: error: 'mimage' was not declared in this scope GemPixImageSave.cpp:498: error: 'mimage' was not declared in this scope GemPixImageSave.cpp:501: error: 'Magick' has not been declared GemPixImageSave.cpp:501: error: expected type-specifier GemPixImageSave.cpp:501: error: expected `)' before 'e' GemPixImageSave.cpp:501: error: expected `{' before 'e' GemPixImageSave.cpp:501: error: 'e' was not declared in this scope GemPixImageSave.cpp:501: error: expected `;' before ')' token GemPixImageSave.cpp:506: error: expected `}' at end of input make[1]: *** [GemPixImageSave.o] Error 1 make: *** [Base] Error 2 -- Jaime E Oliver LR joliv...@ucsd.edu www.realidadvisual.org/jaimeoliver www-crca.ucsd.edu/ www.realidadvisual.org 858 202 1522 9168 Regents Rd. Apt. G La Jolla, CA 92037 USA ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list Man has survived hitherto because he was too ignorant to know how to realize his wishes. Now that he can realize them, he must either change them, or perish.-William Carlos Williams ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Announce: pdstring v0.08 + locale v0.01
I don't have a strong opinion on this, but I'd say stick to using the arrays how they are represented in Pd rather than how they are implemented in C. This will keep the library flexible and maintainable. It seems to me that this should something that is a more functionality. I guess that is Martin Peach's approach with his string/blob patch. And by the way, since I am in middle of rewriting the GUI, let me know what I can do to make sure that this stuff is well supported in the GUI. Tcl is fully UTF-8 as far as I know. It would be nice to have pd be UTF-8 as well. I don't really have a good idea how far pd is from being UTF-8. .hc On Jan 26, 2009, at 4:59 PM, Bryan Jurish wrote: > morning all, > > As of yesterday, a new version of [pdstring] is available on SVN and > from me (http://www.ling.uni-potsdam.de/~moocow/projects/pd). > Following > the discussion ensuing from my recent "request for objections", I > weaseled some wide-character support into the [pdstring] > representation > with new objects ([bytes2wchars], [wchars2bytes]) and abstractions > ([any2wchars], [wchars2any]). The old [any2string] and [string2any] > are > now [any2bytes] and [bytes2any], with the old names still working as > aliases. > > In order for the wide character support to do anything useful, you'll > need to call setlocale(LC_CTYPE,...) to determine how byte strings are > to be interpreted. For this, I've written a quick & dirty external > [locale], which has stunning potential for disaster (see the help file > for one scenario), but does what it should. > > I'm still toying with Miller's suggestion of array-based persistent > strings, but I haven't found a good solution yet: either we access and > re-interpret g_array's data vector (safe at runtime, but gets > mangled on > save & reload), or we're limited to 24-bit values which t_float can > losslessly encode. The latter is more compatible with other pd tools > ([tabread], [tabwrite], zexy's [tabset], [tabdump]), but the former > would make wrapping C functions a lot more comfortable... ideas, > anyone? > > marmosets, > Bryan > > -- > Bryan Jurish "There is *always* one more > bug." > jur...@ling.uni-potsdam.de -Lubarsky's Law of Cybernetic > Entomology > > ___ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list All information should be free. - the hacker ethic ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] iem_bin_ambi on OSX ... missing objects
All, I'm working through the windows iem_bin_ambi master patch trying to get it all working on OSX ... I have a list of missing objects, just wondering if anyone could help me track down where I can get them. Missing objects: [parent1022] [parent1027] [parent1034] ... are these some kind of dynamic object? [itrax2] ... a head tracking device driver? [spec2*~] [spec2+~] [spec2-~] ... ? Etienne ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] Question on [struct]'s
Hello all, I am working on some stuff with structs, and was wondering about the types of data that can be stored in a struct. From the documentation, it appears that you can have fields in the struct that are for 'symbol's, except that when I tried to use them, it gave me an error something like "float expected"... does this mean that struct's can't have symbols in them? Also, have lists been implemented? I have not tried to work with them, but I figured that I could kill two birds with one question (well, actually two, but who's counting...)... Mike -- 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-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Question on [struct]'s
Symbols can be used with the -symbol flag like: [set -symbol struct_name var] They can't be used in [append]. Also note that if you click and drag a symbol, it outputs the message "drawnumber_motion: symbol" to the console for every pixel you move the mouse. -Jonathan --- On Tue, 1/27/09, Mike McGonagle wrote: > From: Mike McGonagle > Subject: [PD] Question on [struct]'s > To: "the mailinglist PureData -" > Date: Tuesday, January 27, 2009, 2:28 AM > Hello all, > > I am working on some stuff with structs, and was wondering > about the > types of data that can be stored in a struct. From the > documentation, > it appears that you can have fields in the struct that are > for > 'symbol's, except that when I tried to use them, it > gave me an error > something like "float expected"... does this mean > that struct's can't > have symbols in them? > > Also, have lists been implemented? I have not tried to work > with them, > but I figured that I could kill two birds with one question > (well, > actually two, but who's counting...)... > > Mike > > -- > 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-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] Outlet on 'struct' object
--- On Sat, 1/10/09, Mike McGonagle wrote: > From: Mike McGonagle > Subject: Re: [PD] Outlet on 'struct' object > To: pd-list@iem.at > Date: Saturday, January 10, 2009, 6:49 AM > Yeah, this is really nice. One thing I noticed was that if I > click and > hold directly over the drawn line connected to the active > float inlet, > you can drag and it sends a 'change' message, it > also redraws the line > by following the mouse. Is there anyway to get the mouse > coordinates > such that it can be used as input to control the struct > data? It would > be really nice if this type of thing could be abstracted to > allow for > a variable number of inlets to switch. > > Mike I made a mockup of how this could work using ds dummy-objects, which you can see in vswitch_mockup.pd. This just shows that when you pull the arrow, another inlet would have to be created inside the abstraction. I also made a vswitch abs that would work if you could associate dynamic patching with data structures. The necessary objects are comments in pd-inlet-template: [drawobj] and [drawconnect]. The idea would be that the object chain is created as an element of an instance of a ds, so you could plot an array then use [setsize] to create and destroy the objects as necessary. But test.pd reveals a bug: any ds object created (or made visible) after the abstraction loads will bleed through onto the parent. -Jonathan > > On Fri, Jan 9, 2009 at 10:29 PM, Luke Iannini > wrote: > > That's extremely nice - good stuff. I didn't > know GOP datastructures > > could be done so easily now; I remember it being > weirder. > > > > I'd love to start a collection of GUI objects like > this - looks like > > the "change" selector is working as well, so > perhaps an "advanced > > slider" can finally be done! Mind if I add it to > a "ds-gui" section > > in SVN? > > > > Thanks for sending it along > > Luke > > > > On Fri, Jan 9, 2009 at 4:30 PM, Jonathan Wilkes > wrote: > >> I made a clone of max's "gswitch" > using the click selector a while back. With 0.42, you can > click the gop window to switch inputs. > >> > >> > >> > >> --- On Sat, 1/10/09, Mike McGonagle > wrote: > >> > >>> From: Mike McGonagle > >>> Subject: Re: [PD] Outlet on 'struct' > object > >>> To: pd-list@iem.at > >>> Date: Saturday, January 10, 2009, 1:06 AM > >>> Ok, I tried it on the sequence example, and it > only seems to > >>> output > >>> stuff in Edit Mode. Is that correct? Plus, it > also seems to > >>> only > >>> output 'select' and 'deselect' > messages. It > >>> also seems to repeatedly > >>> output them when you 'select' and drag > an object. > >>> > >>> Is this a new feature? (I seem to remember > reading > >>> something about > >>> mouse events for structs in 42) Are there any > examples of > >>> how these > >>> are used? > >>> > >>> Mike > >>> > >>> On Fri, Jan 9, 2009 at 4:42 PM, Frank > Barknecht > >>> wrote: > >>> > Hallo, > >>> > Mike McGonagle hat gesagt: // Mike > McGonagle wrote: > >>> > > >>> >> I was just curious, and looking at > the source was > >>> not all that > >>> >> obvious, but does anyone know what > the outlet on a > >>> 'struct' object is > >>> >> used for? > >>> > > >>> > It reports selected and clicked (and > maybe more) data > >>> structure instances. > >>> > Connect a [print] to it and select some > objects to see > >>> the messages. The > >>> > outlet sends messages composed of a > selector and a > >>> gpointer, which you > >>> > can route to [get] objects for example. > It's > >>> pretty useful! > >>> > > >>> > Ciao > >>> > -- > >>> > Frank > >>> > > >>> > > ___ > >>> > 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-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-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list #N struct vgswitch float x float y float x0 symbol sname array inlets inlet-template array drawinlets drawinlet; #N struct inlet-template float num symbol list-obj symbol prepend-obj symbol send