<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Another option is to use [makefilename
      %d] in place of this [float2symbol] abstraction. But I've never
      seen this clever abstraction. Thanks Jack!<br>
      <br>
      Joel<br>
      <br>
      On 05/06/2016 12:20 PM, Jack wrote:<br>
    </div>
    <blockquote cite="mid:572CD253.7020300@rybn.org" type="cite">
      <pre wrap="">Forget an abstraction (float2symbol).
++

Jack



Le 06/05/2016 19:15, Jack a écrit :
</pre>
      <blockquote type="cite">
        <pre wrap="">Can you send a full output from [netsend -b] ?
To get your message line by line, you must recreate the chain by
accumulating numerical values until a 10 or/and 13 comes. For this a
[route 10 13] (to do something when a 10 or 13 comes), [list prepend]
(to accumulate) and [list] (to store accumulation) should help.
See attached files for one possibility of vanilla version of [l2s].
++

Jack



Le 06/05/2016 17:46, Mario Mey a écrit :
</pre>
        <blockquote type="cite">
          <pre wrap="">Jack, thank you for this patch. It works. Also thanks to Patrice... but
I want to make it easy.

Now, I would want to know how to reproduce l2s with Vanilla (I'm trying
to use only Vanilla).

... and there's something else: If I send "playlist" to VLC, the right
outlet of [netsend -b] prints the playlist... but one character per
print. Something like:

print: 43
print: 45
print: 45
print: 45
print: 45
print: 91
print: 32
print: 80
print: 108
print: 97
print: 121
print: 108
...

If I put [list tosymbol] before [print], the characters appears:

print: symbol +
print: symbol -
print: symbol -
print: symbol -
print: symbol -
print: symbol [
print: symbol
print: symbol P
print: symbol l
print: symbol a
print: symbol y
print: symbol l
...

How should I convert all this messages into one message? If possible,
respecting the return carriage.





El 06/05/16 a las 10:51, Jack escribió:
</pre>
          <blockquote type="cite">
            <pre wrap="">Hello,

Now, with Pd 0.46.7 you have [netsend -b].
It allows you to send a string in 'binary' mode (you don't need anymore
to use the FUDI protocol used by netsend before).

Then, something like :

[list add file.mp4(
|
[l2s] <- from zexy library (there is vanilla solution for this)
|
[list fromsymbol]
|
[list append 10]
|
[list prepend send]
|
[list trim]
|
[netsend -b]

should work.
++

Jack



Le 06/05/2016 14:45, Mario Mey a écrit :
</pre>
            <blockquote type="cite">
              <pre wrap="">Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a
patch in <a class="moz-txt-link-freetext" href="https://github.com/mxa/AudioVideoPatches">https://github.com/mxa/AudioVideoPatches</a>, that uses Python code
(pyext) to send TCP messages, I want to use [netsend] to send them,
without Python.

I start VLC with:

vlc -I rc --rc-host=localhost:1234

And, in Pd:

[connect localhost 1234(
|
|  [list add file.mp4(
|  [list prepend send]
|  [list trim]
| /
[netsend]

The connection is well done, but I discovered that the messages arrives
with a ";" at the end of the message. For example, when I click on [list
add file.mp4(, VLC says (sorry for the language):

[0x7f387c0044a8] filesystem access error: cannot open file
/home/mario/file.mp4; (No such file or directory)
[0x7f387c0044a8] main access error: Falló lectura de archivo
[0x7f387c0044a8] main access error: VLC no pudo abrir el archivo
«/home/mario/file.mp4;» (No such file or directory).
[0x7f3888005ac8] main input error: open of
`<a class="moz-txt-link-freetext" href="file:///home/mario/file.mp4%3B">file:///home/mario/file.mp4%3B</a>' failed
[0x7f3888005ac8] main input error: Su entrada no puede abrirse
[0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL
«<a class="moz-txt-link-freetext" href="file:///home/mario/file.mp4%3B»">file:///home/mario/file.mp4%3B»</a>. Vea el registro para más detalles.

Also, I use a simple Python script (Server code in
<a class="moz-txt-link-freetext" href="https://wiki.python.org/moin/TcpCommunication">https://wiki.python.org/moin/TcpCommunication</a>) to receive this messages
and, when it does, it prints:

received data: b'add file.mp4;\n'

Ssome guys from #dataflow told me that the best workaround is to make a
small program/app/script that strips semicolons. Yes, now I'm writing
it... but I would not need another program to do this.

I've never reported a Pd bug. I'm writing this mail to you to know about
this (maybe it is not necessary to report it)... and maybe someone knows
another workaround.

Thank you.

_______________________________________________
<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="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
            </blockquote>
            <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="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
          </blockquote>
          <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="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
        </blockquote>
        <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="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>

</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <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="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>