<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hey,</p>
    <p>
      <blockquote type="cite">but I still needed an example to see how
        to make this happen :) </blockquote>
      Attached you find a simple example for recording N ms of sound to
      disk.</p>
    <p>
      <blockquote type="cite">that's used n the help file of
        [samplerate~] but I agree it should also be included in this new
        documentaton section. Anyway, what else would you use it for?</blockquote>
      It's useful for preventing "angry vline~s": if you accidentally
      keep sending messaes to a [vline~] while DSP is off, it will
      eventually bring Pd to its knees. The solution is to use a
      [spigot] which is opened on "pd-dsp-started" and closed on
      "pd-dsp-stopped".</p>
    <p>Actually, the issue should be mentioned in vline~-help.pd,
      together with the possible solution.</p>
    <p>Christof<br>
    </p>
    <div class="moz-cite-prefix">On 17.08.2020 02:25, Alexandre Torres
      Porres wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEAsFmjaO3UgABa-t3MfH8vVpAKungk2=q0Bu+_Hie_EO_q7NQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">On 16.08.2020 05:52,
            Miller Puckette via Pd-list wrote:<br>
            > An artificial example (for simplicity) - I want to
            apply a Pd effect to a<br>
            > soundfile and write the result out to another file,
            without having to wait<br>
            > for the length of the file to get the result.  This
            could be done from the<br>
            > command line using a batch command, but while you're
            developing the patch to<br>
            > do it it's much easier to be able to set the process
            off with a button from<br>
            > inside Pd.<br>
          </blockquote>
          <div><br>
          </div>
          <div>Great, kind of what I was expecting, but I still needed
            an example to see how to make this happen :) </div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">Em dom., 16 de ago. de 2020
            às 08:16, Christof Ressi <<a
              href="mailto:info@christofressi.com"
              moz-do-not-send="true">info@christofressi.com</a>>
            escreveu:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">My use case was that I
            had a patch which either produced some generative <br>
            music or processed some soundfile and I wanted to record N
            seconds as <br>
            fast as possible. It's basically like the render function in
            a DAW <br>
            (usually you don't have to start the DAW from the command
            line to render <br>
            your project :-).<br>
          </blockquote>
          <div><br>
          </div>
          <div>I also thought about that and I'm really excited to test
            both things. Hopefully I can have an example of this in my
            tutorial rght now and release an update. But my attempts
            here failed and froze Pd :) </div>
          <div><br>
          </div>
          <div>Have you already messed with it, Christof?</div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            But I agree that this needs to documented. Generally, there
            should be a <br>
            section to document all (public) Pd messages, like [pd dsp(,
            [pd quit(, <br>
            etc. (What can be considered "public"?)<br>
          </blockquote>
          <div><br>
          </div>
          <div>I opened an issue for that ( <a
              href="https://github.com/pure-data/pure-data/issues/1125"
              moz-do-not-send="true">https://github.com/pure-data/pure-data/issues/1125</a> )
            and can take care of it as I'm usually handling
            documentation issues.</div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            Also [r pd-dsp-started] and [r pd-dsp-stopped], which most
            people don't <br>
            know about, I guess.<br>
          </blockquote>
          <div><br>
          </div>
          <div>that's used n the help file of [samplerate~] but I agree
            it should also be included in this new documentaton section.
            Anyway, what else would you use it for?</div>
          <div> <br>
            Porres</div>
        </div>
      </div>
    </blockquote>
  </body>
</html>