<?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: adding graphics to max/msp</title>
		<atom:link href="http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 16:48:27 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-62658</guid>
					<title><![CDATA[adding graphics to max/msp]]></title>
					<link>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-62658</link>
					<pubDate>Thu, 29 Mar 2012 18:47:45 +0000</pubDate>
					<dc:creator>josha</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>I would like to get circles to represent the volume of an audio file (as you turn up the gain the circle radius increases). Is there a way to link max with some simple 2D graphics- and if so any recommendations please?</p>
<p>j</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226315</guid>
					<title><![CDATA[Re: adding graphics to max/msp]]></title>
					<link>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226315</link>
					<pubDate>Thu, 29 Mar 2012 23:04:17 +0000</pubDate>
					<dc:creator>dapinsker</dc:creator>

					<description>
						<![CDATA[
						<p>Try looking at the nodes object.</p>
<p>Marc P.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226316</guid>
					<title><![CDATA[Re: adding graphics to max/msp]]></title>
					<link>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226316</link>
					<pubDate>Fri, 30 Mar 2012 12:06:21 +0000</pubDate>
					<dc:creator>Roman Thilenius</dc:creator>

					<description>
						<![CDATA[
						<p>[lcd] seems perfect for this</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226317</guid>
					<title><![CDATA[Re: adding graphics to max/msp]]></title>
					<link>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226317</link>
					<pubDate>Fri, 30 Mar 2012 12:53:10 +0000</pubDate>
					<dc:creator>Medd</dc:creator>

					<description>
						<![CDATA[
						<p>Probably not the best approach, whacky though:</p>
<p>
<div><span id="toggle226317-0" class="patchtoggle" onmousedown="toggleMaxPatch('post226317-0', 'er226317-0');">&#8211; Pasted Max <span id="maxversion226317-0"></span> Patch, click to <span id="er226317-0">expand</span>. &#8211;</span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="110" height="14" class="clippy" ><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param NAME="FlashVars" value="copied=copied!&#038;copyto=copy to clipboard"/><param name="bgcolor" value="#FFFFFF"/><param name="wmode" value="opaque"/><embed src="/wp-content/plugins/bbpress-copy-compressed/clippy.swf"  width="110" height="14"   name="clippy"  quality="high"  allowScriptAccess="always"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  FlashVars="text=----------begin_max5_patcher----------%0A761.3oc2XtsaaCBFG%2BZmmBj0tpKyBv3S6t8bLUMQsood0AGESTOolm8Y.61z%0AVxBwjR6lTETicv%2B%2B9w2AvOLKH7h1aYcgfuC9IHH3gYAApgjCDLbcP3R5skMz%0AN0iEtj00QWvBmqumfcqPMNLBMNVckZj1K982PEiCdYKWvoKYpa8i00zlw6rh%0AJJuplu3WqYkBsThQIQv4fTnrMFGkLGfxiffyG9I7MKa2HZXBklPCipGRb2Jl%0AdVBCe5GHe6c02qtAB2OqOMO07woAKG6wYyjMysjFb1M8l4afQSKs5BJegAhj%0A6BPhgOiEL73AhRSGETPS.J6yEoSPWKLfjrIgDLQggBsOBQ19OkORE6R15l1a%0AL.DrK.Q6cjjNUej2e%2BC18UzxslxVjeXyCgUcjjw18Xeu2KeckzFF.FAPQ.hr%0AKAFYxjbx4FmosYE88vpY5oiOqXzqoKWsEjXhJoNQEcWV1Tgxk84mEeXA9mYz%0A0OwIhf1oR4THRW8Bd%2BK5iBIk2U1v1BHDnIzPbAMnbcVw7o5r7Aily11mjovD%0AVfSamD5BlxzUxDn3O6XoOVseNLY%2BHW1IklBIGZmT3%2BdJj49ZKU6KIK8ZUIHy%0Akdvt.ng5row9oxyoby20bloTrINgCsqRb5TcXFhWljGyIDNe0DYHNQl7%2BKp8%0A.ivlhghcJI6PLTxm8jr66DauvzTUTAw8mAE7ET%2BeFvkSaqKFpgVZwm2yxshx%0AYMl7Srv7zGdGQRiRSxIw3c%2B%2BCbHl0sa3UL0qqOQzgJpnlLUZvW8kcThSN9Ks%0Avt1MqKGY3v2n.7L7qXchZNUT2x24Yvu3Ytptphw2UxKqqV0VyECRHFSj4GRT%0AsXRw3EfyMtJbJUp7aPcLR0QIkYijx8pjRsQRdUQIVnHxj7vPYptcuxQsRrgd%0ARCBczhEC0ci6xxcwhsPrYdco9Uge6ge908CYSPZpekjUAoddoylvTjm4j0gi%0AdTSw1nIne0jMYB7LlP1fIre0DzxJQGSx8hhcqDEq9zSusRT%2BEON6OXNNDcJ%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post226317-0" style="display:none;visibility:hidden;" >
<div class="patchtoggleInfo"><small>Copy <b>all</b> of the following text.Then, in Max, select <em>New From Clipboard</em>.</small></div>
<div class="patchtogglediv">
<pre><code id="pastedcode226317-0">----------begin_max5_patcher----------
761.3oc2XtsaaCBFG+ZmmBj0tpKyBv3S6t8bLUMQsood0AGESTOolm8Y.61z
VxBwjR6lTETicv++9w2AvOLKH7h1aYcgfuC9IHH3gYAApgjCDLbcP3R5skMz
N0iEtj00QWvBmqumfcqPMNLBMNVckZj1K982PEiCdYKWvoKYpa8i00zlw6rh
JJuplu3WqYkBsThQIQv4fTnrMFGkLGfxiffyG9I7MKa2HZXBklPCipGRb2Jl
dVBCe5GHe6c02qtAB2OqOMO07woAKG6wYyjMysjFb1M8l4afQSKs5BJegAhj
6BPhgOiEL73AhRSGETPS.J6yEoSPWKLfjrIgDLQggBsOBQ19OkORE6R15l1a
L.DrK.Q6cjjNUej2e+C18UzxslxVjeXyCgUcjjw18Xeu2KeckzFF.FAPQ.hr
KAFYxjbx4FmosYE88vpY5oiOqXzqoKWsEjXhJoNQEcWV1Tgxk84mEeXA9mYz
0OwIhf1oR4THRW8Bd+K5iBIk2U1v1BHDnIzPbAMnbcVw7o5r7Aily11mjovD
VfSamD5BlxzUxDn3O6XoOVseNLY+HW1IklBIGZmT3+dJj49ZKU6KIK8ZUIHy
kdvt.ng5row9oxyoby20bloTrINgCsqRb5TcXFhWljGyIDNe0DYHNQl7+Kp8
.ivlhghcJI6PLTxm8jr66DauvzTUTAw8mAE7ET+eFvkSaqKFpgVZwm2yxshx
YMl7Srv7zGdGQRiRSxIw3c++CbHl0sa3UL0qqOQzgJpnlLUZvW8kcThSN9Ks
vt1MqKGY3v2n.7L7qXchZNUT2x24Yvu3Ytptphw2UxKqqV0VyECRHFSj4GRT
sXRw3EfyMtJbJUp7aPcLR0QIkYijx8pjRsQRdUQIVnHxj7vPYptcuxQsRrgd
RCBczhEC0ci6xxcwhsPrYdco9Uge6ge908CYSPZpekjUAoddoylvTjm4j0gi
dTSw1nIne0jMYB7LlP1fIre0DzxJQGSx8hhcqDEq9zSusRT+EON6OXNNDcJ
-----------end_max5_patcher-----------</code></pre></div>
</div>
</p>						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226318</guid>
					<title><![CDATA[Re: adding graphics to max/msp]]></title>
					<link>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226318</link>
					<pubDate>Fri, 30 Mar 2012 12:55:12 +0000</pubDate>
					<dc:creator>Medd</dc:creator>

					<description>
						<![CDATA[
						<p>That&#8217;s a the bastard child of a few open patches by the way, I thought it demonstrated the concept.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226319</guid>
					<title><![CDATA[Re: adding graphics to max/msp]]></title>
					<link>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226319</link>
					<pubDate>Fri, 30 Mar 2012 16:46:32 +0000</pubDate>
					<dc:creator>Peter McCulloch</dc:creator>

					<description>
						<![CDATA[
						<p>JSUI is what you want.  (this is what it&#8217;s designed for&#8230;)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226320</guid>
					<title><![CDATA[Re: adding graphics to max/msp]]></title>
					<link>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226320</link>
					<pubDate>Sat, 31 Mar 2012 11:48:07 +0000</pubDate>
					<dc:creator>josha</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks Peter for JSUI tip- looks perfect.</p>
<p>Quick question; can a jsui patch have 2 objects? i.e. can it have simple 2d dial functionality and  2d vector control combined, and if so do i need to edit the java code? I&#8217;m trying to combine the attached 2 objects;</p>
<div><span id="toggle226320-0" class="patchtoggle" onmousedown="toggleMaxPatch('post226320-0', 'er226320-0');">&#8211; Pasted Max <span id="maxversion226320-0"></span> Patch, click to <span id="er226320-0">expand</span>. &#8211;</span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="110" height="14" class="clippy" ><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param NAME="FlashVars" value="copied=copied!&#038;copyto=copy to clipboard"/><param name="bgcolor" value="#FFFFFF"/><param name="wmode" value="opaque"/><embed src="/wp-content/plugins/bbpress-copy-compressed/clippy.swf"  width="110" height="14"   name="clippy"  quality="high"  allowScriptAccess="always"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  FlashVars="text=----------begin_max5_patcher----------%0A229.3ocqPsjBBCCEbcD7NDx5ZII9sdUDQh0nlRaRIIUTDu6lO1pPstxEICLy%0AiYdu493Q.zd0UtAAWC2.Af6NFPfyy.ZI.nJ107RlILHpvzHPIuTJLL8olJtz%0A9xE31VIYSkPVxiBzVVwgfIp8ESnKPeLqpw1a3ZlM%2BrPdZmlmai9Syno3DHgL%0A2CzkQ.uJE%2BN4ihRtjUw6V2czCWbNnz4VcYZgoK2Xn1a07n6HTh6A2FjeLdjG%0AcPxeubp0biimYEJ4GWG1eMgOBcVGLPmR9RmNafJk7iJkfyBQMe5vA2un5URd%0ABG7DPczgBB%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post226320-0" style="display:none;visibility:hidden;" >
<div class="patchtoggleInfo"><small>Copy <b>all</b> of the following text.Then, in Max, select <em>New From Clipboard</em>.</small></div>
<div class="patchtogglediv">
<pre><code id="pastedcode226320-0">----------begin_max5_patcher----------
229.3ocqPsjBBCCEbcD7NDx5ZII9sdUDQh0nlRaRIIUTDu6lO1pPstxEICLy
iYdu493Q.zd0UtAAWC2.Af6NFPfyy.ZI.nJ107RlILHpvzHPIuTJLL8olJtz
9xE31VIYSkPVxiBzVVwgfIp8ESnKPeLqpw1a3ZlM+rPdZmlmai9Syno3DHgL
2CzkQ.uJE+N4ihRtjUw6V2czCWbNnz4VcYZgoK2Xn1a07n6HTh6A2FjeLdjG
cPxeubp0biimYEJ4GWG1eMgOBcVGLPmR9RmNafJk7iJkfyBQMe5vA2un5URd
BG7DPczgBB
-----------end_max5_patcher-----------</code></pre></div>
</div>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226321</guid>
					<title><![CDATA[Re: adding graphics to max/msp]]></title>
					<link>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226321</link>
					<pubDate>Sat, 31 Mar 2012 15:52:15 +0000</pubDate>
					<dc:creator>Peter McCulloch</dc:creator>

					<description>
						<![CDATA[
						<p>You do need to edit the javascript code.  Do you want dial functionality, or did you want the radius to scale as you shift-drag, say?  (this is pretty trivial to do)</p>
<p>The variable you&#8217;re interested in is vradius.  You also need to know how the mouse has changed relative to its previous position so create a global variable called prev_w. (below)</p>
<p>var prev_w = [];</p>
<p>You&#8217;ll need to tweak the onclick and ondrag methods.</p>
<p>For onclick, you should store the value of w into prev_w (so it&#8217;s not blank, and also so if we click to jump we won&#8217;t have a crazy scaling factor)</p>
<p>Ondrag needs to be slightly changed.  This call doesn&#8217;t have a shift parameter, but you can find the relevant looking one in the jsui dial&#8217;s source code.  It looks like this:</p>
<p>function ondrag(x,y,but,cmd,shift,capslock,option,ctrl) {   // note the presence of shift, which is what we need</p>
<p>w = sketch.screentoworld(x,y);<br />
// w[0] = x pos, w[1] = y pos   </p>
<p>// Now find the distance between the two points<br />
var distx = w[0]-prev_w[0];<br />
var disty = w[1]-prev_w[1];</p>
<p>var distance = Math.sqrt(distx*distx + disty*disty);  // Pythagorean distance<br />
if (distx&lt;0) {<br />
    vradius -= distance;<br />
} else {<br />
    vardius += distance;<br />
}</p>
<p>// At the end of this function, you should store w into prev_w:<br />
prev_w = w;</p>
<p>This is my best guess at it (haven&#8217;t tried this yet!)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226322</guid>
					<title><![CDATA[Re: adding graphics to max/msp]]></title>
					<link>http://cycling74.com/forums/topic/adding-graphics-to-maxmsp/#post-226322</link>
					<pubDate>Sat, 31 Mar 2012 18:42:53 +0000</pubDate>
					<dc:creator>josha</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks- could I just get some clarification on this? should I make the modifications to the dial or the vector control javascript?</p>
<p>thanks,<br />
j</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

