<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
hi,<br>
I also patched a midi learn abstraction... then I found this discussion
and replaced all [select] by [==]... Thank's :-)<br>
Hope you'll enjoy this one: both cc and channel values are saved in an
external message box with a [set( message in the abstraction itself...
so no need to re-learn on each session. Two arguments to scale your
0-127: can be negative numbers or reversed scale. <br>
Maybe somebody can help me with that: I didn't found a way to set 0-127
as default. So the two arguments are obligatory...<br>
cheers<br>
raf<br>
<br>
Andrew Faraday a &eacute;crit&nbsp;:
<blockquote cite="mid:COL120-W4688688FE8A5AFCF0B4666DEAF0@phx.gbl"
 type="cite">
  <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>I
actually prefer your solution to mine, the [==] boxes are exactly what
I was looking for and would have saved quite a lot of logic. Also I
didn't think of [t a a a] which would have saved quite a lot of time.
Will have to keep an eye on these for future work.&nbsp;
  <div><br>
  </div>
  <div>I've got you in one place, tho. you can use [*] for conditional
logic (with a [bang]) to activate when the right inlet changes. instead
of multiple spigots. The logic goes, if all of them are 1, the result
is 1. If any are 0, the result is zero. Useful stuff. Although more
useful when you're working in audio, usually with [expr~] and the
inlets of [*~] are summing.&nbsp;</div>
  <div><br>
  </div>
  <div>I've gone on a bit of a tangent here. Always interested in
approaches to logic in pd, tho.&nbsp;</div>
  <div><br>
  </div>
  <div>Andrew</div>
  <div><br>
  </div>
  <div>
  <div><br>
&gt; Date: Wed, 4 Aug 2010 13:20:51 -0400<br>
&gt; Subject: Re: [PD] midi learn<br>
&gt; From: <a class="moz-txt-link-abbreviated" href="mailto:pboivin@gmail.com">pboivin@gmail.com</a><br>
&gt; To: <a class="moz-txt-link-abbreviated" href="mailto:jbturgid@hotmail.com">jbturgid@hotmail.com</a><br>
&gt; CC: <a class="moz-txt-link-abbreviated" href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>
&gt; <br>
&gt; Hi Andrew,<br>
&gt; <br>
&gt; I made something similar a couple of weeks ago, as I needed a quick<br>
&gt; way to map midi controllers. It's only for CC though...<br>
&gt; <br>
&gt; <br>
&gt; Patrick<br>
&gt; <br>
&gt; <br>
&gt; On Tue, Aug 3, 2010 at 1:09 PM, Andrew Faraday
<a class="moz-txt-link-rfc2396E" href="mailto:jbturgid@hotmail.com">&lt;jbturgid@hotmail.com&gt;</a> wrote:<br>
&gt; &gt; Hey All,<br>
&gt; &gt;<br>
&gt; &gt; I don't know if anyone's done this but I've attached a midi
learn<br>
&gt; &gt; abstraction I've been working on. The logic's a bit messy but
I got it<br>
&gt; &gt; working in the end.<br>
&gt; &gt;<br>
&gt; &gt; Basically from banging the learn patch it listens to the next
signal, either<br>
&gt; &gt; a note or a control signal, and then filters out only the
velocity or<br>
&gt; &gt; control value from that. (I've started taking an interest in
controlling<br>
&gt; &gt; patches with the velocity, as opposed to the note number).<br>
&gt; &gt;<br>
&gt; &gt; Let me know what you think, and if you know of anything
similar being done.<br>
&gt; &gt;<br>
&gt; &gt; Cheers<br>
&gt; &gt;<br>
&gt; &gt; Andrew<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; <a class="moz-txt-link-abbreviated" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt; &gt; UNSUBSCRIBE and account-management -&gt;<br>
&gt; &gt; <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
  </div>
  </div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list
UNSUBSCRIBE and account-management -&gt; <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
  </pre>
</blockquote>
</body>
</html>