Hi there, just noticed that [cartopol~] outputs phases that are negative when they should be positive and vice versa.
this is in comparison to [cartopol] and even [atan2~] or [expr~ atan2($v2, $v1)]
cheers
I made a report as "nobody"
2011/12/14 Alexandre Torres Porres porres@gmail.com
Hi there, just noticed that [cartopol~] outputs phases that are negative when they should be positive and vice versa.
this is in comparison to [cartopol] and even [atan2~] or [expr~ atan2($v2, $v1)]
cheers
Le 2011-12-14 à 14:20:00, Alexandre Torres Porres a écrit :
Hi there, just noticed that [cartopol~] outputs phases that are negative when they should be positive and vice versa. this is in comparison to [cartopol] and even [atan2~] or [expr~ atan2($v2, $v1)]
Looking at the source code of [cartopol~] (miXed/cyclone/sickle/cartopol.c), you can see that it's doing the same as :
[expr~ hypot($v1,$v2) ; atan2($v2,$v1)].
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
nevertheless, output here is different, as I described cheers
2011/12/14 Mathieu Bouchard matju@artengine.ca
Le 2011-12-14 à 14:20:00, Alexandre Torres Porres a écrit :
Hi there, just noticed that [cartopol~] outputs phases that are negative
when they should be positive and vice versa. this is in comparison to [cartopol] and even [atan2~] or [expr~ atan2($v2, $v1)]
Looking at the source code of [cartopol~] (miXed/cyclone/sickle/**cartopol.c), you can see that it's doing the same as :
[expr~ hypot($v1,$v2) ; atan2($v2,$v1)].
______________________________**______________________________** __________ | Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
Le 2011-12-14 à 14:36:00, Alexandre Torres Porres a écrit :
nevertheless, output here is different, as I described
Wait, I missed an unexpected minus sign on a different line.
Yes, the result is different, because [cyclone/cartopol~] does this instead :
[expr~ hypot($v1,-$v2) ; atan2(-$v2,$v1)].
For hypot, sign and order of args does not matter, but for atan2, they do.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
I dont have "hypot" in expr, by the way... cheers
2011/12/14 Mathieu Bouchard matju@artengine.ca
Le 2011-12-14 à 14:36:00, Alexandre Torres Porres a écrit :
nevertheless, output here is different, as I described
Wait, I missed an unexpected minus sign on a different line.
Yes, the result is different, because [cyclone/cartopol~] does this instead :
[expr~ hypot($v1,-$v2) ; atan2(-$v2,$v1)].
For hypot, sign and order of args does not matter, but for atan2, they do.
______________________________**______________________________** __________ | Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
Le 2011-12-14 à 14:42:00, Alexandre Torres Porres a écrit :
I dont have "hypot" in expr, by the way...cheers
Oh, sorry. It's a standard libm function. It's also in [#expr]. But in [expr] or [expr~], you can also do it easily :
[expr~ sqrt($v1*$v1+$v2*$v2)]
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
by the way, [poltocar~] needs to be revised as well, since it's synchronized to [cartopol~]'s inverted phases. cheers
2011/12/14 Mathieu Bouchard matju@artengine.ca
Le 2011-12-14 à 14:42:00, Alexandre Torres Porres a écrit :
I dont have "hypot" in expr, by the way...cheers
Oh, sorry. It's a standard libm function. It's also in [#expr]. But in [expr] or [expr~], you can also do it easily :
[expr~ sqrt($v1*$v1+$v2*$v2)]
______________________________**______________________________** __________ | Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
It sounds like the best approach here might be to just make newer version of those objects that do it correctly. the 'cyclone' library's core goal is to be a clone of Max/MSP objects, so cartopol~ and poltocart~ from cyclone should behave just like Max/MSP's, bugs and all.
Other libraries have these objects with different names, like cart2pol.
.hc
On Dec 14, 2011, at 4:53 PM, Alexandre Torres Porres wrote:
by the way, [poltocar~] needs to be revised as well, since it's synchronized to [cartopol~]'s inverted phases. cheers
2011/12/14 Mathieu Bouchard matju@artengine.ca Le 2011-12-14 à 14:42:00, Alexandre Torres Porres a écrit :
I dont have "hypot" in expr, by the way...cheers
Oh, sorry. It's a standard libm function. It's also in [#expr]. But in [expr] or [expr~], you can also do it easily :
[expr~ sqrt($v1*$v1+$v2*$v2)]
| 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
If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of everyone, and the receiver cannot dispossess himself of it. - Thomas Jefferson
Did anyone confirm that these bugs exist in Max/MSP?
-Jonathan
From: Hans-Christoph Steiner hans@at.or.at To: Alexandre Torres Porres porres@gmail.com Cc: pd-lista puredata pd-list@iem.at Sent: Thursday, December 15, 2011 4:34 PM Subject: Re: [PD] cartopol~ outputs inverted phases (bug report)
It sounds like the best approach here might be to just make newer version of those objects that do it correctly. the 'cyclone' library's core goal is to be a clone of Max/MSP objects, so cartopol~ and poltocart~ from cyclone should behave just like Max/MSP's, bugs and all.
Other libraries have these objects with different names, like cart2pol.
.hc
On Dec 14, 2011, at 4:53 PM, Alexandre Torres Porres wrote:
by the way, [poltocar~] needs to be revised as well, since it's synchronized to [cartopol~]'s inverted phases.
cheers
2011/12/14 Mathieu Bouchard matju@artengine.ca
Le 2011-12-14 à 14:42:00, Alexandre Torres Porres a écrit :
I dont have "hypot" in expr, by the way...cheers
Oh, sorry. It's a standard libm function. It's also in [#expr]. But in [expr] or [expr~], you can also do it easily :
[expr~ sqrt($v1*$v1+$v2*$v2)]
______________________________________________________________________ | 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
If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of everyone, and the receiver cannot dispossess himself of it. - Thomas Jefferson
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I did a quick check and the results matched. Anyone can install the Max runtime and run the help patches, it doesn't cost money. You can even install it without the Pace copy protection evilness and the Runtime will work.
.hc
On Dec 15, 2011, at 3:04 PM, Jonathan Wilkes wrote:
Did anyone confirm that these bugs exist in Max/MSP?
-Jonathan
From: Hans-Christoph Steiner hans@at.or.at To: Alexandre Torres Porres porres@gmail.com Cc: pd-lista puredata pd-list@iem.at Sent: Thursday, December 15, 2011 4:34 PM Subject: Re: [PD] cartopol~ outputs inverted phases (bug report)
It sounds like the best approach here might be to just make newer version of those objects that do it correctly. the 'cyclone' library's core goal is to be a clone of Max/MSP objects, so cartopol~ and poltocart~ from cyclone should behave just like Max/MSP's, bugs and all.
Other libraries have these objects with different names, like cart2pol.
.hc
On Dec 14, 2011, at 4:53 PM, Alexandre Torres Porres wrote:
by the way, [poltocar~] needs to be revised as well, since it's synchronized to [cartopol~]'s inverted phases. cheers
2011/12/14 Mathieu Bouchard matju@artengine.ca Le 2011-12-14 à 14:42:00, Alexandre Torres Porres a écrit :
I dont have "hypot" in expr, by the way...cheers
Oh, sorry. It's a standard libm function. It's also in [#expr]. But in [expr] or [expr~], you can also do it easily :
[expr~ sqrt($v1*$v1+$v2*$v2)]
| 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
If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of everyone, and the receiver cannot dispossess himself of it. - Thomas Jefferson
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
There is no way to peace, peace is the way. -A.J. Muste
Yes, they match, no bug in MAX.
2011/12/15 Hans-Christoph Steiner hans@at.or.at
I did a quick check and the results matched. Anyone can install the Max runtime and run the help patches, it doesn't cost money. You can even install it without the Pace copy protection evilness and the Runtime will work.
.hc
On Dec 15, 2011, at 3:04 PM, Jonathan Wilkes wrote:
Did anyone confirm that these bugs exist in Max/MSP?
-Jonathan
*From:* Hans-Christoph Steiner hans@at.or.at *To:* Alexandre Torres Porres porres@gmail.com *Cc:* pd-lista puredata pd-list@iem.at *Sent:* Thursday, December 15, 2011 4:34 PM *Subject:* Re: [PD] cartopol~ outputs inverted phases (bug report)
It sounds like the best approach here might be to just make newer version of those objects that do it correctly. the 'cyclone' library's core goal is to be a clone of Max/MSP objects, so cartopol~ and poltocart~ from cyclone should behave just like Max/MSP's, bugs and all.
Other libraries have these objects with different names, like cart2pol.
.hc
On Dec 14, 2011, at 4:53 PM, Alexandre Torres Porres wrote:
by the way, [poltocar~] needs to be revised as well, since it's synchronized to [cartopol~]'s inverted phases. cheers
2011/12/14 Mathieu Bouchard matju@artengine.ca
Le 2011-12-14 à 14:42:00, Alexandre Torres Porres a écrit :
I dont have "hypot" in expr, by the way...cheers
Oh, sorry. It's a standard libm function. It's also in [#expr]. But in [expr] or [expr~], you can also do it easily :
[expr~ sqrt($v1*$v1+$v2*$v2)]
______________________________**______________________________** __________ | 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
If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of everyone, and the receiver cannot dispossess himself of it. - Thomas Jefferson
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
There is no way to peace, peace is the way. -A.J. Muste
I don't understand, cyclone's results match the max results?
.hc
On Dec 15, 2011, at 3:38 PM, Alexandre Torres Porres wrote:
Yes, they match, no bug in MAX.
2011/12/15 Hans-Christoph Steiner hans@at.or.at
I did a quick check and the results matched. Anyone can install the Max runtime and run the help patches, it doesn't cost money. You can even install it without the Pace copy protection evilness and the Runtime will work.
.hc
On Dec 15, 2011, at 3:04 PM, Jonathan Wilkes wrote:
Did anyone confirm that these bugs exist in Max/MSP?
-Jonathan
From: Hans-Christoph Steiner hans@at.or.at To: Alexandre Torres Porres porres@gmail.com Cc: pd-lista puredata pd-list@iem.at Sent: Thursday, December 15, 2011 4:34 PM Subject: Re: [PD] cartopol~ outputs inverted phases (bug report)
It sounds like the best approach here might be to just make newer version of those objects that do it correctly. the 'cyclone' library's core goal is to be a clone of Max/MSP objects, so cartopol~ and poltocart~ from cyclone should behave just like Max/MSP's, bugs and all.
Other libraries have these objects with different names, like cart2pol.
.hc
On Dec 14, 2011, at 4:53 PM, Alexandre Torres Porres wrote:
by the way, [poltocar~] needs to be revised as well, since it's synchronized to [cartopol~]'s inverted phases. cheers
2011/12/14 Mathieu Bouchard matju@artengine.ca Le 2011-12-14 à 14:42:00, Alexandre Torres Porres a écrit :
I dont have "hypot" in expr, by the way...cheers
Oh, sorry. It's a standard libm function. It's also in [#expr]. But in [expr] or [expr~], you can also do it easily :
[expr~ sqrt($v1*$v1+$v2*$v2)]
| 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
If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of everyone, and the receiver cannot dispossess himself of it. - Thomas Jefferson
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
There is no way to peace, peace is the way. -A.J. Muste
"We have nothing to fear from love and commitment." - New York Senator Diane Savino, trying to convince the NY Senate to pass a gay marriage bill
oops, I guess I didnt understand you then.
well, I tried myself, and in max [cartopol~] matches [cartopol], That is; they both give same results in MAX.
Now in Pd, they don't match, [cartopol~] gives inverted phases, but [cartopol] in Pd matches the [atas2] and [expr] versions.
And the results in MAX also are in agreement to [atan2] and [expr] or [cartopol] in Pd.
So Pd's [cartopol~] is the odd one out.
2011/12/15 Hans-Christoph Steiner hans@at.or.at
I don't understand, cyclone's results match the max results?
.hc
On Dec 15, 2011, at 3:38 PM, Alexandre Torres Porres wrote:
Yes, they match, no bug in MAX.
2011/12/15 Hans-Christoph Steiner hans@at.or.at
I did a quick check and the results matched. Anyone can install the Max runtime and run the help patches, it doesn't cost money. You can even install it without the Pace copy protection evilness and the Runtime will work.
.hc
On Dec 15, 2011, at 3:04 PM, Jonathan Wilkes wrote:
Did anyone confirm that these bugs exist in Max/MSP?
-Jonathan
*From:* Hans-Christoph Steiner hans@at.or.at *To:* Alexandre Torres Porres porres@gmail.com *Cc:* pd-lista puredata pd-list@iem.at *Sent:* Thursday, December 15, 2011 4:34 PM *Subject:* Re: [PD] cartopol~ outputs inverted phases (bug report)
It sounds like the best approach here might be to just make newer version of those objects that do it correctly. the 'cyclone' library's core goal is to be a clone of Max/MSP objects, so cartopol~ and poltocart~ from cyclone should behave just like Max/MSP's, bugs and all.
Other libraries have these objects with different names, like cart2pol.
.hc
On Dec 14, 2011, at 4:53 PM, Alexandre Torres Porres wrote:
by the way, [poltocar~] needs to be revised as well, since it's synchronized to [cartopol~]'s inverted phases. cheers
2011/12/14 Mathieu Bouchard matju@artengine.ca
Le 2011-12-14 à 14:42:00, Alexandre Torres Porres a écrit :
I dont have "hypot" in expr, by the way...cheers
Oh, sorry. It's a standard libm function. It's also in [#expr]. But in [expr] or [expr~], you can also do it easily :
[expr~ sqrt($v1*$v1+$v2*$v2)]
______________________________**______________________________** __________ | 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
If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of everyone, and the receiver cannot dispossess himself of it. - Thomas Jefferson
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
There is no way to peace, peace is the way. -A.J. Muste
"We have nothing to fear from love and commitment." - New York Senator Diane Savino, trying to convince the NY Senate to pass a gay marriage bill
That would be good info to have on your bug report.
.hc
On Dec 15, 2011, at 4:05 PM, Alexandre Torres Porres wrote:
oops, I guess I didnt understand you then.
well, I tried myself, and in max [cartopol~] matches [cartopol], That is; they both give same results in MAX.
Now in Pd, they don't match, [cartopol~] gives inverted phases, but [cartopol] in Pd matches the [atas2] and [expr] versions.
And the results in MAX also are in agreement to [atan2] and [expr] or [cartopol] in Pd.
So Pd's [cartopol~] is the odd one out.
2011/12/15 Hans-Christoph Steiner hans@at.or.at
I don't understand, cyclone's results match the max results?
.hc
On Dec 15, 2011, at 3:38 PM, Alexandre Torres Porres wrote:
Yes, they match, no bug in MAX.
2011/12/15 Hans-Christoph Steiner hans@at.or.at
I did a quick check and the results matched. Anyone can install the Max runtime and run the help patches, it doesn't cost money. You can even install it without the Pace copy protection evilness and the Runtime will work.
.hc
On Dec 15, 2011, at 3:04 PM, Jonathan Wilkes wrote:
Did anyone confirm that these bugs exist in Max/MSP?
-Jonathan
From: Hans-Christoph Steiner hans@at.or.at To: Alexandre Torres Porres porres@gmail.com Cc: pd-lista puredata pd-list@iem.at Sent: Thursday, December 15, 2011 4:34 PM Subject: Re: [PD] cartopol~ outputs inverted phases (bug report)
It sounds like the best approach here might be to just make newer version of those objects that do it correctly. the 'cyclone' library's core goal is to be a clone of Max/MSP objects, so cartopol~ and poltocart~ from cyclone should behave just like Max/MSP's, bugs and all.
Other libraries have these objects with different names, like cart2pol.
.hc
On Dec 14, 2011, at 4:53 PM, Alexandre Torres Porres wrote:
by the way, [poltocar~] needs to be revised as well, since it's synchronized to [cartopol~]'s inverted phases. cheers
2011/12/14 Mathieu Bouchard matju@artengine.ca Le 2011-12-14 à 14:42:00, Alexandre Torres Porres a écrit :
I dont have "hypot" in expr, by the way...cheers
Oh, sorry. It's a standard libm function. It's also in [#expr]. But in [expr] or [expr~], you can also do it easily :
[expr~ sqrt($v1*$v1+$v2*$v2)]
| 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
If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of everyone, and the receiver cannot dispossess himself of it. - Thomas Jefferson
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
There is no way to peace, peace is the way. -A.J. Muste
"We have nothing to fear from love and commitment." - New York Senator Diane Savino, trying to convince the NY Senate to pass a gay marriage bill
Mistrust authority - promote decentralization. - the hacker ethic
The [cartopol] I use in Pd is the one that comes with the latest Pd-Extended, in the cyclone folder. cheers
Here's a screenshot comparing cyclone's and Max's versions, if it helps. [cyclone/cartopol] is the same as the one in Max, but [cyclone/cartopol~] is not.
.mmb
On Fri, Dec 16, 2011 at 10:28 AM, Alexandre Torres Porres porres@gmail.com wrote:
The [cartopol] I use in Pd is the one that comes with the latest Pd-Extended, in the cyclone folder. cheers
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Fixed with this commit:
http://pure-data.svn.sourceforge.net/viewvc/pure-data?view=revision&revi...
.hc
On Dec 16, 2011, at 10:21 PM, Mike Moser-Booth wrote:
Here's a screenshot comparing cyclone's and Max's versions, if it helps. [cyclone/cartopol] is the same as the one in Max, but [cyclone/cartopol~] is not.
.mmb
On Fri, Dec 16, 2011 at 10:28 AM, Alexandre Torres Porres porres@gmail.com wrote:
The [cartopol] I use in Pd is the one that comes with the latest Pd-Extended, in the cyclone folder. cheers
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- Mike Moser-Booth mmoserbooth@gmail.com <cartopol_A-B.png>_______________________________________________ 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
On 12/16/2011 01:05 AM, Alexandre Torres Porres wrote:
oops, I guess I didnt understand you then.
well, I tried myself, and in max [cartopol~] matches [cartopol], That is; they both give same results in MAX.
Now in Pd, they don't match, [cartopol~] gives inverted phases, but [cartopol] in Pd matches the [atas2] and [expr] versions.
And the results in MAX also are in agreement to [atan2] and [expr] or [cartopol] in Pd.
So Pd's [cartopol~] is the odd one out.
i'm not sure i can follow. i think there is still some information missing.
in Max, [cartopol~] and [cartopol] match. in Pd, [cartopol~] and [cartopol] are inverted. this really means: cyclone's [cartopol~] is inverted with respect to the [cartopol] you are using.
cyclone's [cartopol~] is to match Max's [cartopol~], phase wise. if it doesn't, then it's a bug in cyclone.
so as a first step, you should check whether they output the same in Max and Pd/cyclone, if you send them the same input.
i don't know, where your [cartopol] implementation comes from. if it comes from cyclone, then it must match Max's [cartopol] implementation. if it does not, it's a bug in cyclone. if Max's [cartopol] and [cartopol~] behave differently (which they don't), then cyclone's implementations must behave differently as well.
however, if the [cartopol] you are using is _not_ from cyclone, this doesn't matter at all. e.g. zexy's [cart2pol] doesn't care at all about Max and cyclone compatibility; i don't know whether they behave the same and if they don't then i'm sure i wouldn't change [cart2pol]s behaviour (as it is designed to be mathematically "correct", not to be Max compatible)
fmgasdrt IOhannes