<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    there was a missing connection in attached patch<br>
    it's corrected...<br>
    <br>
    <div class="moz-cite-prefix">Le 12/11/2014 04:07, patrice colet a
      écrit :<br>
    </div>
    <blockquote cite="mid:5462CED7.5050800@free.fr" type="cite">I was
      thinking that storing a list of midi events is useless since
      [poly] can handle the whole process, but I might be confused,
      sorry for that...
      <br>
      <br>
      Maybe attached patch is what you are looking for.
      <br>
      <br>
      PS: I've replaced [zl rev] with
      <br>
      <br>
      [swap]
      <br>
      |      |
      <br>
      [pack]
      <br>
      <br>
      because I don't know where [zl rev] come from, it's not part of
      pd-vanilla.
      <br>
      less external in patching, less problem in porting
      <br>
      <br>
      Anyway the particular method you are trying to do could be
      achieved with the help of [textfile]
      <br>
      Le 12/11/2014 03:20, JC Pedroza a écrit :
      <br>
      <blockquote type="cite">I understand what poly does, what I don't
        understand is how it helps to solve this problem.
        <br>
        <br>
        Sorry for any confusion.
        <br>
        <br>
        ----------------------------------------
        <br>
        <blockquote type="cite">Date: Wed, 12 Nov 2014 02:15:54 +0100
          <br>
          From: <a class="moz-txt-link-abbreviated" href="mailto:colet.patrice@free.fr">colet.patrice@free.fr</a>
          <br>
          To: <a class="moz-txt-link-abbreviated" href="mailto:nemesis4go10@hotmail.com">nemesis4go10@hotmail.com</a>; <a class="moz-txt-link-abbreviated" href="mailto:pd-list@iem.at">pd-list@iem.at</a>
          <br>
          Subject: Re: [PD] How to add/remove MIDI notes from a list
          using MIDI in and note on/off?
          <br>
          <br>
          I don't understand why not doing this:
          <br>
          <br>
          [notein]
          <br>
          | |
          <br>
          [poly]
          <br>
          <br>
          It seems to be the same thing.
          <br>
          <br>
          from [poly] help file:
          <br>
          <br>
          "The [poly] object takes a stream of pitch/velocity pairs and
          outputs
          <br>
          triples containing voice number, pitch and velocity.
          <br>
          You can pack the output and use the route object to route
          messages
          <br>
          among a bank of voices depending on the first outlet.
          <br>
          [poly] can be configured to do voice stealing or not (the
          default.)"
          <br>
          <br>
          <br>
          Le 12/11/2014 00:13, JC Pedroza a écrit :
          <br>
          <blockquote type="cite">Right now I'm handling MIDI note
            on/off like this:<br><br><div
            id="inlineImage0" style="display:
            inline-block"><script
            type="jsv#1086_"></script> <span
            contenteditable="true">&nbsp;</span> <div
            style="display: inline-block" unselectable="on"
            contenteditable="false" class="inlineImage" initheight="257"
            initwidth="377"><img src=<a class="moz-txt-link-rfc2396E" href="cid:inlineImage0">"cid:inlineImage0"</a>
            height="257" width="377"></div> <span
            contenteditable="true">&nbsp;</span><script
            type="jsv/1086_"></script></div><br>(also
            including this file as
            attachment)<div><br></div><div>The
            idea for now is that left outlet (note on) adds the MIDI
            note to the list, and right outlet (note off) deletes that
            note from the list.&nbsp;<span style="font-size:
            12pt;">That's where I'm stuck at the
            moment.&nbsp;</span><span style="font-size:
            12pt;">&nbsp;Can [poly] help me implement that
            logic?&nbsp;</span></div><div><br></div><div>I'm
            using [list-extend] to add the notes to a list, but I can't
            figure out how to remove the note from the list once the key
            is released (note off). I think I need to use a combination
            of [list-find] and [list-delete], but I can't make make it
            work.</div><div><br></div><div><br></div><div>----------------------------------------<br>&gt;
            Date: Tue, 11 Nov 2014 23:23:22 +0100<br>&gt;
            From: <a class="moz-txt-link-abbreviated" href="mailto:colet.patrice@free.fr">colet.patrice@free.fr</a><br>&gt; To:
            <a class="moz-txt-link-abbreviated" href="mailto:pd-list@lists.iem.at">pd-list@lists.iem.at</a><br>&gt; Subject: Re: [PD] How
            to add/remove MIDI notes from a list using MIDI in and note
            on/off?<br>&gt;<br>&gt;
            hi,<br>&gt; what about using [poly]
            instead?<br>&gt;<br>&gt;<br>&gt;
            Le 11/11/2014 13:53, JC Pedroza a écrit :<br>&gt;
            &gt; I need to populate a list with the MIDI notes that
            are being pressed, and remove the note from the list when
            the key is released.<br>&gt;
            &gt;<br>&gt; &gt; One idea is to use
            [notein], and if the velocity is&gt; 0 then add the note
            to the list, and if the velocity == 0 then remove the note
            from the list. But I have no idea of how to implement
            this.<br>&gt; &gt;<br>&gt; &gt;
            I think I need [list-extend], [list-find], and
            [list-delete], but I just can't figure out an
            implementation.<br>&gt; &gt;<br>&gt;
            &gt; How can I do this?<br>&gt; &gt;
            _______________________________________________<br>&gt;
            &gt; <a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>&gt;
            &gt; 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><br>&gt;<br>&gt;<br>&gt;
            _______________________________________________<br>&gt;
            <a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>&gt;
            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><br></div>
            <br>
          </blockquote>
          <br>
        </blockquote>
                                  <br>
        _______________________________________________
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
        <br>
        UNSUBSCRIBE and account-management ->
        <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
        <br>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>