<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: outlet array of Atoms or primitive types as a single symbol.</title>
		<atom:link href="http://cycling74.com/forums/topic/outlet-array-of-atoms-or-primitive-types-as-a-single-symbol/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/outlet-array-of-atoms-or-primitive-types-as-a-single-symbol/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 01:12:24 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/outlet-array-of-atoms-or-primitive-types-as-a-single-symbol/#post-26362</guid>
					<title><![CDATA[outlet array of Atoms or primitive types as a single symbol.]]></title>
					<link>http://cycling74.com/forums/topic/outlet-array-of-atoms-or-primitive-types-as-a-single-symbol/#post-26362</link>
					<pubDate>Wed, 07 Jul 2010 18:15:59 +0000</pubDate>
					<dc:creator>pgk</dc:creator>

					<description>
						<![CDATA[
						<p>Hi all,</p>
<p>say I have the following method in a class:</p>
<p><code><br />
public void bang() {<br />
   Atom[] a = new Atom[] {Atom.newAtom("my"), Atom.newAtom("god")};<br />
   outlet(0, a);<br />
}<br /></code></p>
<p>This will give me a list:<br />
my god</p>
<p>If I wanted to output a single symbol, the way I did it up to now was:<br />
Concatenate Integers, Floats and Strings to a String literal like so:<br />
<code><br />
//stupid example:<br />
public void bang2() {<br />
		String[] a = new String[] {"my", "god"};<br />
		outlet(0, "" + a[0] + " " + a[1] + " " + new Integer(1).toString() + " " + Atom.newAtom(1.0f).getFloat().toString());<br />
	}<br /></code><br />
Getting: &#8220;my god 1 1.&#8221;</p>
<p>Is there a way to somehow say: &#8220;I just want a symbol out of this blob of Atoms&#8221; or whatever, without having to convert to String, like [tosymbol]?<br />
like a method: .toSymbol(Atom[] stuff)? Should I roll my own? (I don&#8217;t mind)</p>
<p>Or is a Java String like &#8220;i am here 1 2&#8243; == Symbol in max when it hits the outlet (this is my assumption)?</p>
<p>Help greatly appreciated (btw the .pdf for writing externals for mxj does not<br />
mention something as far as I can tell).</p>
<p>Panos</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

