Hi, I have been away from this list for a while. Looking at the archives, I noticed there has been some questions about expr.
I have a new version of expr/expr~/fexpr~ (0.4test3) with many changes. I would appreciate hearing from anybody trying it before passing it to Miller to be integrated in the full release. I hope this release would address some of the raised concerns. I have not compiled this version for NT yet, and I suspect that it will not compile, specially due to the introduction of many new math functions. If you try it, let me know how it goes.
You can see the documentation and download the new version at:
http:/www.crca.ucsd.edu/~yadegari/expr.html
There are major changes to this version:
values defined by the "value" object can now be accessed like C variables. e.g. "expr 5 + xval", will look up the value of variable 'xval' (defined by "value" object) and add 5 to it
multiple expressions, separated by semicolon, resulting in multiple outlets, can be defined in a single expr/expr~/fexpr~ object
the if() function taking 3 arguments implemented: if (condition, IfTrue-expr, IfFalse-expr) for expr~ if the condition is a vector the condition is tested sample by sample
the previous values of the multiple outputs can be accessed by $y#[idx] where <#> is the number of the expression and <idx> is the index. New shorthand notations have been added for fexpr~ to make writing filter expressions easier: $x -> $x1[0] $x# -> $x#[0] e.g., $x2 -> $x2[0] $y -> $y1[-1] $y# -> $y#[-1] e.g., $y2 -> $y2[-1]
new math functions: cbrt - cube root erf - error function erfc - complementary error function expm1 - exponential minus 1, log1p - logarithm of 1 plus isinf - is the value infinite, finite - is the value finite isnan -- is the result a nan (Not a number) copysign - copy sign of a number ldexp - multiply floating-point number by integral power of 2 imodf - get signed integral value from floating-point number modf - get signed fractional value from floating-point number drem - floating-point remainder function
Thanks to Orm Finnendahl for sending in the following functions: fmod - floating-point remainder function ceil - ceiling function: smallest integral value not less than argument floor - largest integral value not greater than argument
Many of these changes were made so that one could use fexpr~ for solving non-linear differential equations. The help file (help-expr.pd) includes an example of generating chaotic signals using fexpr~ and Lorenz equations.
Enjoy, Shahrokh. sdy@ucsd.edu
hi there!
does anyone know of a way to get the ascii value for a character(message) in pd ? something like "ord" would do in perl ...
thanks, u
there is the ascseq (asciisequencer) object in cxc, which does approximately that. it output a string of characters given with input message as ascii values with a given delay between each element.
get it from http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pure-data/externals/cxc/
btw (for pd-dev), it would be good to enable the "download as tar.gz" feature in webcvs .. ?
[...]->[[PD] ascii value]->[02-08-22 12:47]
|hi there! | |does anyone know of a way to get the ascii value for a |character(message) in pd ? |something like "ord" would do in perl ... | |thanks, |u | |
On Thu, 22 Aug 2002, j.cl wrote:
btw (for pd-dev), it would be good to enable the "download as tar.gz" feature in webcvs .. ?
Yes, if you know how to do it. Go ahead, I have given administrator rights to every developer beeing part of the pure-data CVS project. I will be online this week, spending my holidays in the XDV cellars, I greatly appreciate help and suggestions for the CVS.
I will setup an autocompiler this week, still looking for someone who would do the autocompilation for Windows and Mac
Guenter
hi,
i'm trying to use PD on OSX and play midi files with the xeq package but i got this message at pd start-up:
could not open midi input device number 1: Host error. could not open midi output device number 1: Host error.
i guess my midi configuration is somewhat wrong for PD, could someone help me fixing this problem ?
regards,
jb
Hi jb,
type pd -listdev and hope you see your MIDI device show up...
cheers Miller
On Mon, Aug 26, 2002 at 05:28:58PM +0200, Pure Data Soup wrote:
hi,
i'm trying to use PD on OSX and play midi files with the xeq package but i got this message at pd start-up:
could not open midi input device number 1: Host error. could not open midi output device number 1: Host error.
i guess my midi configuration is somewhat wrong for PD, could someone help me fixing this problem ?
regards,
jb
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list