Jamie,
The correct syntax for what you are looknig for is
expr size("$s2")
note the double quotes.
cheers, Shahrokh.
Date: Mon, 23 May 2005 14:45:56 +0100 From: Jamie Bullock jamie@postlude.co.uk Subject: [PD] expr table functions To: PD List pd-list@iem.at Message-ID: 1116855956.7943.8.camel@localhost.localdomain Content-Type: text/plain
Hi!
Has anyone successfully used the table functionality offered by [expr]? I can get simple table lookup to work as follows:
float x symbol y | | [expr $s2[$f1]]
But I can't get any of the table functions to work. For example, [expr size($s1)] gives the following console output:
error: expr: syntax error expr size($s1) ... couldn't create
I am using expr 0.4 with PD 0.37.1 on Linux.
Thanks,
Jamie
Hi!
I just tried as you suggested below. [expr] mysteriously replaces the double quotes with whitespace, and gives the same console error as before.
Regards, Jamie
On Mon, 2005-05-23 at 13:40 -0700, Shahrokh Yadegari wrote:
Jamie,
The correct syntax for what you are looknig for is
expr size("$s2")
note the double quotes.
cheers, Shahrokh.
Date: Mon, 23 May 2005 14:45:56 +0100 From: Jamie Bullock jamie@postlude.co.uk Subject: [PD] expr table functions To: PD List pd-list@iem.at Message-ID: 1116855956.7943.8.camel@localhost.localdomain Content-Type: text/plain
Hi!
Has anyone successfully used the table functionality offered by [expr]? I can get simple table lookup to work as follows:
float x symbol y | | [expr $s2[$f1]]
But I can't get any of the table functions to work. For example, [expr size($s1)] gives the following console output:
error: expr: syntax error expr size($s1) ... couldn't create
I am using expr 0.4 with PD 0.37.1 on Linux.
Thanks,
Jamie
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi,
I have attached a patch which works for me on Mac OS X. I tried a similar patch on linux and windows and they worked too. So I hope this helps.
BTW, while trying this I found a bug in expr, which will be fixed soon. The functions do not check for null pointers. So if you bang the expr in this example without setting $s2 first, pd will core dump.
Shahrokh.
On May 24, 2005, at 1:10 AM, Jamie Bullock wrote:
Hi!
I just tried as you suggested below. [expr] mysteriously replaces the double quotes with whitespace, and gives the same console error as before.
Regards, Jamie
On Mon, 2005-05-23 at 13:40 -0700, Shahrokh Yadegari wrote:
Jamie,
The correct syntax for what you are looknig for is
expr size("$s2")
note the double quotes.
cheers, Shahrokh.
Date: Mon, 23 May 2005 14:45:56 +0100 From: Jamie Bullock jamie@postlude.co.uk Subject: [PD] expr table functions To: PD List pd-list@iem.at Message-ID: 1116855956.7943.8.camel@localhost.localdomain Content-Type: text/plain
Hi!
Has anyone successfully used the table functionality offered by [expr]? I can get simple table lookup to work as follows:
float x symbol y | | [expr $s2[$f1]]
But I can't get any of the table functions to work. For example, [expr size($s1)] gives the following console output:
error: expr: syntax error expr size($s1) ... couldn't create
I am using expr 0.4 with PD 0.37.1 on Linux.
Thanks,
Jamie
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi,
Hmmm... that patch doesn't work on my system, it demonstrates the same behaviour I mention below i.e. the quotes disappear and the object is not created. Maybe it is an incompatibility between [expr] 0.4 and my version of PD - 0.37.1 devel?
Jamie
On Wed, 2005-05-25 at 00:25 -0700, Shahrokh Yadegari wrote:
Hi,
I have attached a patch which works for me on Mac OS X. I tried a similar patch on linux and windows and they worked too. So I hope this helps.
BTW, while trying this I found a bug in expr, which will be fixed soon. The functions do not check for null pointers. So if you bang the expr in this example without setting $s2 first, pd will core dump.
Shahrokh.
On May 24, 2005, at 1:10 AM, Jamie Bullock wrote:
Hi!
I just tried as you suggested below. [expr] mysteriously replaces the double quotes with whitespace, and gives the same console error as before.
Regards, Jamie
On Mon, 2005-05-23 at 13:40 -0700, Shahrokh Yadegari wrote:
Jamie,
The correct syntax for what you are looknig for is
expr size("$s2")
note the double quotes.
cheers, Shahrokh.
Date: Mon, 23 May 2005 14:45:56 +0100 From: Jamie Bullock jamie@postlude.co.uk Subject: [PD] expr table functions To: PD List pd-list@iem.at Message-ID: 1116855956.7943.8.camel@localhost.localdomain Content-Type: text/plain
Hi!
Has anyone successfully used the table functionality offered by [expr]? I can get simple table lookup to work as follows:
float x symbol y | | [expr $s2[$f1]]
But I can't get any of the table functions to work. For example, [expr size($s1)] gives the following console output:
error: expr: syntax error expr size($s1) ... couldn't create
I am using expr 0.4 with PD 0.37.1 on Linux.
Thanks,
Jamie
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
Hmmm... that patch doesn't work on my system, it demonstrates the same behaviour I mention below i.e. the quotes disappear and the object is not created. Maybe it is an incompatibility between [expr] 0.4 and my version of PD - 0.37.1 devel?
hm ... i don't think, that it's a devel issue ... the patch works fine on devel_0_38_2 ....
basically i'd suggest to use devel_0_38 instead of devel_0_37 ... it has fewer bugs and better latencies ...
cheers ... tim