[swap] help says: The swap object stores numbers from its left inlet to output on its right inlet -- after repeating its right hand input out the left.
It should say: The swap object stores numbers from its left inlet to output on its right inlet -- before repeating its right hand input out the left.
-Chuckk
Hallo, Chuckk Hubbard hat gesagt: // Chuckk Hubbard wrote:
[swap] help says: The swap object stores numbers from its left inlet to output on its right inlet -- after repeating its right hand input out the left.
It should say: The swap object stores numbers from its left inlet to output on its right inlet -- before repeating its right hand input out the left.
^^^^^ outlet
However: numbers in the left inlet aren't stored, only numbers coming in on the right, cold inlet are stored. So I'd rather write it like this:
The swap object stores numbers from its right inlet to output on its left outlet -- after repeating its left hand input out the right.
Or maybe the more verbose version (there's still room in that help patch):
The swap object swaps the positions of two incoming numbers. The number coming in through the right inlet will come out the left outlet and the number coming in left will come out right. Only the left inlet is hot and triggers output on both outlet. Output order is right to left as in [trigger].
A common use of swap is to reverse the operands in arithmetic objects like this:
[swap] | / [- ]
Who does the bug report? ;) Patch is attached.
Frank Barknecht _ ______footils.org__
On Mon, 19 Nov 2007, Frank Barknecht wrote:
However: numbers in the left inlet aren't stored
Why don't you try to bang a [swap] ?
You'd see that numbers in the left inlet are stored.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada
Hallo, Mathieu Bouchard hat gesagt: // Mathieu Bouchard wrote:
On Mon, 19 Nov 2007, Frank Barknecht wrote:
However: numbers in the left inlet aren't stored
Why don't you try to bang a [swap] ?
You'd see that numbers in the left inlet are stored.
Ah, yeah, of course, sorry for confusion.
Frank Barknecht _ ______footils.org__
On Nov 19, 2007 9:56 PM, Frank Barknecht fbar@footils.org wrote:
The swap object swaps the positions of two incoming numbers. The number coming in through the right inlet will come out the left outlet and the number coming in left will come out right. Only the left inlet is hot and triggers output on both outlet. Output order is right to left as in [trigger].
A common use of swap is to reverse the operands in arithmetic objects like this:
[swap] | / [- ]
Sounds very good.
Who does the bug report? ;) Patch is attached.
I vote for Frank...
Something else: [swap] only works for floats. Is there an object somewhere that does the same for symbols?
-Chuckk
Chuckk Hubbard wrote:
Something else: [swap] only works for floats. Is there an object somewhere that does the same for symbols?
If you ask that, why not ask about pointers too? Or why not whole lists? Or why not any message with any selector? It should be trivial to implement in a scripting external (probably about 10 lines with pdlua).
Hallo, Claude Heiland-Allen hat gesagt: // Claude Heiland-Allen wrote:
Chuckk Hubbard wrote:
Something else: [swap] only works for floats. Is there an object somewhere that does the same for symbols?
If you ask that, why not ask about pointers too? Or why not whole lists? Or why not any message with any selector?
[list prepend] is a [swap] for anything.
Frank Barknecht _ ______footils.org__
On Tue, 2007-11-20 at 00:01 +0200, Chuckk Hubbard wrote:
Something else: [swap] only works for floats. Is there an object somewhere that does the same for symbols?
[pack s s] | [$2 $1(
?
roman
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de