Hi list,
I haven't done much testing on this but it seems that:
[expr (2/3)*(1000/$f1)], [expr 2/3*(1000/$f1)] and [expr (1000/$f1)*(2/3)]
don't do anything (unless you input 0 in which case it complains about divide by zero) though [expr (1000/$f1)*2/3] works fine. I am using pd 0.37.1 devel (CCRMA) and expr 0.4.
Stefan Turner
___________________________________________________________ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
Hi Stefan, the reason is that (2/3) is treated as an integer division which yields 0. That's not really pd-like, where all numbers should be floats.... Anyway, try 2./3. best greetings, Thomas
----- Original Message ----- From: "Stefan Turner" stefan_turner@yahoo.co.uk To: pd-list@iem.at Sent: Saturday, January 15, 2005 10:48 PM Subject: [PD] expr bug
Hi list,
I haven't done much testing on this but it seems that:
[expr (2/3)*(1000/$f1)], [expr 2/3*(1000/$f1)] and [expr (1000/$f1)*(2/3)]
don't do anything (unless you input 0 in which case it complains about divide by zero) though [expr (1000/$f1)*2/3] works fine. I am using pd 0.37.1 devel (CCRMA) and expr 0.4.
Stefan Turner
ALL-NEW Yahoo! Messenger - all new features - even more fun!
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
--- Thomas Grill gr@grrrr.org wrote:
Hi Stefan, the reason is that (2/3) is treated as an integer division which yields 0. That's not really pd-like, where all numbers should be floats.... Anyway, try 2./3. best greetings, Thomas
Ok, very surprised I hadn't noticed that before. Thanks for clearing that up. As you say though, if the author is reading, maybe always using float division would be better..? I'm easily confused.
Stefan Turner
___________________________________________________________ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
Dear Thomas,
How does one compile py and dyn from cvs on a linux platform? I was used to the files config_platform.txt and build_platform.sh but can't find them anymore.
by advance thanks, vincent
Hi Vincent, flext and flext-based externals now use the flext build system which is more general and easier to maintain than the old makefiles. It's documented in flext/build.txt
In principle, you change into the flext folder and there (for pd under linux) you run bash build.sh lnx pd gcc to compile and bash build.sh lnx pd gcc install (as root) to install flext
For externals, it's exactly the same. You change into the external folder and there run bash ../flext/build.sh lnx pd gcc etc.etc. (provided that ../flext points into the directory where flext resides)
For both parts you might have to customize some configuration files. The build system will alert you in this case. If you have any questions that are not anwered by the documentation, please let me know
best greetings, Thomas
PS. Today's py/pyext in cvs has a severe bug, so you better wait for tomorrow's version
----- Original Message ----- From: "vincent rioux" vincent.rioux@no-log.org To: "Thomas Grill" gr@grrrr.org Cc: pd-list@iem.at Sent: Tuesday, January 18, 2005 4:01 PM Subject: [PD] dyn and py in cvs for linux
Dear Thomas,
How does one compile py and dyn from cvs on a linux platform? I was used to the files config_platform.txt and build_platform.sh but can't find them anymore.
by advance thanks, vincent
Hi Vincent, considering the latest thread on pd make troubles i'm very much interested in your experience using the flext build system.
best greetings, Thomas
----- Original Message ----- From: "vincent rioux" vincent.rioux@no-log.org To: "Thomas Grill" gr@grrrr.org Cc: pd-list@iem.at Sent: Tuesday, January 18, 2005 4:01 PM Subject: [PD] dyn and py in cvs for linux
Dear Thomas,
How does one compile py and dyn from cvs on a linux platform? I was used to the files config_platform.txt and build_platform.sh but can't find them anymore.
by advance thanks, vincent
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
Thomas Grill wrote:
Hi Vincent, considering the latest thread on pd make troubles i'm very much interested in your experience using the flext build system.
best greetings, Thomas
hi thomas,
i just tried to build pd-0.38-2 (from miller's site) and then use the flext build system from cvs. flext and dyn compiled and installed without apparent problems :-) thanks for this new way of compiling your externals, it's simpler
py compiled but pd complains: pd -nogui -lib py Pd: signal 4 ...?
vincent
Thomas Grill wrote:
Hi Vincent,
py compiled but pd complains: pd -nogui -lib py Pd: signal 4
sorry, can't reproduce it..... any other info about your setup/versions etc.?
yes sorry, for that pd is version 0.38-2 python is 2.3 system is ubuntu 4 py, flext from cvs i am going to try again on an other computer
greetings,
vincent
best greetings, Thomas
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list