<?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: loop action problem</title>
		<atom:link href="http://cycling74.com/forums/topic/loop-action-problem/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/loop-action-problem/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 00:37:54 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/loop-action-problem/#post-25374</guid>
					<title><![CDATA[loop action problem]]></title>
					<link>http://cycling74.com/forums/topic/loop-action-problem/#post-25374</link>
					<pubDate>Tue, 11 Apr 2006 22:57:33 +0000</pubDate>
					<dc:creator>pash*</dc:creator>

					<description>
						<![CDATA[
						<p>hello!</p>
<p>i really don&#8217;t know how exactly to call my problem,,,<br />
but so here is the goal&#8230;</p>
<p>i have one subpatch and there should be modification of a number called <br />
&#8220;ampli&#8221; depending on another number called &#8220;average sck&#8221; which is <br />
changing through time..,<br />
it should work like this: if &#8220;average sck&#8221; is < = than 3.5 then decrease <br />
ampli by &#8220;nepb&#8221; * 5 ( untill &#8220;average skc&#8221; changes to be > 3.5 ).. else <br />
increase it by &#8220;nepb&#8221; * 10 ( untill &#8220;average skc&#8221; changes to be < = 3.5 <br />
).. i made this subpatch and there is no Stack Overflow&#8230; {sure i read <br />
whole tutorial about loops}..,. but the calculation as it is made is <br />
not calculating &#8220;ampli&#8221; &#8211; specified number when the if part is ok,, and <br />
it seems that it calculates just 0 &#8211; specified number&#8230; . i don&#8217;t know <br />
where it should be,, i rebuilded whole subpatch twice already and so i <br />
need a little help.., because it seems my way is too difficult anyway <br />
and i belive it can be done better way..,., {i placed comment inside <br />
the patch to documentate what is the plan with it}.,.</p>
<p>thanks a lot for anything!!!!</p>
<p>pash*</p>
<p>here is the patch moduAmp:</p>
<p>max v2;<br />
#N vpatcher 770 189 1479 1167;<br />
#P origin 33 0;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P newex 145 393 62 196617 prepend set;<br />
#P newex 127 656 70 196617 speedlim 200;<br />
#P flonum 78 610 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 127 615 123 196617 if $f1 > 5 then $i1 else 5;<br />
#P message 281 545 14 196617 2;<br />
#P message 27 539 14 196617 1;<br />
#P newex 127 584 49 196617 switch 2;<br />
#P inlet 145 312 15 0;<br />
#P flonum 77 191 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 221 462 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 68 470 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 205 432 77 196617 expr $i1 + $f2;<br />
#P newex 50 438 76 196617 expr $i1 &#8211; $f2;<br />
#P button 205 282 15 0;<br />
#P button 50 283 15 0;<br />
#P newex 1 115 70 196617 speedlim 200;<br />
#P newex 1 163 214 196617 if $f1 < = 3.5 then bang else out2 bang;<br />
#P number 145 368 35 9 0 0 0 3 0 0 0 74 156 97 222 222 222 0 0 0;<br />
#P flonum 17 82 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 272 250 35 196617 * 10.;<br />
#P newex 116 246 29 196617 * 5.;<br />
#N comlet modulated amplifier;<br />
#P outlet 127 765 15 0;<br />
#P newex 116 188 38 196617 r nepb;<br />
#N comlet average sck;<br />
#P inlet 1 54 15 0;<br />
#P comment 0 37 64 196617 average sck;<br />
#P comment 164 312 35 196617 ampli;<br />
#P window linecount 2;<br />
#P comment 70 38 246 196617 this value is changing time by time and <br />
it&#8217;s &lt;1 ; 7>;<br />
#P window linecount 4;<br />
#P comment 150 765 152 196617 this output should be modified ampli by <br />
the &#8220;average sck&#8221; and it effects other calculations in main patch;<br />
#P comment 106 84 291 196617 what i need is: if &#8220;average sck&#8221; is < = <br />
than 3.5 then decrease ampli by &#8220;nepb&#8221; * 5 ( untill &#8220;average skc&#8221; <br />
changes to be > 3.5 ).. else increase it by &#8220;nepb&#8221; * 10 ( untill <br />
&#8220;average skc&#8221; changes to be < = 3.5 )..;<br />
#P window linecount 3;<br />
#P comment 287 312 173 196617 &#8220;ampli&#8221; is received by inlet only when <br />
user changes it manually in main patch;<br />
#P window linecount 2;<br />
#P comment 214 638 100 196617 &#8220;ampli&#8221; musn&#8217;t be smaller than 5;<br />
#P window linecount 4;<br />
#P comment 291 151 100 196617 i&#8217;m not sure of using speedlim as method <br />
to avoid Stack Overflow;<br />
#P connect 8 0 16 0;<br />
#P connect 16 0 15 0;<br />
#P fasten 8 0 13 0 6 76 22 76;<br />
#P connect 17 0 26 0;<br />
#P connect 15 0 17 0;<br />
#P connect 31 0 19 0;<br />
#P connect 17 0 19 0;<br />
#P connect 19 0 21 0;<br />
#P fasten 9 0 23 0 121 216 68 216 68 186 82 186;<br />
#P connect 25 0 29 0;<br />
#P connect 9 0 11 0;<br />
#P connect 11 0 19 1;<br />
#P fasten 27 0 25 0 286 566 132 566;<br />
#P fasten 26 0 25 0 32 561 132 561;<br />
#P connect 25 0 28 0;<br />
#P connect 28 0 30 0;<br />
#P connect 30 0 10 0;<br />
#P connect 24 0 14 0;<br />
#P fasten 30 0 14 0 132 705 329 705 329 356 150 356;<br />
#P connect 14 0 31 0;<br />
#P fasten 19 0 25 1 55 516 151 516;<br />
#P fasten 20 0 25 2 210 514 170 514;<br />
#P connect 15 1 18 0;<br />
#P connect 18 0 20 0;<br />
#P connect 31 0 20 0;<br />
#P connect 20 0 22 0;<br />
#P fasten 9 0 12 0 121 211 277 211;<br />
#P connect 12 0 20 1;<br />
#P fasten 18 0 27 0 210 383 286 383;<br />
#P pop;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/loop-action-problem/#post-74651</guid>
					<title><![CDATA[Re: loop action problem]]></title>
					<link>http://cycling74.com/forums/topic/loop-action-problem/#post-74651</link>
					<pubDate>Wed, 12 Apr 2006 12:29:06 +0000</pubDate>
					<dc:creator>Stefan Tiedje</dc:creator>

					<description>
						<![CDATA[
						<p>pash* wrote:<br />
> it should work like this: if &#8220;average sck&#8221; is < = than 3.5 then decrease <br />
> ampli by &#8220;nepb&#8221; * 5 ( untill &#8220;average skc&#8221; changes to be > 3.5 ).. else <br />
> increase it by &#8220;nepb&#8221; * 10 ( untill &#8220;average skc&#8221; changes to be < = 3.5 <br />
> ).. </p>
<p>With a brief look at your patch, I don&#8217;t know what you want in terms of <br />
timing. Out of your description you want to do steps, but if these steps <br />
all happen at the same time, you could as well jump directly to the <br />
target value. It seems you need to define some timing structure&#8230;</p>
<p>Stefan</p>
<p>&#8211; </p>
<p>  [][]  [][][]  [][]  [][][]<br />
[][][][][][][][][][][][][][][]</p>
<p>         Stefan Tiedje<br />
         Klanggestalter<br />
     Electronic Composition<br />
               &#038;<br />
         Improvisation</p>
<p>            /~~~~~<br />
     \   /|() ()|<br />
     ))))) )|  |  |( \<br />
     ///     _/)/ )))))<br />
             ___/   ///</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-x&#8212;-<br />
&#8211;_____&#8212;&#8212;&#8212;&#8211;|&#8212;&#8212;&#8212;&#8211;<br />
&#8211;(_|_ &#8212;-|&#8212;&#8211;|&#8212;&#8211;()&#8212;-<br />
&#8211; _|_)&#8212;-|&#8212;&#8211;()&#8212;&#8212;&#8212;&#8211;<br />
&#8212;&#8212;&#8212;-()&#8212;&#8212;&#8212;&#8212;x&#8212;&#8211;</p>
<p>14, Av. Pr. Franklin Roosevelt,<br />
94320 Thiais, France<br />
Phone at CCMIX +33-1-57 42 91 09</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/loop-action-problem/#post-74652</guid>
					<title><![CDATA[Re: loop action problem]]></title>
					<link>http://cycling74.com/forums/topic/loop-action-problem/#post-74652</link>
					<pubDate>Wed, 12 Apr 2006 13:24:31 +0000</pubDate>
					<dc:creator>pash*</dc:creator>

					<description>
						<![CDATA[
						<p>hello,<br />
the time cause seems to be ok in this subpatch,,, but the problem is is<br />
math,, the calculation as it is made is not calculating &#8220;ampli&#8221; -<br />
specified number when the if part is ok,, and it seems that it calculates<br />
just 0 &#8211; specified number&#8230;<br />
i know that this is really newbie problem,, but i spend two days trying to<br />
do something with it without resuls.,.,<br />
thanks for any help a lot!!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/loop-action-problem/#post-74653</guid>
					<title><![CDATA[Re: loop action problem]]></title>
					<link>http://cycling74.com/forums/topic/loop-action-problem/#post-74653</link>
					<pubDate>Thu, 13 Apr 2006 08:51:43 +0000</pubDate>
					<dc:creator>Stefan Tiedje</dc:creator>

					<description>
						<![CDATA[
						<p>pash* wrote:<br />
> the time cause seems to be ok in this subpatch</p>
<p>But I haven&#8217;t seen any&#8230; which caused the question, still unanswered, <br />
which does not drive interest to look deeper into it&#8230;</p>
<p>Stefan</p>
<p>&#8211; </p>
<p>  [][]  [][][]  [][]  [][][]<br />
[][][][][][][][][][][][][][][]</p>
<p>         Stefan Tiedje<br />
         Klanggestalter<br />
     Electronic Composition<br />
               &#038;<br />
         Improvisation</p>
<p>            /~~~~~<br />
     \   /|() ()|<br />
     ))))) )|  |  |( \<br />
     ///     _/)/ )))))<br />
             ___/   ///</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-x&#8212;-<br />
&#8211;_____&#8212;&#8212;&#8212;&#8211;|&#8212;&#8212;&#8212;&#8211;<br />
&#8211;(_|_ &#8212;-|&#8212;&#8211;|&#8212;&#8211;()&#8212;-<br />
&#8211; _|_)&#8212;-|&#8212;&#8211;()&#8212;&#8212;&#8212;&#8211;<br />
&#8212;&#8212;&#8212;-()&#8212;&#8212;&#8212;&#8212;x&#8212;&#8211;</p>
<p>14, Av. Pr. Franklin Roosevelt,<br />
94320 Thiais, France<br />
Phone at CCMIX +33-1-57 42 91 09</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/loop-action-problem/#post-74654</guid>
					<title><![CDATA[Re: loop action problem]]></title>
					<link>http://cycling74.com/forums/topic/loop-action-problem/#post-74654</link>
					<pubDate>Thu, 13 Apr 2006 10:31:06 +0000</pubDate>
					<dc:creator>pash*</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks a lot for your will to help at the first place&#8230;, ! i&#8217;m still<br />
newbie.,.,<br />
sorry,, but i didn&#8217;t underestand one thing before,,, i will place metro<br />
into it and than see if it works.., so thanks again.. i&#8217;ll try it tonight</p>
<p>pash*</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/loop-action-problem/#post-74655</guid>
					<title><![CDATA[Re: loop action problem]]></title>
					<link>http://cycling74.com/forums/topic/loop-action-problem/#post-74655</link>
					<pubDate>Thu, 13 Apr 2006 13:51:32 +0000</pubDate>
					<dc:creator>Stefan Tiedje</dc:creator>

					<description>
						<![CDATA[
						<p>pash* wrote:<br />
> sorry,, but i didn&#8217;t underestand one thing before,,, i will place metro<br />
> into it and than see if it works.., so thanks again.. i&#8217;ll try it tonight</p>
<p>Maybe delay or pipe is easier&#8230;</p>
<p>Stefan</p>
<p>&#8211; </p>
<p>  [][]  [][][]  [][]  [][][]<br />
[][][][][][][][][][][][][][][]</p>
<p>         Stefan Tiedje<br />
         Klanggestalter<br />
     Electronic Composition<br />
               &#038;<br />
         Improvisation</p>
<p>            /~~~~~<br />
     \   /|() ()|<br />
     ))))) )|  |  |( \<br />
     ///     _/)/ )))))<br />
             ___/   ///</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-x&#8212;-<br />
&#8211;_____&#8212;&#8212;&#8212;&#8211;|&#8212;&#8212;&#8212;&#8211;<br />
&#8211;(_|_ &#8212;-|&#8212;&#8211;|&#8212;&#8211;()&#8212;-<br />
&#8211; _|_)&#8212;-|&#8212;&#8211;()&#8212;&#8212;&#8212;&#8211;<br />
&#8212;&#8212;&#8212;-()&#8212;&#8212;&#8212;&#8212;x&#8212;&#8211;</p>
<p>14, Av. Pr. Franklin Roosevelt,<br />
94320 Thiais, France<br />
Phone at CCMIX +33-1-57 42 91 09</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

