Re: [PD] symbol2list leading zero
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-11-02 18:06, rolf meesters wrote: hi, i'm using [symbol2list -] | |[symbol( || | [list2symbol] on something like 00-ab-87-02. the result becomes 0ab872. so, i'm losing the leading zero's. in other words the symbol '00' is handled like a number, probably any symbol that looks like a number is immediately treated like that. which, in the case above is unexpected (at least for me). the idea is, that [symbol2list] breaks a symbol into a list of _atoms_, which are then evaluated the same way as ordinary lists (though i'm not sure whether it is implemented that way...) e.g. is you create a message [list 00 ab 87 02( the 1st and last element of the list will evaluate to numbers (and thus lose their leading zeros). does this come unexpected to you? however, it might be worth considering a symbol only mode of the object, that will never try to convert a token into a number but always keep it a symbol. would it then be necessary, working with texts, always to check if one's not accidentally losing zero's? btw, you are not losing any zeros. whether your pay cheque says 100,-€ or 100,-€ does not make any difference, when it comes to buying your marmite. those numbers are exactly the same. if you need 00-ab to split into two 2-character strings 00 and ab and want to use [symbol2list], you could simply convert all the numbers you got to 2-char strings by using [makefilename %02d] mfgasdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6yTuUACgkQkX2Xpv6ydvT0+gCg497mHIcEDjGpsxVMpf9RvSLe O8QAn3a0g1mcH/CC054qXyQrNdhYYgB8 =bjB6 -END PGP SIGNATURE- 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] using PD/GEM to generate timecode overlay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-11-03 03:14, Hans-Christoph Steiner wrote: You need to generate a symbol, then Pd won't strip the zeros off. You can do that with: [makefilename %02d] though for SSS you would need [makefilename %03d] That will give you just hh. You could do one of those per hh mm ss SSS, then combine them into a list and feed it thru [zexy/list2symbol :] i have to admit that for short fixed size list-to-symbol functionality i would use the super cow powers of the msgbox: [symbol $1:$2:$3.$4( will give you hh:mm:ss.SSS fgmasdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6yT6kACgkQkX2Xpv6ydvQa1wCfTh6QKUKwxb6jlwmdYyLe8JBk TDkAoM016VTkDgkyfAaX/TnnbhQpxX4w =E9Fm -END PGP SIGNATURE- 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] using PD/GEM to generate timecode overlay
Thanks! Works perfect. Next, I'm adding an Arduino to interface the projector. /Mikael Sent from my iPad On 3 Nov 2011, at 08:26, IOhannes m zmoelnig zmoel...@iem.at wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-11-03 03:14, Hans-Christoph Steiner wrote: You need to generate a symbol, then Pd won't strip the zeros off. You can do that with: [makefilename %02d] though for SSS you would need [makefilename %03d] That will give you just hh. You could do one of those per hh mm ss SSS, then combine them into a list and feed it thru [zexy/list2symbol :] i have to admit that for short fixed size list-to-symbol functionality i would use the super cow powers of the msgbox: [symbol $1:$2:$3.$4( will give you hh:mm:ss.SSS fgmasdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6yT6kACgkQkX2Xpv6ydvQa1wCfTh6QKUKwxb6jlwmdYyLe8JBk TDkAoM016VTkDgkyfAaX/TnnbhQpxX4w =E9Fm -END PGP SIGNATURE- ___ 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] how to capture window-related mouse-events when toxy is discontinued?
On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes jancs...@yahoo.com wrote: How does the cpu usage in my demo compare to your patch where you use a radiobutton? Here's a cpu load comparison of objects dragged continuously (on intel mac 2GHz): polygon in movable_box2.pd: 23 % polygon in 07.sequencer.pd (help browser): 16% radiobutton in moving_objects.pd: 12 % regular Pd slider: 13 % 2D geo in a gem window: 2.5% Your polygon method is plain vanilla Pd and that makes it attractive for a widely shared Pd patch. No risk of broken dependencies. But I am afraid it is too cpu-intensive, particularly on Windows. Thanks for sharing the idea though, it is inspiring. Katja ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] symbol2list leading zero
On Wed, Nov 2, 2011 at 7:28 PM, Hans-Christoph Steiner h...@at.or.atwrote: As long as its a float, it'll be converted to the simplest form. So 0 is the simplest form of 00. The same would happen with 0.. So if you need 00 in a symbol, you'll need generate it by some other method first, like sending the list [0 0( to [list2symbol]. understand i well then, that parsing an unknown text the character '0' runs the risk of disappearing when it's in a 'wrong' position. and in Pd i will never know when this has happened. If you are using this for MAC addresses or other similar numbers, they usually consider 0 and 00 the same thing. in WindowsXP register all the characters are needed in one string. rolf On Wednesday, November 02, 2011 6:06 PM, rolf meesters rolfmeest...@gmail.com wrote: hi, i'm using [symbol2list -] | |[symbol( || | [list2symbol] on something like 00-ab-87-02. the result becomes 0ab872. so, i'm losing the leading zero's. in other words the symbol '00' is handled like a number, probably any symbol that looks like a number is immediately treated like that. which, in the case above is unexpected (at least for me). would it then be necessary, working with texts, always to check if one's not accidentally losing zero's? rolf ___ 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] pduino test patch: old analog/digital controls
yo bonitos due to the pduino rewrite I've to reanimate this threat ;) I would like to remove the ambiguity and confusion about this old and new way of enabling the analog pins. old way of enabling the analog 0 pin is sending the following to the arduino object: [analogIns 0 1( enabling the same pin(analog 0) the new school way: [pinMode 14 analog( is this correct? if so what's a bit byte confusing for people is that in the new way pin 14 equals the analog 0 pin - guess this is a peculiarity of firmata? isn't there a possability to use f.e. A0-A5 for adressing the analog pins? thanks for info salutis ø On 06/17/2011 10:52 AM, olsen wrote: On 06/17/2011 12:24 AM, Matteo Sisti Sette wrote: On 06/16/2011 05:44 PM, olsen wrote: it's all in the arduino-help.pd by Gerda Strobl and Georg Holzmann! Which one??? Not the one that is distributed together with [arduino] and [arduino-test] at http://at.or.at/hans/pd/objects.html, right? yo it's in Pduino-0.5beta8 linked on this page in the last subpatch [pd SWITCHING-INPUTS] you'll find the apropriate messages. There I find the same analogIns messages that are supposed to be the old ones (but are the only ones I've found that work for analog pins with the latest version of Firmata) jep i agree they're the same - i think it's a matter of wrong denotation so due to my knowledge there's nothing like old and newer messages - the current 'contemporary' message for enabling the analog inputs is: [analogIns pinumber 1=on; 0=off( f.e. to enable analog pin 1: [analogIns 1 1( correct me if i'm wrong! i don't know why this is commented with (optional) I must have another version of the help patch, as I don't see such a comment right behind the [pd SWITCHING-INPUTS] is a comment - example of switching inputs on and off (optional) How are the messages you're talking about? i guess it's a firmata peculiarity that you've explicit have to enable the analog pins as in arduino they are enabled by default - but correct me if i'm wrong. Yes, I guess what you have to explicitly enable is to have the firmware _send_ the values to the computer. It would be undesirable to have a constant flood of values of all pins whether you use them or not. jep right so with firmata the analogIns have to be enabled explicitly to use them. i think the (optional) comment somehow makes it ambiguous. as told i'll try to consider this in the improvements we're working on! salutis ø -- ETs DNA will not be televised http://hasa-labs.org ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Interruption of audio / Loading sound into array
Hi, This might just be a graphics related problem. Just disable the graphical representation of the arrays (I'm not in front of Pd right now but If I remeber well, it's just a matter of clicking on the arrays and unchecking the graph on parent box). I had the very same problem under Win XP, it solved everything. Hope this helps. D.S http://www.flickr.com/photos/schafferdavid/ http://audioblog.arteradio.com/David_Schaffer/ From: i...@miamiwave.com To: sebastian.han...@gmx.de; pd-list@iem.at Date: Mon, 31 Oct 2011 19:24:20 +0100 Subject: Re: [PD] Interruption of audio / Loading sound into array [soundfiler] will always interrupt the audio stream. What I have done before was to stream the soundfile into a table with [readsf~]. You can upsample the subpatch with [block~] or [switch~] so it reads faster than realtime. Ingo -Ursprüngliche Nachricht- Von: pd-list-boun...@iem.at [mailto:pd-list-boun...@iem.at] Im Auftrag von Sebastian Hanusa Gesendet: Montag, 31. Oktober 2011 18:37 An: pd-list@iem.at Betreff: [PD] Interruption of audio / Loading sound into array Dear List! I have a problem, where hope the solution is so easy as it is complicated for me to find a solution: When I am loading a soundfile (about one 30 seconds, stereo, .aif, 16bit/44100Hz) to an array and simultaneously I have a quite simple audio prozess like replaying a second soundfile with [readsf] + for example a delay and a bandbass I get in the moment of loading to the array a dropout of the audio stream. I tryed to switch off the patch within the array for the moment of loading - but I get the same result. Is there a way to avoid this dropout? I am working with pd_extended 0.42.5 on a MacBook 2 GHz Intel Core 2 Duo, OS X 10.5.8 Thanks a lot for any help and with best regards, Sebastian ___ 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] Interruption of audio / Loading sound into array
This might just be a graphics related problem. It's not! Ingo Von: pd-list-boun...@iem.at [mailto:pd-list-boun...@iem.at] Im Auftrag von David Schaffer Gesendet: Donnerstag, 3. November 2011 12:31 An: pd list Betreff: Re: [PD] Interruption of audio / Loading sound into array Hi, This might just be a graphics related problem. Just disable the graphical representation of the arrays (I'm not in front of Pd right now but If I remeber well, it's just a matter of clicking on the arrays and unchecking the graph on parent box). I had the very same problem under Win XP, it solved everything. Hope this helps. D.S http://www.flickr.com/photos/schafferdavid/ http://audioblog.arteradio.com/David_Schaffer/ From: i...@miamiwave.com To: sebastian.han...@gmx.de; pd-list@iem.at Date: Mon, 31 Oct 2011 19:24:20 +0100 Subject: Re: [PD] Interruption of audio / Loading sound into array [soundfiler] will always interrupt the audio stream. What I have done before was to stream the soundfile into a table with [readsf~]. You can upsample the subpatch with [block~] or [switch~] so it reads faster than realtime. Ingo -Ursprüngliche Nachricht- Von: pd-list-boun...@iem.at [mailto:pd-list-boun...@iem.at] Im Auftrag von Sebastian Hanusa Gesendet: Montag, 31. Oktober 2011 18:37 An: pd-list@iem.at Betreff: [PD] Interruption of audio / Loading sound into array Dear List! I have a problem, where hope the solution is so easy as it is complicated for me to find a solution: When I am loading a soundfile (about one 30 seconds, stereo, .aif, 16bit/44100Hz) to an array and simultaneously I have a quite simple audio prozess like replaying a second soundfile with [readsf] + for example a delay and a bandbass I get in the moment of loading to the array a dropout of the audio stream. I tryed to switch off the patch within the array for the moment of loading - but I get the same result. Is there a way to avoid this dropout? I am working with pd_extended 0.42.5 on a MacBook 2 GHz Intel Core 2 Duo, OS X 10.5.8 Thanks a lot for any help and with best regards, Sebastian ___ 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] how to capture window-related mouse-events when toxy is discontinued?
- Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 6:10 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes jancs...@yahoo.com wrote: How does the cpu usage in my demo compare to your patch where you use a radiobutton? Here's a cpu load comparison of objects dragged continuously (on intel mac 2GHz): polygon in movable_box2.pd: 23 % polygon in 07.sequencer.pd (help browser): 16% radiobutton in moving_objects.pd: 12 % regular Pd slider: 13 % 2D geo in a gem window: 2.5% I just got intermittent rises up to 50% on a dual core 64-bit amd with all of the above. I imagine that the cpu load for movable_box2.pd is due to the number of points in the polygon. I think you could get a 20x20 draggable square with 8 coordinates-- that would be equal to the number of points in a radiobutton so maybe that would get down to a corresponding cpu load. I'll try some tweaks later to see if that works. -Jonathan Your polygon method is plain vanilla Pd and that makes it attractive for a widely shared Pd patch. No risk of broken dependencies. But I am afraid it is too cpu-intensive, particularly on Windows. Thanks for sharing the idea though, it is inspiring. Katja ___ 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] symbol2list leading zero
- Original Message - From: IOhannes m zmoelnig zmoel...@iem.at To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 4:20 AM Subject: Re: [PD] symbol2list leading zero -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-11-02 18:06, rolf meesters wrote: hi, i'm using [symbol2list -] | | [symbol( | | | [list2symbol] on something like 00-ab-87-02. the result becomes 0ab872. so, i'm losing the leading zero's. in other words the symbol '00' is handled like a number, probably any symbol that looks like a number is immediately treated like that. which, in the case above is unexpected (at least for me). the idea is, that [symbol2list] breaks a symbol into a list of _atoms_, which are then evaluated the same way as ordinary lists (though i'm not sure whether it is implemented that way...) e.g. is you create a message [list 00 ab 87 02( the 1st and last element of the list will evaluate to numbers (and thus lose their leading zeros). does this come unexpected to you? however, it might be worth considering a symbol only mode of the object, that will never try to convert a token into a number but always keep it a symbol. That would be useful. -Jonathan would it then be necessary, working with texts, always to check if one's not accidentally losing zero's? btw, you are not losing any zeros. whether your pay cheque says 100,-€ or 100,-€ does not make any difference, when it comes to buying your marmite. those numbers are exactly the same. if you need 00-ab to split into two 2-character strings 00 and ab and want to use [symbol2list], you could simply convert all the numbers you got to 2-char strings by using [makefilename %02d] mfgasdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6yTuUACgkQkX2Xpv6ydvT0+gCg497mHIcEDjGpsxVMpf9RvSLe O8QAn3a0g1mcH/CC054qXyQrNdhYYgB8 =bjB6 -END PGP SIGNATURE- ___ 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] how to capture window-related mouse-events when toxy is discontinued?
those spikes is what I was predicting with the graphic overloading of tcl/tk (through data structures, in this case). you could also try the following: make the selectable area around one corner (or middle) of the button: with a tiny bit more resolution, but less points in the template. if you want to keep the squares, it's even better, because it helps you selecting the structs. Or one other thing: maybe can the tcl/tk code be changed, so that it doesn't overload that fast? Reduce the redraw rate, or something else? (I have no idea about tcl/tk) Or change the output rate of the struct object? (this might not help much) About the background grid for instant jumps, an implementation of it in run mode is easy. I could try to give an example, but don't have any time for now. - Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 6:10 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes jancs...@yahoo.com wrote: How does the cpu usage in my demo compare to your patch where you use a radiobutton? Here's a cpu load comparison of objects dragged continuously (on intel mac 2GHz): polygon in movable_box2.pd: 23 % polygon in 07.sequencer.pd (help browser): 16% radiobutton in moving_objects.pd: 12 % regular Pd slider: 13 % 2D geo in a gem window: 2.5% I just got intermittent rises up to 50% on a dual core 64-bit amd with all of the above. I imagine that the cpu load for movable_box2.pd is due to the number of points in the polygon. I think you could get a 20x20 draggable square with 8 coordinates-- that would be equal to the number of points in a radiobutton so maybe that would get down to a corresponding cpu load. I'll try some tweaks later to see if that works. -Jonathan Your polygon method is plain vanilla Pd and that makes it attractive for a widely shared Pd patch. No risk of broken dependencies. But I am afraid it is too cpu-intensive, particularly on Windows. Thanks for sharing the idea though, it is inspiring. Katja ___ 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 -- Friedenstr. 58 10249 Berlin (Deutschland) Tel +49 30 42020091 | Mob +49 162 6843570 Studio +49 30 69509190 jmmmp...@googlemail.com | skype: jmmmpjmmmp ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] using PD/GEM to generate timecode overlay
On Nov 3, 2011, at 4:24 AM, IOhannes m zmoelnig wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-11-03 03:14, Hans-Christoph Steiner wrote: You need to generate a symbol, then Pd won't strip the zeros off. You can do that with: [makefilename %02d] though for SSS you would need [makefilename %03d] That will give you just hh. You could do one of those per hh mm ss SSS, then combine them into a list and feed it thru [zexy/list2symbol :] i have to admit that for short fixed size list-to-symbol functionality i would use the super cow powers of the msgbox: [symbol $1:$2:$3.$4( will give you hh:mm:ss.SSS Except where $1 is 01, for example, it'll give you 1:34:45.345 .hc Terrorism is not an enemy. It cannot be defeated. It's a tactic. It's about as sensible to say we declare war on night attacks and expect we're going to win that war. We're not going to win the war on terrorism.- retired U.S. Army general, William Odom ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] using PD/GEM to generate timecode overlay
Le 2011-11-02 à 22:14:00, Hans-Christoph Steiner a écrit : You need to generate a symbol, then Pd won't strip the zeros off. You can do that with: [makefilename %02d] That will give you just hh. You could do one of those per hh mm ss SSS, then combine them into a list and feed it thru [zexy/list2symbol :] Symbols are never freed, so, it's better to use several separate [text2d] to reduce the total number of symbols created. Otherwise, as tens of thousands of symbols are created, not only it takes RAM, but it also slows down the symbol table (this means it slows down any uses of gensym). [text2d] could be modified to also accept lists of ascii codes. In that case, [#sprintf] can do the job of multiple [makefilename]s (and more) without creating any symbol. You just need [#to_list] to make it a plain pd list. __ | Mathieu BOUCHARD - téléphone : +1.514.383.3801 - Montréal, QC___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pduino test patch: old analog/digital controls
That confusion originates from the Arduino numbering scheme itself, since it uses A0 for analog pins in analog mode, but then it uses a number when using the same pin for digital things. I think one way to represent this might be to allow the use of A0-A7 pin names in addition to the numbers, but then the confusing thing would be that the analog messages would then be [analog 14 0.2352(. So that's why I thought to try to use only the numbers, no A0-A7, and try to make that as understandable as possible. .hc On Nov 3, 2011, at 6:57 AM, olsen wrote: yo bonitos due to the pduino rewrite I've to reanimate this threat ;) I would like to remove the ambiguity and confusion about this old and new way of enabling the analog pins. old way of enabling the analog 0 pin is sending the following to the arduino object: [analogIns 0 1( enabling the same pin(analog 0) the new school way: [pinMode 14 analog( is this correct? if so what's a bit byte confusing for people is that in the new way pin 14 equals the analog 0 pin - guess this is a peculiarity of firmata? isn't there a possability to use f.e. A0-A5 for adressing the analog pins? thanks for info salutis ø On 06/17/2011 10:52 AM, olsen wrote: On 06/17/2011 12:24 AM, Matteo Sisti Sette wrote: On 06/16/2011 05:44 PM, olsen wrote: it's all in the arduino-help.pd by Gerda Strobl and Georg Holzmann! Which one??? Not the one that is distributed together with [arduino] and [arduino-test] at http://at.or.at/hans/pd/objects.html, right? yo it's in Pduino-0.5beta8 linked on this page in the last subpatch [pd SWITCHING-INPUTS] you'll find the apropriate messages. There I find the same analogIns messages that are supposed to be the old ones (but are the only ones I've found that work for analog pins with the latest version of Firmata) jep i agree they're the same - i think it's a matter of wrong denotation so due to my knowledge there's nothing like old and newer messages - the current 'contemporary' message for enabling the analog inputs is: [analogIns pinumber 1=on; 0=off( f.e. to enable analog pin 1: [analogIns 1 1( correct me if i'm wrong! i don't know why this is commented with (optional) I must have another version of the help patch, as I don't see such a comment right behind the [pd SWITCHING-INPUTS] is a comment - example of switching inputs on and off (optional) How are the messages you're talking about? i guess it's a firmata peculiarity that you've explicit have to enable the analog pins as in arduino they are enabled by default - but correct me if i'm wrong. Yes, I guess what you have to explicitly enable is to have the firmware _send_ the values to the computer. It would be undesirable to have a constant flood of values of all pins whether you use them or not. jep right so with firmata the analogIns have to be enabled explicitly to use them. i think the (optional) comment somehow makes it ambiguous. as told i'll try to consider this in the improvements we're working on! salutis ø -- ETs DNA will not be televised http://hasa-labs.org There is no way to peace, peace is the way. -A.J. Muste ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] using PD/GEM to generate timecode overlay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-11-03 15:32, Hans-Christoph Steiner wrote: [symbol $1:$2:$3.$4( will give you hh:mm:ss.SSS Except where $1 is 01, for example, it'll give you 1:34:45.345 no. my suggestion was to use the msgbox instead of [list2symbol :], not for the entire formatting. you still need to use [makefilename] if you use [list2symbol :] without first formatting the numbers using [makefilename], you will get 1:34:45.345 as well. fgamr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6yp8YACgkQkX2Xpv6ydvSsXACcDShAaDsERjtRcKfGrJK4Vzo1 6Y4AoJ/nxj/x/Rtn1GPMkz2GiDnHjaUr =3/yC -END PGP SIGNATURE- 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] using PD/GEM to generate timecode overlay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-11-03 15:37, Mathieu Bouchard wrote: Le 2011-11-02 à 22:14:00, Hans-Christoph Steiner a écrit : [text2d] could be modified to also accept lists of ascii codes. In that alas, it cannot, as it already has this functionality. the [text*] family accepts lists of unicode points (which is compatible with ascii), it's in the string method. fgamsdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6yqHQACgkQkX2Xpv6ydvTZ1ACg7660PLrOjQBajQbI0gH0sfeU zVwAnidrk2g04bHqpIf2cSNvyt3SLpHu =tS1W -END PGP SIGNATURE- 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] symbol2list leading zero
Le 2011-11-03 à 09:20:00, IOhannes m zmoelnig a écrit : On 2011-11-02 18:06, rolf meesters wrote: would it then be necessary, working with texts, always to check if one's not accidentally losing zero's? btw, you are not losing any zeros. whether your pay cheque says 100,-€ or 100,-€ does not make any difference, when it comes to buying your marmite. those numbers are exactly the same. And this is exactly not what Rolf is talking about. Surely you know the difference between string comparisons and number comparisons... If someone just wants to split lists instead of converting to floats and getting weird answers on pd-list, there's [gf/s2l], which does not do anything else than splitting (as it is like with any string-splitter outside of pd/max). __ | Mathieu BOUCHARD - téléphone : +1.514.383.3801 - Montréal, QC___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] using PD/GEM to generate timecode overlay
Le 2011-11-03 à 15:43:00, IOhannes m zmoelnig a écrit : On 2011-11-03 15:37, Mathieu Bouchard wrote: Le 2011-11-02 à 22:14:00, Hans-Christoph Steiner a écrit : [text2d] could be modified to also accept lists of ascii codes. In that alas, it cannot, as it already has this functionality. :) the [text*] family accepts lists of unicode points (which is compatible with ascii), it's in the string method. great. Now the only problem left is that [#sprintf] outputs lists-of-utf8-bytes instead of lists-of-utf8-points. I think that this is something that has to be modified in [#sprintf]. But the difference wouldn't be visible in case of plain ascii such as this timecode question. __ | Mathieu BOUCHARD - téléphone : +1.514.383.3801 - Montréal, QC___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] using PD/GEM to generate timecode overlay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-11-03 15:59, Mathieu Bouchard wrote: Le 2011-11-03 à 15:43:00, IOhannes m zmoelnig a écrit : On 2011-11-03 15:37, Mathieu Bouchard wrote: Le 2011-11-02 à 22:14:00, Hans-Christoph Steiner a écrit : [text2d] could be modified to also accept lists of ascii codes. In that alas, it cannot, as it already has this functionality. :) the [text*] family accepts lists of unicode points (which is compatible with ascii), it's in the string method. great. Now the only problem left is that [#sprintf] outputs lists-of-utf8-bytes instead of lists-of-utf8-points. I think that this is something that has at the pdcon09 in sao paolo, hans, maira and me created a little abstraction that decodes utf8-bytes to unicode-points. it can be found in [1] mfgasdr IOhannes [1] https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/iem/unicode -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6yrxIACgkQkX2Xpv6ydvRPuwCg+K8gnHr3qDX2CgIk5/hkGFaM k8QAn1GuOZShXBCGPQL0nSSk61ZmuS7f =+HxJ -END PGP SIGNATURE- 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] symbol2list leading zero
- Original Message - From: Mathieu Bouchard ma...@artengine.ca To: IOhannes m zmoelnig zmoel...@iem.at Cc: pd-list@iem.at Sent: Thursday, November 3, 2011 10:51 AM Subject: Re: [PD] symbol2list leading zero Le 2011-11-03 à 09:20:00, IOhannes m zmoelnig a écrit : On 2011-11-02 18:06, rolf meesters wrote: would it then be necessary, working with texts, always to check if one's not accidentally losing zero's? btw, you are not losing any zeros. whether your pay cheque says 100,-€ or 100,-€ does not make any difference, when it comes to buying your marmite. those numbers are exactly the same. And this is exactly not what Rolf is talking about. Surely you know the difference between string comparisons and number comparisons... If someone just wants to split lists instead of converting to floats and getting weird answers on pd-list, there's [gf/s2l], which does not do anything else than splitting (as it is like with any string-splitter outside of pd/max). Once split, is there a way to convert symbol-atom 19.95 to a float? -Jonathan __ | Mathieu BOUCHARD - téléphone : +1.514.383.3801 - Montréal, QC ___ 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] CUBEmixer documentation and binaural ambisonics
Hello list. I have two related questions. I wonder if somebody know if there is an english translation of the CUBEmixer documentation. Also, a couple of years ago I tried and liked very much an IEM package called bin-ambi or something similar (to make binaural ambisonics), but I can´t find it now. Thanks -- Oscar Pablo Di Liscia ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] how to capture window-related mouse-events when toxy is discontinued?
I doubt that Tcl/Tk's drawing code is being overloaded. Instead, try running path/to/pd -stderr -d 3 and you'll see that 'pd' is sending 'pd-gui' massive amounts of Tcl code to parse, compile, and execute. In the case of a move, this could be accomplished with one line of Tcl to tag everything you want to move, then one move command to let Tcl/Tk do the moving. .hc On Nov 3, 2011, at 10:31 AM, João Pais wrote: those spikes is what I was predicting with the graphic overloading of tcl/tk (through data structures, in this case). you could also try the following: make the selectable area around one corner (or middle) of the button: with a tiny bit more resolution, but less points in the template. if you want to keep the squares, it's even better, because it helps you selecting the structs. Or one other thing: maybe can the tcl/tk code be changed, so that it doesn't overload that fast? Reduce the redraw rate, or something else? (I have no idea about tcl/tk) Or change the output rate of the struct object? (this might not help much) About the background grid for instant jumps, an implementation of it in run mode is easy. I could try to give an example, but don't have any time for now. - Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 6:10 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes jancs...@yahoo.com wrote: How does the cpu usage in my demo compare to your patch where you use a radiobutton? Here's a cpu load comparison of objects dragged continuously (on intel mac 2GHz): polygon in movable_box2.pd: 23 % polygon in 07.sequencer.pd (help browser): 16% radiobutton in moving_objects.pd: 12 % regular Pd slider: 13 % 2D geo in a gem window: 2.5% I just got intermittent rises up to 50% on a dual core 64-bit amd with all of the above. I imagine that the cpu load for movable_box2.pd is due to the number of points in the polygon. I think you could get a 20x20 draggable square with 8 coordinates-- that would be equal to the number of points in a radiobutton so maybe that would get down to a corresponding cpu load. I'll try some tweaks later to see if that works. -Jonathan Your polygon method is plain vanilla Pd and that makes it attractive for a widely shared Pd patch. No risk of broken dependencies. But I am afraid it is too cpu-intensive, particularly on Windows. Thanks for sharing the idea though, it is inspiring. Katja ___ 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 -- Friedenstr. 58 10249 Berlin (Deutschland) Tel +49 30 42020091 | Mob +49 162 6843570 Studio +49 30 69509190 jmmmp...@googlemail.com | skype: jmmmpjmmmp ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list 'You people have such restrictive dress for women,’ she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day. - “Hijab Scene #2, by Mohja Kahf ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] very compressed chip sounds
Le 2011-10-14 à 17:39:00, martin brinkmann a écrit : improved version of my 1st one (got rid of the lame random), another feedback-based, and a fm-tuningfork with echo. I like the stereo of mnb_mininoise1a.pd and I also like how mnb_mininoise3quak.pd seems to be making chord-like and arpège-like things. __ | Mathieu BOUCHARD - téléphone : +1.514.383.3801 - Montréal, QC___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] how to capture window-related mouse-events when toxy is discontinued?
I believe Ivica made such a modification in Pd-l2ork-- whatever the case, moving many iemguis in Pd-l2ork is much snappier than in Vanilla or Pd-extended. But I haven't measured the cpu load. -Jonathan - Original Message - From: Hans-Christoph Steiner h...@at.or.at To: João Pais jmmmp...@googlemail.com Cc: katja katjavet...@gmail.com; pd-list@iem.at pd-list@iem.at; Jonathan Wilkes jancs...@yahoo.com Sent: Thursday, November 3, 2011 11:07 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? I doubt that Tcl/Tk's drawing code is being overloaded. Instead, try running path/to/pd -stderr -d 3 and you'll see that 'pd' is sending 'pd-gui' massive amounts of Tcl code to parse, compile, and execute. In the case of a move, this could be accomplished with one line of Tcl to tag everything you want to move, then one move command to let Tcl/Tk do the moving. .hc On Nov 3, 2011, at 10:31 AM, João Pais wrote: those spikes is what I was predicting with the graphic overloading of tcl/tk (through data structures, in this case). you could also try the following: make the selectable area around one corner (or middle) of the button: with a tiny bit more resolution, but less points in the template. if you want to keep the squares, it's even better, because it helps you selecting the structs. Or one other thing: maybe can the tcl/tk code be changed, so that it doesn't overload that fast? Reduce the redraw rate, or something else? (I have no idea about tcl/tk) Or change the output rate of the struct object? (this might not help much) About the background grid for instant jumps, an implementation of it in run mode is easy. I could try to give an example, but don't have any time for now. - Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 6:10 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes jancs...@yahoo.com wrote: How does the cpu usage in my demo compare to your patch where you use a radiobutton? Here's a cpu load comparison of objects dragged continuously (on intel mac 2GHz): polygon in movable_box2.pd: 23 % polygon in 07.sequencer.pd (help browser): 16% radiobutton in moving_objects.pd: 12 % regular Pd slider: 13 % 2D geo in a gem window: 2.5% I just got intermittent rises up to 50% on a dual core 64-bit amd with all of the above. I imagine that the cpu load for movable_box2.pd is due to the number of points in the polygon. I think you could get a 20x20 draggable square with 8 coordinates-- that would be equal to the number of points in a radiobutton so maybe that would get down to a corresponding cpu load. I'll try some tweaks later to see if that works. -Jonathan Your polygon method is plain vanilla Pd and that makes it attractive for a widely shared Pd patch. No risk of broken dependencies. But I am afraid it is too cpu-intensive, particularly on Windows. Thanks for sharing the idea though, it is inspiring. Katja ___ 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 -- Friedenstr. 58 10249 Berlin (Deutschland) Tel +49 30 42020091 | Mob +49 162 6843570 Studio +49 30 69509190 jmmmp...@googlemail.com | skype: jmmmpjmmmp ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list 'You people have such restrictive dress for women,’ she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day. - “Hijab Scene #2, by Mohja Kahf ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] using PD/GEM to generate timecode overlay
On 11/3/11 7:37 AM, Mathieu Bouchard wrote: Symbols are never freed, so, it's better to use several separate [text2d] to reduce the total number of symbols created. Otherwise, as tens of thousands of symbols are created, not only it takes RAM, but it also slows down the symbol table (this means it slows down any uses of gensym). Good point, Mathieu. Attached is a stopwatch I made a few years ago that practices symbol conservation. It could easily be modified to do timecode. Phil Stone pkstonemusic.com #N canvas 651 43 543 587 10; #X obj 0 1 cnv 15 150 30 empty empty empty 20 12 0 14 -228856 -66577 0; #X obj 41 2 cnv 15 12 28 empty \$0-hour_colon : 0 13 0 24 -1 -241291 0; #X obj 82 2 cnv 15 12 28 empty \$0-minute_colon : 0 13 0 24 -1 -241291 0; #X obj 2 2 cnv 15 14 28 empty empty empty 0 15 0 24 -1 -241291 0; #X obj 163 7 loadbang; #X obj 11 125 f 0; #X msg 98 527 label \$1; #X obj 98 548 s \$0-hours; #X msg 263 527 label \$1; #X obj 263 548 s \$0-minutes; #X msg 453 527 label \$1; #X obj 453 548 s \$0-seconds; #X obj 10 258 f 0; #X obj 10 284 mod 60; #X obj 10 340 f 0; #X obj 40 340 + 1; #X obj 10 361 mod 60; #X obj 10 316 select 0; #X obj 10 446 f 0; #X obj 40 446 + 1; #X obj 10 390 select 0; #X obj 10 467 mod 99; #X obj 10 490 makefilename %2d; #X msg 47 125 0; #X obj 176 29 r \$0-reset; #X msg 130 202 0; #X obj 10 232 spigot 0; #X msg 78 184 0; #X obj 11 185 t b a; #X msg 11 208 1; #X obj 261 346 symbol 0; #X obj 257 255 spigot 0; #X obj 163 54 t b b b b b b; #X msg 313 227 0; #X msg 283 227 1; #X obj 236 228 sel 1; #X text 278 53 seconds between restarts; #X obj 383 306 s \$0-r-onoff; #X msg 383 281 color \$1 0; #X msg 383 257 13; #X msg 413 257 16; #X obj 10 37 r \$0-onoff; #X obj 77 124 sel 0; #X obj 10 60 t f f f; #X obj 10 85 s \$0-color; #X obj 383 210 r \$0-color; #X obj 383 233 sel 0 1; #X text 35 206 skip 1st bang; #X obj 114 319 makefilename %02d; #X obj 53 2 cnv 15 30 28 empty \$0-minutes -- 2 15 0 24 -1 -241291 0; #X obj 95 2 cnv 15 54 28 empty \$0-seconds -- 2 15 0 24 -1 -241291 0; #X obj 3 18 bng 10 250 50 0 \$0-reset empty empty 17 7 0 10 -262144 -1 -1; #X obj 128 8 tgl 17 0 \$0-onoff \$0-r-onoff empty 17 7 0 10 -258699 -1 -262144 0 1; #N canvas 0 22 336 383 resetDisplay 0; #X obj 31 25 inlet; #X msg 30 308 label \$1; #X obj 30 335 s \$0-hours; #X msg 101 308 label \$1; #X obj 101 335 s \$0-minutes; #X msg 182 308 label \$1; #X obj 182 335 s \$0-seconds; #X obj 30 67 symbol --; #X obj 101 66 symbol --; #X msg 174 204 label \$1; #X msg 185 134 label \$1; #X obj 185 161 s \$0-hour_colon; #X obj 174 231 s \$0-minute_colon; #X obj 172 65 symbol :; #X connect 0 0 8 0; #X connect 0 0 7 0; #X connect 0 0 13 0; #X connect 1 0 2 0; #X connect 3 0 4 0; #X connect 5 0 6 0; #X connect 7 0 1 0; #X connect 8 0 5 0; #X connect 8 0 3 0; #X connect 9 0 12 0; #X connect 10 0 11 0; #X connect 13 0 10 0; #X connect 13 0 9 0; #X restore 160 167 pd resetDisplay; #X msg 165 527 label \$1; #X obj 165 548 s \$0-hour_colon; #X msg 343 527 label \$1; #X obj 164 504 symbol :; #X obj 341 424 symbol :; #X obj 343 548 s \$0-minute_colon; #X obj 10 415 t a b; #X msg 416 424 0; #X obj 257 279 t b b b b; #X obj 416 453 makefilename %02d; #X obj 88 389 makefilename %02d; #X obj 14 2 cnv 15 27 28 empty \$0-hours -- 0 15 0 24 -1 -241291 0 ; #X obj 40 258 + 1; #X obj 11 166 metro 1000; #X text 265 16 - wraps to zero at 100 hours; #X text 265 39 - doesn't remember partial; #X text 265 75 - doesn't leak symbol table memory; #X connect 4 0 32 0; #X connect 5 0 35 0; #X connect 5 0 67 0; #X connect 6 0 7 0; #X connect 8 0 9 0; #X connect 10 0 11 0; #X connect 12 0 13 0; #X connect 13 0 17 0; #X connect 13 0 48 0; #X connect 13 0 66 0; #X connect 14 0 16 0; #X connect 15 0 14 1; #X connect 16 0 15 0; #X connect 16 0 20 0; #X connect 16 0 64 0; #X connect 17 0 14 0; #X connect 18 0 21 0; #X connect 19 0 18 1; #X connect 20 0 60 0; #X connect 21 0 19 0; #X connect 21 0 22 0; #X connect 22 0 6 0; #X connect 23 0 67 0; #X connect 24 0 32 0; #X connect 25 0 15 0; #X connect 25 0 19 0; #X connect 25 0 66 0; #X connect 26 0 12 0; #X connect 27 0 26 1; #X connect 28 0 29 0; #X connect 28 1 26 0; #X connect 29 0 26 1; #X connect 30 0 6 0; #X connect 30 0 8 0; #X connect 30 0 54 0; #X connect 31 0 62 0; #X connect 32 0 5 0; #X connect 32 1 25 0; #X connect 32 2 53 0; #X connect 32 3 27 0; #X connect 32 4 34 0; #X connect 32 5 23 0; #X connect 33 0 31 1; #X connect 34 0 31 1; #X connect 35 0 31 0; #X connect 38 0 37 0; #X connect 39 0 38 0; #X connect 40 0 38 0; #X connect 41 0 43 0; #X connect 42 0 27 0; #X connect 43 0 44 0; #X connect 43 1 42 0; #X connect 43 2 5 0; #X connect 45 0 46 0; #X connect 46 0 39 0; #X connect 46 1 40 0; #X connect 48 0 10 0; #X connect 54 0 55 0; #X connect 56 0 59 0; #X connect 57 0 54 0; #X connect 58 0 56 0; #X connect 60 0 18 0; #X connect 60 1 57 0; #X connect 61 0 63 0; #X connect 62 0 33 0; #X connect 62 1 30 0; #X connect 62 2 58 0; #X connect 62 3 61 0; #X connect 63 0 10 0; #X connect
Re: [PD] how to capture window-related mouse-events when toxy is discontinued?
Indeed, pd-l2ork moves entire selection by tag, so instead of redrawing everything, out issues single tcl/tk command. The only thing that still redrawed every time when displaced is gop-enabled patcher. Ivica Ico Bukvic, D.M.A Composition, Music Technology Director, DISIS Interactive Sound Intermedia Studio Director, L2Ork Linux Laptop Orchestra Assistant Director, CCTAD Virginia Tech Department of Music Blacksburg, VA 24061-0240 (540) 231-6139 (540) 231-5034 (fax) disis.music.vt.edu l2ork.music.vt.edu ico.bukvic.net Jonathan Wilkes jancs...@yahoo.com wrote: I believe Ivica made such a modification in Pd-l2ork-- whatever the case, moving many iemguis in Pd-l2ork is much snappier than in Vanilla or Pd-extended. But I haven't measured the cpu load. -Jonathan - Original Message - From: Hans-Christoph Steiner h...@at.or.at To: João Pais jmmmp...@googlemail.com Cc: katja katjavet...@gmail.com; pd-list@iem.at pd-list@iem.at; Jonathan Wilkes jancs...@yahoo.com Sent: Thursday, November 3, 2011 11:07 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? I doubt that Tcl/Tk's drawing code is being overloaded. Instead, try running path/to/pd -stderr -d 3 and you'll see that 'pd' is sending 'pd-gui' massive amounts of Tcl code to parse, compile, and execute. In the case of a move, this could be accomplished with one line of Tcl to tag everything you want to move, then one move command to let Tcl/Tk do the moving. .hc On Nov 3, 2011, at 10:31 AM, João Pais wrote: those spikes is what I was predicting with the graphic overloading of tcl/tk (through data structures, in this case). you could also try the following: make the selectable area around one corner (or middle) of the button: with a tiny bit more resolution, but less points in the template. if you want to keep the squares, it's even better, because it helps you selecting the structs. Or one other thing: maybe can the tcl/tk code be changed, so that it doesn't overload that fast? Reduce the redraw rate, or something else? (I have no idea about tcl/tk) Or change the output rate of the struct object? (this might not help much) About the background grid for instant jumps, an implementation of it in run mode is easy. I could try to give an example, but don't have any time for now. - Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 6:10 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes jancs...@yahoo.com wrote: How does the cpu usage in my demo compare to your patch where you use a radiobutton? Here's a cpu load comparison of objects dragged continuously (on intel mac 2GHz): polygon in movable_box2.pd: 23 % polygon in 07.sequencer.pd (help browser): 16% radiobutton in moving_objects.pd: 12 % regular Pd slider: 13 % 2D geo in a gem window: 2.5% I just got intermittent rises up to 50% on a dual core 64-bit amd with all of the above. I imagine that the cpu load for movable_box2.pd is due to the number of points in the polygon. I think you could get a 20x20 draggable square with 8 coordinates-- that would be equal to the number of points in a radiobutton so maybe that would get down to a corresponding cpu load. I'll try some tweaks later to see if that works. -Jonathan Your polygon method is plain vanilla Pd and that makes it attractive for a widely shared Pd patch. No risk of broken dependencies. But I am afraid it is too cpu-intensive, particularly on Windows. Thanks for sharing the idea though, it is inspiring. Katja _ 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 -- Friedenstr. 58 10249 Berlin (Deutschland) Tel +49 30 42020091 | Mob +49 162 6843570 Studio +49 30 69509190 jmmmp...@googlemail.com | skype: jmmmpjmmmp _ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list _ 'You people have such restrictive dress for women,’ she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day. - “Hijab Scene #2, by Mohja Kahf _ 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 -
Re: [PD] how to capture window-related mouse-events when toxy is discontinued?
Hey Ico, That's great, we need to do a lot more of that. Can you point me to where these changes are so I can check them out? .hc On Nov 3, 2011, at 2:44 PM, Ivica Ico Bukvic wrote: Indeed, pd-l2ork moves entire selection by tag, so instead of redrawing everything, out issues single tcl/tk command. The only thing that still redrawed every time when displaced is gop-enabled patcher. Ivica Ico Bukvic, D.M.A Composition, Music Technology Director, DISIS Interactive Sound Intermedia Studio Director, L2Ork Linux Laptop Orchestra Assistant Director, CCTAD Virginia Tech Department of Music Blacksburg, VA 24061-0240 (540) 231-6139 (540) 231-5034 (fax) disis.music.vt.edu l2ork.music.vt.edu ico.bukvic.net Jonathan Wilkes jancs...@yahoo.com wrote: I believe Ivica made such a modification in Pd-l2ork-- whatever the case, moving many iemguis in Pd-l2ork is much snappier than in Vanilla or Pd-extended. But I haven't measured the cpu load. -Jonathan - Original Message - From: Hans-Christoph Steiner h...@at.or.at To: João Pais jmmmp...@googlemail.com Cc: katja katjavet...@gmail.com; pd-list@iem.at pd-list@iem.at; Jonathan Wilkes jancs...@yahoo.com Sent: Thursday, November 3, 2011 11:07 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? I doubt that Tcl/Tk's drawing code is being overloaded. Instead, try running path/to/pd -stderr -d 3 and you'll see that 'pd' is sending 'pd-gui' massive amounts of Tcl code to pa! rse, compile, and execute. In the case of a move, this could be accomplished with one line of Tcl to tag everything you want to move, then one move command to let Tcl/Tk do the moving. .hc On Nov 3, 2011, at 10:31 AM, João Pais wrote: those spikes is what I was predicting with the graphic overloading of tcl/tk (through data structures, in this case). you could also try the following: make the selectable area around one corner (or middle) of the button: with a tiny bit more resolution, but less points in the template. if you want to keep the squares, it's even better, because it helps you selecting the structs. Or one other thing: maybe can the tcl/tk code be changed, so that it doesn't overload that fast? Reduce the redraw rate, or something else? (I h! ave no idea about tcl/tk) Or change the output rate of the struct object? (this might not help much) About the background grid for instant jumps, an implementation of it in run mode is easy. I could try to give an example, but don't have any time for now. - Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 6:10 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes jancs...@yahoo.com wrote: How does the cpu usage in my demo! compare to your patch where you use a radiobutton? Here's a cpu load comparison of objects dragged continuously (on intel mac 2GHz): polygon in movable_box2.pd: 23 % polygon in 07.sequencer.pd (help browser): 16% radiobutton in moving_objects.pd: 12 % regular Pd slider: 13 % 2D geo in a gem window: 2.5% I just got intermittent rises up to 50% on a dual core 64-bit amd with all of the above. I imagine that the cpu load for movable_box2.pd is due to the number of points in the polygon. I think you could get a 20x20 draggable square with 8 coordinates-- that would be equal to the number of p! oints in a radiobutton so maybe that would get down to a corresponding cpu load. I'll try some tweaks later to see if that works. -Jonathan Your polygon method is plain vanilla Pd and that makes it attractive for a widely shared Pd patch. No risk of broken dependencies. But I am afraid it is too cpu-intensive, particularly on Windows. Thanks for sharing the idea though, it is inspiring. Katja 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 -- Friedenstr. 58 10249 Berlin (Deutschland) Tel +49 30 42020091 | Mob +49 162 6843570 Studio +49 30 69509190 jmmmp...@googlemail.com | skype: jmmmpjmmmp Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list 'You people have such restrictive dress for women,’ she said, hobbling away in ! three inch heels and panty hose to finish out another pink-collar temp pool day. - “Hijab Scene #2, by Mohja Kahf Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -
Re: [PD] Interruption of audio / Loading sound into array
Ingo wrote: This might just be a graphics related problem. It's not! it's more related to pd being monothreaded. It forces you to do the hard scheduling work. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Interruption of audio / Loading sound into array
On Nov 3, 2011, at 3:16 PM, Charles Goyard wrote: Ingo wrote: This might just be a graphics related problem. It's not! it's more related to pd being monothreaded. It forces you to do the hard scheduling work. Threading is not the only way to do concurrency. Think of all of those objects in your patch, they are all running in parallel. And you had to do nothing to make sure that they run in parallel, don't block each other, sync up, etc. .hc kill your television ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Interruption of audio / Loading sound into array
Le 2011-11-03 à 15:32:00, Hans-Christoph Steiner a écrit : Threading is not the only way to do concurrency. Think of all of those objects in your patch, they are all running in parallel. And you had to do nothing to make sure that they run in parallel, don't block each other, sync up, etc. Are you talking about Pd ? (you surely are not) __ | Mathieu BOUCHARD - téléphone : +1.514.383.3801 - Montréal, QC___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Interruption of audio / Loading sound into array
On Nov 3, 2011, at 3:44 PM, Mathieu Bouchard wrote: Le 2011-11-03 à 15:32:00, Hans-Christoph Steiner a écrit : Threading is not the only way to do concurrency. Think of all of those objects in your patch, they are all running in parallel. And you had to do nothing to make sure that they run in parallel, don't block each other, sync up, etc. Are you talking about Pd ? (you surely are not) It is only recently that threads started to run at actually the same time, and that is still not a guaranteed thing. So yes, we experience apps running at the same time but for the most part, there is a lot of time slicing involved, just like Pd. There is only one arm on the hard disk heads still, for example. .hc I hate it when they say, He gave his life for his country. Nobody gives their life for anything. We steal the lives of these kids. -Admiral Gene LeRocque ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] soundfiler is slow; readsf~ no filelength
How do I get the length of an aif file without using soundfiler? I've got an application that loads random aif and wav files from a chosen directory when triggered. I was using soundfiler to load a sound into an array where I could play it back with variable speed. When I ran two of these applications simultaneously, I noticed audio dropouts every time soundfiler would load a new sound. Soundfiler is not threaded, so I went looking for other people's solutions. Someone mentioned that Miller had suggested using readsf~ in an upsampled subpatch to read a sound into an array quickly. When you do this, how do you know how long to make your array to load in the sound? I suppose I could just make a preset length. I did see posts about wavinfo (buggy) and soundfile_info (only for wav files). Is there a way to get the sample length of aifs in Pd without soundfiler? This is an application I develop for someone else. It would not be appropriate for me to ask him to go through his entire collection of samples and change all the aifs to wavs. If I make the array an arbitrary length, he may be surprised when he starts trying to load in 2 minute files. OS 10.6.8 Pd 0.42.5-extended-rc5 Thanks, Samuel Burt ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] symbol2list leading zero
On Thu, 2011-11-03 at 10:51 -0400, Mathieu Bouchard wrote: Le 2011-11-03 à 09:20:00, IOhannes m zmoelnig a écrit : On 2011-11-02 18:06, rolf meesters wrote: would it then be necessary, working with texts, always to check if one's not accidentally losing zero's? btw, you are not losing any zeros. whether your pay cheque says 100,-€ or 100,-€ does not make any difference, when it comes to buying your marmite. those numbers are exactly the same. And this is exactly not what Rolf is talking about. Surely you know the difference between string comparisons and number comparisons... If someone just wants to split lists instead of converting to floats and getting weird answers on pd-list, there's [gf/s2l], which does not do anything else than splitting (as it is like with any string-splitter outside of pd/max). Yeah, and currently there is no way really to tell Pd whether something should be of the type symbol or float, so the fact that it assumes anything that looks like a number to be float makes sense (you can still force numbers to be symbols as few already suggested). And it does not make so much sense to compare Pd/Max to anything outside of Pd/Max. [symbol2list] behaves pretty sensible in its context, as pretty much anything in Pd converts 00023.1 or 23.10 to 23.1. Calling the previous answers 'weird' is inappropriate, IMHO. (BTW, I'm not saying I favor Pd's limited type casting capabilities) Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] symbol2list leading zero
On Thu, 2011-11-03 at 08:33 -0700, Jonathan Wilkes wrote: From: Mathieu Bouchard ma...@artengine.ca If someone just wants to split lists instead of converting to floats and getting weird answers on pd-list, there's [gf/s2l], which does not do anything else than splitting (as it is like with any string-splitter outside of pd/max). Once split, is there a way to convert symbol-atom 19.95 to a float? Two work-arounds come to my mind: 1) Send the symbol to [textfile] save it as a file, read the file again and output the result. 2) Send it through a [netsend] / [netreceive] pair. The former involves writing to disk, but the latter is even worse in that messes up depth-first order. Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] symbol2list leading zero
- Original Message - From: Roman Haefeli reduz...@gmail.com To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 4:36 PM Subject: Re: [PD] symbol2list leading zero On Thu, 2011-11-03 at 08:33 -0700, Jonathan Wilkes wrote: From: Mathieu Bouchard ma...@artengine.ca If someone just wants to split lists instead of converting to floats and getting weird answers on pd-list, there's [gf/s2l], which does not do anything else than splitting (as it is like with any string-splitter outside of pd/max). Once split, is there a way to convert symbol-atom 19.95 to a float? Two work-arounds come to my mind: 1) Send the symbol to [textfile] save it as a file, read the file again and output the result. 2) Send it through a [netsend] / [netreceive] pair. The former involves writing to disk, but the latter is even worse in that messes up depth-first order. I've written Pd Vanilla hacks that do it without writing to disk and posted them on the list. But I'm talking about GF solutions. -Jonathan Roman ___ 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] symbol2list leading zero
On Thu, 2011-11-03 at 13:43 -0700, Jonathan Wilkes wrote: - Original Message - From: Roman Haefeli reduz...@gmail.com To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 4:36 PM Subject: Re: [PD] symbol2list leading zero On Thu, 2011-11-03 at 08:33 -0700, Jonathan Wilkes wrote: From: Mathieu Bouchard ma...@artengine.ca If someone just wants to split lists instead of converting to floats and getting weird answers on pd-list, there's [gf/s2l], which does not do anything else than splitting (as it is like with any string-splitter outside of pd/max). Once split, is there a way to convert symbol-atom 19.95 to a float? Two work-arounds come to my mind: 1) Send the symbol to [textfile] save it as a file, read the file again and output the result. 2) Send it through a [netsend] / [netreceive] pair. The former involves writing to disk, but the latter is even worse in that messes up depth-first order. I've written Pd Vanilla hacks that do it without writing to disk Aha. and posted them on the list. Any pointers? Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] soundfiler is slow; readsf~ no filelength
I think there is iemlib/soundfile_info. .hc On Nov 3, 2011, at 4:07 PM, Samuel Burt wrote: How do I get the length of an aif file without using soundfiler? I've got an application that loads random aif and wav files from a chosen directory when triggered. I was using soundfiler to load a sound into an array where I could play it back with variable speed. When I ran two of these applications simultaneously, I noticed audio dropouts every time soundfiler would load a new sound. Soundfiler is not threaded, so I went looking for other people's solutions. Someone mentioned that Miller had suggested using readsf~ in an upsampled subpatch to read a sound into an array quickly. When you do this, how do you know how long to make your array to load in the sound? I suppose I could just make a preset length. I did see posts about wavinfo (buggy) and soundfile_info (only for wav files). Is there a way to get the sample length of aifs in Pd without soundfiler? This is an application I develop for someone else. It would not be appropriate for me to ask him to go through his entire collection of samples and change all the aifs to wavs. If I make the array an arbitrary length, he may be surprised when he starts trying to load in 2 minute files. OS 10.6.8 Pd 0.42.5-extended-rc5 Thanks, Samuel Burt ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list Computer science is no more related to the computer than astronomy is related to the telescope. -Edsger Dykstra ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] CUBEmixer documentation and binaural ambisonics
* oscar pablo di liscia odilis...@gmail.com [2011-11-03 16:40]: Hello list. I have two related questions. I wonder if somebody know if there is an english translation of the CUBEmixer documentation. did you already see this ressource: http://ambisonics.iem.at/xchange/products/cubemixer/documentation/tutorials/installing-cubemixer Also, a couple of years ago I tried and liked very much an IEM package called bin-ambi or something similar (to make binaural ambisonics), but I can´t find it now. should be in svn; http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/iem/iem_bin_ambi/ best, P Thanks -- Oscar Pablo Di Liscia ___ 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] Interruption of audio / Loading sound into array
Le 2011-11-03 à 15:52:00, Hans-Christoph Steiner a écrit : On Nov 3, 2011, at 3:44 PM, Mathieu Bouchard wrote: Le 2011-11-03 à 15:32:00, Hans-Christoph Steiner a écrit : Threading is not the only way to do concurrency. Think of all of those objects in your patch, they are all running in parallel. And you had to do nothing to make sure that they run in parallel, don't block each other, sync up, etc. Are you talking about Pd ? (you surely are not) It is only recently that threads started to run at actually the same time, and that is still not a guaranteed thing. So yes, we experience apps running at the same time but for the most part, there is a lot of time slicing involved, just like Pd. There is only one arm on the hard disk heads still, for example. Which objects of Pd are actually using threads ? It's not all of them. Think of what is taught as the execution order of Pd, and think about how it conflicts with the idea of running everything in parallel. Actually, among academics, the #1 reason for refusing to call Pd a dataflow language, is because they use a definition of «dataflow» that allows all messages to be threaded, whereas Pd is threading very few things. What is the goal of Miller's new [pd~] project ? It exists because Pd itself is not already doing it. __ | Mathieu BOUCHARD - téléphone : +1.514.383.3801 - Montréal, QC___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] symbol2list leading zero
Le 2011-11-03 à 21:09:00, Roman Haefeli a écrit : And it does not make so much sense to compare Pd/Max to anything outside of Pd/Max. Why ? __ | Mathieu BOUCHARD - téléphone : +1.514.383.3801 - Montréal, QC___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Fwd: Re: how to capture window-related mouse-events when toxy is discontinued?
Forgot to copy the list... Ivica Ico Bukvic, D.M.A Composition, Music Technology Director, DISIS Interactive Sound Intermedia Studio Director, L2Ork Linux Laptop Orchestra Assistant Director, CCTAD Virginia Tech Department of Music Blacksburg, VA 24061-0240 (540) 231-6139 (540) 231-5034 (fax) disis.music.vt.edu l2ork.music.vt.edu ico.bukvic.net Ivica Ico Bukvic i...@vt.edu wrote: The said changes are in pre-git tarballs. I think they are also listed in the changelog under a specific date which should make things a bit easier to isolate. That said, implementation alters widgetbehavior struct by adding one more entry and as such it breaks compatibility with gridflow unless recompiled from scratch using the new .h file. Even then there might be other incompatibilities. That said, I've encountered none, other than gridflow. Of course, other externals need to be recompiled as well (but no changes to their source are required). HTH Best wishes, Ico Ivica Ico Bukvic, D.M.A Composition, Music Technology Director, DISIS Interactive Sound Intermedia Studio Director, L2Ork Linux Laptop Orchestra Assistant Director, CCTAD Virginia Tech Department of Music Blacksburg, VA 24061-0240 (540) 231-6139 (540) 231-5034 (fax) disis.music.vt.edu l2ork.music.vt.edu ico.bukvic.net Hans-Christoph Steiner h...@at.or.at wrote: Hey Ico, That's great, we need to do a lot more of that. Can you point me to where these changes are so I can check them out? .hc On Nov 3, 2011, at 2:44 PM, Ivica Ico Bukvic wrote: Indeed, pd-l2ork moves entire selection by tag, so instead of redrawing everything, out issues single tcl/tk command. The only thing that still redrawed every time when displaced is gop-enabled patcher. Ivica Ico Bukvic, D.M.A Composition, Music Technology Director, DISIS Interactive Sound Intermedia Studio Director, L2Ork Linux Laptop Orchestra Assistant Director, CCTAD Virginia Tech Department of Music Blacksburg, VA 24061-0240 (540) 231-6139 (540) 231-5034 (fax) disis.music.vt.edu l2ork.music.vt.edu ico.bukvic.net Jonathan Wilkes jancs...@yahoo.com wrote: I believe Ivica made such a modification in Pd-l2ork-- whatever the case, moving many iemguis in Pd-l2ork is much snappier than in Vanilla or Pd-extended. But I haven't measured the cpu load. -Jonathan - Original Message - From: Hans-Christoph Steiner h...@at.or.at To: João Pais jmmmp...@googlemail.com Cc: katja katjavet...@gmail.com; pd-list@iem.at pd-list@iem.at; Jonathan Wilkes jancs...@yahoo.com Sent: Thursday, November 3, 2011 11:07 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? I doubt that Tcl/Tk's drawing code is being overloaded. Instead, try running path/to/pd -stderr -d 3 and you'll see that 'pd' is sending 'pd-gui' massive amounts of Tcl code to pa! rse, compile, and execute. In the case of a move, this could be accomplished with one line of Tcl to tag everything you want to move, then one move command to let Tcl/Tk do the moving. .hc On Nov 3, 2011, at 10:31 AM, João Pais wrote: those spikes is what I was predicting with the graphic overloading of tcl/tk (through data structures, in this case). you could also try the following: make the selectable area around one corner (or middle) of the button: with a tiny bit more resolution, but less points in the template. if you want to keep the squares, it's even better, because it helps you selecting the structs. Or one other thing: maybe can the tcl/tk code be changed, so that it doesn't overload that fast? Reduce the redraw rate, or something else? (I h! ave no idea about tcl/tk) Or change the output rate of the struct object? (this might not help much) About the background grid for instant jumps, an implementation of it in run mode is easy. I could try to give an example, but don't have any time for now. - Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 6:10 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes jancs...@yahoo.com wrote: How does the cpu usage in my demo! compare to your patch where you use a radiobutton? Here's a cpu load comparison of objects dragged continuously (on intel mac 2GHz): polygon in movable_box2.pd: 23 % polygon in 07.sequencer.pd (help browser): 16% radiobutton in moving_objects.pd: 12 % regular Pd slider: 13 % 2D geo in a gem window: 2.5% I just got intermittent rises up to 50% on a dual core 64-bit amd with all of the above. I imagine that the cpu load for movable_box2.pd is due to the number of points in the polygon. I think you could get a 20x20 draggable square with 8 coordinates-- that would be equal to the number of p! oints in a radiobutton so maybe that would get down to a corresponding cpu load. I'll try some tweaks
Re: [PD] soundfiler is slow; readsf~ no filelength
Thanks, Hans, but iemlib/soundfile_info is also giving me the error. soundfile_info_read-error: /filepath/growl.oeoeoe.01.aif is no RIFF-WAVE-file Sam On Nov 3, 2011, at 4:57 , Hans-Christoph Steiner wrote: I think there is iemlib/soundfile_info. .hc On Nov 3, 2011, at 4:07 PM, Samuel Burt wrote: How do I get the length of an aif file without using soundfiler? I've got an application that loads random aif and wav files from a chosen directory when triggered. I was using soundfiler to load a sound into an array where I could play it back with variable speed. When I ran two of these applications simultaneously, I noticed audio dropouts every time soundfiler would load a new sound. Soundfiler is not threaded, so I went looking for other people's solutions. Someone mentioned that Miller had suggested using readsf~ in an upsampled subpatch to read a sound into an array quickly. When you do this, how do you know how long to make your array to load in the sound? I suppose I could just make a preset length. I did see posts about wavinfo (buggy) and soundfile_info (only for wav files). Is there a way to get the sample length of aifs in Pd without soundfiler? This is an application I develop for someone else. It would not be appropriate for me to ask him to go through his entire collection of samples and change all the aifs to wavs. If I make the array an arbitrary length, he may be surprised when he starts trying to load in 2 minute files. OS 10.6.8 Pd 0.42.5-extended-rc5 Thanks, Samuel Burt ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list Computer science is no more related to the computer than astronomy is related to the telescope. -Edsger Dykstra ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] symbol2list leading zero
- Original Message - From: Roman Haefeli reduz...@gmail.com To: pd-list@iem.at pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 4:47 PM Subject: Re: [PD] symbol2list leading zero On Thu, 2011-11-03 at 13:43 -0700, Jonathan Wilkes wrote: - Original Message - From: Roman Haefeli reduz...@gmail.com To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 4:36 PM Subject: Re: [PD] symbol2list leading zero On Thu, 2011-11-03 at 08:33 -0700, Jonathan Wilkes wrote: From: Mathieu Bouchard ma...@artengine.ca If someone just wants to split lists instead of converting to floats and getting weird answers on pd-list, there's [gf/s2l], which does not do anything else than splitting (as it is like with any string-splitter outside of pd/max). Once split, is there a way to convert symbol-atom 19.95 to a float? Two work-arounds come to my mind: 1) Send the symbol to [textfile] save it as a file, read the file again and output the result. 2) Send it through a [netsend] / [netreceive] pair. The former involves writing to disk, but the latter is even worse in that messes up depth-first order. I've written Pd Vanilla hacks that do it without writing to disk Aha. and posted them on the list. Any pointers? Yes-- use an external. :) Mine is specific to breaking fractions into two floats: http://article.gmane.org/gmane.comp.multimedia.puredata.general/78523/match=fraction+symbol -Jonathan Roman ___ 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] expr alternative
2011/11/2 Jonathan Wilkes jancs...@yahoo.com From: Olivier B lamouraupeu...@gmail.com To: i go bananas hard@gmail.com Cc: PD-List pd-list@iem.at Sent: Wednesday, November 2, 2011 8:01 AM Subject: Re: [PD] expr alternative Hi list... Just to say that, even if my patchs are published under GPL, as I definitely need my lines to be straight (or not aliased), I would prefer [expr] to be under BSD, like Pd-Vanilla is... What does the license have to do with straight lines and aliasing? Sorry list... I've certainly done a private joke only to myself... :-/ I just wanted to say that I like my Pd patches to be tidy... to have their lines (or wires, I don't know the word used in english) perfectly straight... And for the same reason, it disturbs me to know that Pd-vanilla doesn't offers the same license for all of its code... it makes disorder... (but don't worry for me... every day, I'm getting better (damed, how it's hard to try to make humor in a foreign language :-p ) ) Cheers... 01ivier... -Jonathan Cheers... 01ivier 2011/10/31 i go bananas hard@gmail.com that's what i have just asked about. if you read back about halfway up the thread, max posted a mail saying that IRCAM are willing to change the license to LGPL. so i'm now wondering, that of course it is a hassle to contact all the original authors, but if none of them have moral views against BSD, then maybe that would be an easier course of action that code rewrite. On Tue, Nov 1, 2011 at 12:31 AM, Jonathan Wilkes jancs...@yahoo.com wrote: Wouldn't you need to get permission from Ircam, too? They are listed as a copyrightholder, for example, in vexp.c. There is also the following list of authors: * Authors: Maurizio De Cecco, Francois Dechelle, Enzo Maggi, Norbert Schnell. -Jonathan From: i go bananas hard@gmail.com To: Hans-Christoph Steiner h...@at.or.at Cc: PD-List pd-list@iem.at; Georg Bosch k...@stillavailable.com Sent: Monday, October 31, 2011 11:04 AM Subject: Re: [PD] expr alternative i just got a reply and they are reviewing my question, so hopefully we can find out if they currently allow LGPL. however, even if the do, i PERSONALLY still think a BSD [expr] would be much better. i know there were a lot of heated comments in this thread defending GPL, but if the author of the object would prefer to go with BSD, and if all that keeps him from doing the work is a little time and motivation, well, i can't really give him any time, but i can maybe help with motivation. Am i on my own if i try to do that? On Mon, Oct 31, 2011 at 11:58 PM, Hans-Christoph Steiner h...@at.or.at wrote: Another side of it is that the GPL and LGPL do not allow additional restrictions to be placed on the code. The VLC and GNU Go complaints as I understood them were specifically about the Apple App Store placing additional restrictions on the code. So that would affect LGPL and GPL alike. An app that includes some LGPL code might be a grey area since there is no possible expectation of producing a binary exactly like the original, since not all the code's licenses require that, so distributing the LGPL part separate might be enough. With the GPL, the whole app needs to be GPL compatible, so therefore there is an easy test: every user must be able to freely recreate the binary, and freely install, run, and modify it. That's something that the Apple App Store definitely restricts. I don't think this will really be resolved until Apple drops those terms or the FSF makes a statement on the LGPL in the Apple App Store. .hc On Oct 31, 2011, at 10:49 AM, i go bananas wrote: i just called a couple of apple numbers. first one had me on hold for 10 minutes so i gave up, 2nd one was useless. BUT third one was a rather helpful lady whose name i now have and she has issued me a 'case number' so my question is now listed in their system at least, so hopefully i can get the 'yay or nay' from apple on LGPL code in iOS applications. Also, i have already contacted a friend who works for a company making high profile iOS applications, and from what he is saying LGPL is OK. it seems the main problem with plain GPL is that apple doesn't want to release their own surrounding code, which the GPL would force them to do. As far as i can see, LGPL doesn't have this strict requirement. You just need to make the LGPL part available to anyone who wants it. Will keep hammering away here. LGPL sounds like it might be a better option, but i still reckon if Mr Yadegari is in favour of BSD, then that would be the best outcome. Personally i'd be happy to donate a couple of hundred dollars even to see a unified license for PD, but as this thread has shown, it sounds like i may get hippies camping on my lawn waving their GPL
Re: [PD] soundfiler is slow; readsf~ no filelength
Hi Sam, In the helpfile of [soundfile_info] you can read that it only works with .wav file. The error message says you are trying to read an .aif M Thanks, Hans, but iemlib/soundfile_info is also giving me the error. soundfile_info_read-error: /filepath/growl.oeoeoe.01.aif is no RIFF-WAVE-file Sam -- Marco Donnarumma Independent New Media and Sonic Arts Practitioner, Performer, Teacher ACE, Sound Design MSc by Research (ongoing) The University of Edinburgh, UK ~ Portfolio: http://marcodonnarumma.com Research: http://res.marcodonnarumma.com | http://www.thesaddj.com | http://www.flxer.net Director: http://www.liveperformersmeeting.net ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] complete source code of pd-extended
Dear all Is it possible to download all source code of pd_extended (like pd and all extras?) I get the source of pd with this : on terminal: I write git clone |git://pure-data.git.sourceforge.net/gitroot/pure-data/pure-data So It's only pd vanilla source, not all pd_extended source. | ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] complete source code of pd-extended
Hi. Start by reading this: http://puredata.info/docs/developer/WorkingWithPdExtendedSources Best, Ricardo Fabbri -- Linux registered user #175401 www.lems.brown.edu/~rfabbri labmacambira.sf.net On Thu, Nov 3, 2011 at 10:45 PM, Olivier Baudry olivierbaudry@hotmail.fr wrote: Dear all Is it possible to download all source code of pd_extended (like pd and all extras?) I get the source of pd with this : on terminal: I write git clone git://pure-data.git.sourceforge.net/gitroot/pure-data/pure-data So It's only pd vanilla source, not all pd_extended source. ___ 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] soundfiler is slow; readsf~ no filelength
Le 2011-11-03 à 19:04:00, Samuel Burt a écrit : Thanks, Hans, but iemlib/soundfile_info is also giving me the error. soundfile_info_read-error: /filepath/growl.oeoeoe.01.aif is no RIFF-WAVE-file I made this patch (attached) that does it either the long way (for current releases of GridFlow) or the short way (with a feature I re-added to GridFlow today). The trick is to open the file, skip the first 22 bytes, and then read the next 4 bytes as a 32-bit number with the most important byte first («big-endian»). However, because the command for reversing the order of the bytes was missing, I had to make my own converter by taking 4 separate bytes... Anyway. Now you have something that works, and it's easy to add to your patches. It does basically the same thing that [soundfiler] does, but without reading the actual sound. You need to install GridFlow from http://gridflow.ca/ __ | Mathieu BOUCHARD - téléphone : +1.514.383.3801 - Montréal, QC___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] how to capture window-related mouse-events when toxy is discontinued?
- Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Wednesday, November 2, 2011 7:58 PM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Wed, Nov 2, 2011 at 11:08 PM, Jonathan Wilkes jancs...@yahoo.com The attached allows the 50x30 polygon to be click-dragged anywhere within the polygon-- basically ds hotspots happen in a 10x10 quadrant within the polygon when an x/y pair is specified with a field variable, so I'm forcing hotspots for the entire polygon by spacing all field value coordinates no more than 10 pixels from each other. (You can overlay a simpler polygon if you want a cleaner-looking control surface.) That's a lovely demo Jonathan. The small squares have their own esthetic. This approach is less hacky than my moving radiobuttons. Do you use it in practice, as GUI elements? It is very heavy on cpu. Oh, wow-- lines, polygons, and text of scalars get deleted and recreated every time they get moved. This is what gets sent to the GUI for every motion event when dragging a scalar (in run mode here): .x291cf70.c delete curve291f238 .x291cf70.c delete curve291f238 .x291cf70.c create polygon\ 217 175\ 227 175\ 227 185\ 217 185\ -width 1.00\ -fill #ff -outline #00\ -tags curve291f238 .x291cf70.c create line\ 172 130\ 272 130\ 272 230\ 172 230\ 172 130\ -width 1.00\ -fill #00\ -tags curve291f238 I imagine if this were changed to tag the entire scalar and move it by tag, it would improve the performance quite a bit. -Jonathan Katja ___ 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