<?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: Not allowing Counter to reset on Max/Min</title>
		<atom:link href="http://cycling74.com/forums/topic/not-allowing-counter-to-reset-on-maxmin/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/not-allowing-counter-to-reset-on-maxmin/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 21:21:48 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/not-allowing-counter-to-reset-on-maxmin/#post-36577</guid>
					<title><![CDATA[Not allowing Counter to reset on Max/Min]]></title>
					<link>http://cycling74.com/forums/topic/not-allowing-counter-to-reset-on-maxmin/#post-36577</link>
					<pubDate>Fri, 28 Mar 2008 18:30:07 +0000</pubDate>
					<dc:creator>wade</dc:creator>

					<description>
						<![CDATA[
						<p>What I&#8217;m trying to accomplish:<br />
I&#8217;m trying to bring in the position of the knob on my MotorMix but it<br />
only sends a direction (see my solution).</p>
<p>My Solution (not completely working):<br />
Using counter, every time a 1/0 (knob direction) comes in through<br />
MIDI, it triggers a bang which is counted. When the maximum count is<br />
reached (knob max.), counter sends out a bang which closes the gate.<br />
This works but when the knob reaches the minimum count, it resets to<br />
the max value. I can send a patch to demonstrate this solution later<br />
as I&#8217;m not at my Max/MSP computer.</p>
<p>Seems like it would be a simple solution, but is there a way to create<br />
a minimum and maximum for counter that does not reset? I can use a<br />
gate but then I need to be able to re-open the gate when the opposite<br />
knob direction comes back in via MIDI.</p>
<p>Another thing is my solution does not account for accelerated knob<br />
twisting to speed up the values inc/decrementing. I could be doing<br />
this all wrong, so I would love to hear of a better solution<br />
all-together.</p>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/not-allowing-counter-to-reset-on-maxmin/#post-125626</guid>
					<title><![CDATA[Re: Not allowing Counter to reset on Max/Min]]></title>
					<link>http://cycling74.com/forums/topic/not-allowing-counter-to-reset-on-maxmin/#post-125626</link>
					<pubDate>Fri, 28 Mar 2008 19:26:45 +0000</pubDate>
					<dc:creator>Chris Muir</dc:creator>

					<description>
						<![CDATA[
						<p>
On Mar 28, 2008, at 11:30 AM, Wade wrote:<br />
> Seems like it would be a simple solution, but is there a way to create<br />
> a minimum and maximum for counter that does not reset? I can use a<br />
> gate but then I need to be able to re-open the gate when the opposite<br />
> knob direction comes back in via MIDI.<br />
><br />
> Another thing is my solution does not account for accelerated knob<br />
> twisting to speed up the values inc/decrementing. I could be doing<br />
> this all wrong, so I would love to hear of a better solution<br />
> all-together.</p>
<p>
I used accum to accomplish this in my MaxieControl package. Here&#8217;s the  <br />
vpot patch from there (none too well commented, I&#8217;m afraid.) It does  <br />
accomplish what you&#8217;re interested in, I think; clips at the extremes,  <br />
and allows for knob deltas > 1.</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P newex 285 184 79 196617 r MC.Board.Init;<br />
#N comlet Set VPot value;<br />
#P inlet 47 43 15 0;<br />
#P newex 50 155 62 196617 prepend set;<br />
#P newex 50 127 66 196617 prepend size;<br />
#P newex 50 105 27 196617 + 1;<br />
#P user dial 1 22 40 40 500 1 0 0 159 270 1 1. 170 170 170 221 221 221  <br />
120 120 120 225 225 225 0 0 0 0 0 0;<br />
#P newex 380 452 87 196617 s MC.CC.Out.Num;<br />
#P newex 264 451 82 196617 s MC.CC.Out.Val;<br />
#P newex 236 113 80 196617 r MC.CC.In.Num;<br />
#P newex 96 74 75 196617 r MC.CC.In.Val;<br />
#P window linecount 4;<br />
#P comment 422 258 76 196617 Someday I&#8217;ll add support for the other  <br />
VPot display modes;<br />
#P window linecount 1;<br />
#P comment 264 473 83 196617 Controller Value;<br />
#N comlet Controller Number;<br />
#P outlet 348 473 15 0;<br />
#P comment 383 473 100 196617 Controller Number;<br />
#N comlet Controller Number;<br />
#P outlet 367 473 15 0;<br />
#P newex 348 380 29 196617 t i b;<br />
#P newex 216 80 31 196617 + 15;<br />
#P message 216 62 21 196617 $1;<br />
#P window linecount 2;<br />
#P comment 117 46 52 196617 Controller Value;<br />
#N comlet Controller Number;<br />
#P inlet 189 46 15 0;<br />
#P window linecount 1;<br />
#P newex 151 126 29 196617 gate;<br />
#P newex 189 100 37 196617 == 60;<br />
#N comlet Controller Value;<br />
#P inlet 170 46 15 0;<br />
#P comment 205 46 100 196617 Controller Number;<br />
#P newex 348 315 27 196617 + 1;<br />
#P newex 348 288 27 196617 /;<br />
#P newex 348 354 54 196617 +;<br />
#P message 392 299 14 196617 2;<br />
#P number 392 316 35 9 0 3 3 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 392 333 29 196617 < < 4;<br />
#P message 202 235 14 196617 0;<br />
#P newex 365 264 31 196617 / 10;<br />
#P message 365 245 32 196617 $2;<br />
#P message 367 409 21 196617 $1;<br />
#P hidden newex 391 63 48 196617 loadbang;<br />
#P newex 367 430 31 196617 + 47;<br />
#N comlet VPot Value Out;<br />
#P outlet 151 473 15 0;<br />
#P newex 207 323 32 196617 sel 1;<br />
#P message 244 345 47 196617 $2;<br />
#P newex 207 303 30 196617 < = 0;<br />
#P newex 244 304 48 196617 >= $2;<br />
#P newex 244 324 32 196617 sel 1;<br />
#P newex 151 259 66 196617 split 0 $2;<br />
#P newex 151 150 27 196617 t b i;<br />
#P newex 203 192 33 196617 !- 64;<br />
#P newex 168 171 45 196617 split 64;<br />
#P message 207 345 14 196617 0;<br />
#P newex 151 234 45 196617 accum;<br />
#P comment 208 25 286 196617 Arguments: 1. VPot number $1 , 2. upper  <br />
limit $2;<br />
#P window setfont &#8220;Sans Serif&#8221; 14.;<br />
#P comment 164 23 43 196622 VPot;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P hidden comment 114 482 41 196617 bottom;<br />
#P comment 430 316 69 196617 Display mode;<br />
#P comment 166 473 76 196617 VPot Value Out;<br />
#P window linecount 3;<br />
#P comment 62 43 31 196617 Set VPot value;<br />
#P connect 24 0 27 1;<br />
#P connect 25 0 24 0;<br />
#P connect 26 0 25 0;<br />
#P hidden connect 19 0 23 0;<br />
#P lcolor 5;<br />
#P hidden connect 19 0 36 0;<br />
#P lcolor 5;<br />
#P hidden connect 19 0 21 0;<br />
#P lcolor 5;<br />
#P hidden connect 19 0 20 0;<br />
#P lcolor 5;<br />
#P hidden connect 19 0 26 0;<br />
#P lcolor 5;<br />
#P connect 18 0 47 0;<br />
#P connect 18 0 39 0;<br />
#P connect 20 0 18 0;<br />
#P connect 38 1 20 0;<br />
#P connect 22 0 28 1;<br />
#P connect 21 0 49 0;<br />
#P connect 21 0 22 0;<br />
#P connect 38 0 46 0;<br />
#P connect 38 0 41 0;<br />
#P connect 27 0 38 0;<br />
#P connect 29 0 27 0;<br />
#P connect 28 0 29 0;<br />
#P connect 11 0 17 0;<br />
#P fasten 11 0 28 0 156 282 353 282;<br />
#P connect 12 0 15 0;<br />
#P connect 13 0 12 0;<br />
#P connect 11 1 14 0;<br />
#P connect 11 1 13 0;<br />
#P connect 37 0 32 1;<br />
#P connect 36 0 37 0;<br />
#P connect 16 0 7 0;<br />
#P connect 14 0 16 0;<br />
#P connect 8 1 9 0;<br />
#P connect 53 0 23 0;<br />
#P connect 45 0 32 0;<br />
#P connect 34 0 32 0;<br />
#P connect 44 0 33 1;<br />
#P connect 31 0 33 1;<br />
#P connect 9 0 6 1;<br />
#P connect 8 0 6 1;<br />
#P connect 10 1 8 0;<br />
#P connect 6 0 51 0;<br />
#P connect 6 0 11 0;<br />
#P connect 52 0 6 0;<br />
#P fasten 15 0 6 0 224 384 131 384 131 212 156 212;<br />
#P fasten 7 0 6 0 197 375 140 375 140 221 156 221;<br />
#P connect 23 0 6 0;<br />
#P connect 10 0 6 0;<br />
#P hidden connect 48 0 6 0;<br />
#P connect 33 0 10 0;<br />
#P fasten 32 0 33 0 194 121 156 121;<br />
#P connect 49 0 50 0;<br />
#P hidden connect 50 0 48 0;<br />
#P hidden connect 51 0 48 0;<br />
#P window clipboard copycount 54;</p>
<p>
Chris Muir<br />
<a href="mailto:cbm@well.com">cbm@well.com</a>	</p>
<p><a href="http://www.xfade.com" rel="nofollow">http://www.xfade.com</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/not-allowing-counter-to-reset-on-maxmin/#post-125627</guid>
					<title><![CDATA[Re: Not allowing Counter to reset on Max/Min]]></title>
					<link>http://cycling74.com/forums/topic/not-allowing-counter-to-reset-on-maxmin/#post-125627</link>
					<pubDate>Fri, 28 Mar 2008 19:44:57 +0000</pubDate>
					<dc:creator>wade</dc:creator>

					<description>
						<![CDATA[
						<p>Wicked, thanks Chris for sending that! I&#8217;ll take a look at it when I get home.</p>
<p>By &#8216;knob deltas > 1&#8242; are you referring to knob acelleration based on<br />
speed of knob rotation or are you referring to allowing the knob<br />
max/min to be re-mapped to different values?</p>
<p>
On Fri, Mar 28, 2008 at 3:26 PM, Chris Muir <cbm @well.com> wrote:<br />
><br />
>  I used accum to accomplish this in my MaxieControl package. Here&#8217;s the<br />
>  vpot patch from there (none too well commented, I&#8217;m afraid.) It does<br />
>  accomplish what you&#8217;re interested in, I think; clips at the extremes,<br />
>  and allows for knob deltas > 1.</cbm></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/not-allowing-counter-to-reset-on-maxmin/#post-125628</guid>
					<title><![CDATA[Re: Not allowing Counter to reset on Max/Min]]></title>
					<link>http://cycling74.com/forums/topic/not-allowing-counter-to-reset-on-maxmin/#post-125628</link>
					<pubDate>Fri, 28 Mar 2008 20:22:09 +0000</pubDate>
					<dc:creator>Chris Muir</dc:creator>

					<description>
						<![CDATA[
						<p>
On Mar 28, 2008, at 12:44 PM, Wade wrote:<br />
> Wicked, thanks Chris for sending that! I&#8217;ll take a look at it when I  <br />
> get home.<br />
><br />
> By &#8216;knob deltas > 1&#8242; are you referring to knob acelleration based on<br />
> speed of knob rotation or are you referring to allowing the knob<br />
> max/min to be re-mapped to different values?</p>
<p>
While I do allow the max value to be remapped in this patch, what I  <br />
was referring to was acceleration. What the Mackie Control sends for  <br />
its VPots, is a controller value. The controller is to be interpreted  <br />
as bipolar, centered on 64: < =64 is negative, >64 is positive. The  <br />
distance away from the midpoint is how many ticks to move. If you get  <br />
a CC message of 65, you would move one tick higher, if you get a  <br />
message of 66, two ticks, etc.</p>
<p>Chris Muir<br />
<a href="mailto:cbm@well.com">cbm@well.com</a>	</p>
<p><a href="http://www.xfade.com" rel="nofollow">http://www.xfade.com</a></p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

