<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML DIR=ltr><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"></HEAD><BODY><DIV><FONT face='Arial' color=#000000 size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I had my first good, solid 3-hour stint with pd 
yesterday.&nbsp; I've got to say --&nbsp;it is, to me, a much more creative 
experience that programming in a traditional environment.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Here's my current&nbsp;goal:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm trying to enhance the functionality of 2 
simultaneous M-Audio&nbsp;Oxygen8s by making the pitch-wheel of each a 
"meta-controller" -&nbsp;in other words, I want to&nbsp;use the pitch wheel of 
each to control how the unit controls things.&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>When I "bump the top" of the pitch-wheel range, I 
want the&nbsp;MIDI Channel for that Oxygen8 to increase by one, and when I "bump 
the bottom" of the pitch-wheel range, I want the MIDI Channel for that Oxygen8 
to decrease by one.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Also, the units must act completely independently 
of one another.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Here's what I've done so far to attain the 
goal:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Created a subpatch that uses&nbsp;&nbsp;[ctlin], 
[notein], and [bendin] to take in all the MIDI events I'm interested in, from 
all physical controllers.&nbsp; Packed all this data, 7 integers 
worth,&nbsp;into "midiBall" and sent it out.&nbsp; So far so good.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The main patch allows selection of the MIDI 
channels that the initial data for each physical controller comes from.&nbsp; 
(By default each physical controller transmits on channel 1, so that makes the 
Ctrl1 listen channel "1" and the Ctrl2 listen channel "17").&nbsp; Still coming 
along great...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Here's where I run into trouble:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Created a subpatch to handle the incrementing and 
decrementing of send MIDI channel, per controller, via the pitch wheels.&nbsp; 
The pitchwheel has a control threshold:&nbsp; If the value is under 2000 then 
send a "minus1" to the send channel amount for that controller.&nbsp; If the 
value is over 14000 then send a "plus1".</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The problem is, though, that I only want to send a 
single "plus1" for the entire duration of time that the pitch bend value exceeds 
14000.&nbsp; The pitch bend should not be eligible to send another "plus1" until 
the value goes back below the threshold of 14000 and returns above it 
again.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In effect, what's happening now is that the pitch 
bend "bumps the top", but it increments the channel value 5, 10, 100 times 
(since the threshold is past everytime the wheel value registers)&nbsp;when I 
only want it to increment the value once.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>As far as I can tell, here's the problem boiled 
down:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I need to construct a logical mechanism that has a 
threshold.&nbsp; If the threshold is passed, a *single* message is sent, and 
another "passed threshold" message is not sent until the threshold is "unpassed" 
and then crossed once again.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks in advance for any insight, and thanks for 
reading!!</FONT></DIV>
<DIV><FONT face=Arial size=2>rs</FONT></DIV></BODY></HTML>