Re: [PD] [netsend] bug?
I remove the [float2symbol] abstraction and change it with [makefilename %g] (thanx IOhannes) in the list2symbol.pd if someone need a vanilla solution of zexy/list2symbol. It is attached. ++ Jack Le 06/05/2016 19:15, Jack a écrit : > 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 : >> 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ó: >>> 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 : Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, 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 `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles. Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) 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. ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list >>> >>> ___ >>> Pd-list@lists.iem.at mailing list >>> UNSUBSCRIBE and account-management -> >>> https://lists.puredata.info/listinfo/pd-list >> >> >> ___ >> Pd-list@lists.iem.at mailing list >> UNSUBSCRIBE and account-management -> >> https://lists.puredata.info/listinfo/pd-list > > > > ___ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list > list2symbol
Re: [PD] [netsend] bug?
Ok, thanks for clarify! I get what I was looking for. When I make the patch "nice, clean and tidy", I'll post on stackoverflow, where I posted a question. Thanks everybody! El 06/05/16 a las 15:08, IOhannes m zmölnig escribió: On 05/06/2016 02:45 PM, Mario Mey wrote: The connection is well done, but I discovered that the messages arrives with a ";" at the end of the message. this is the format that Pd messages are transmitted in. it is not a bug, but called FUDI https://en.wikipedia.org/wiki/FUDI both applications (e.g. Pd and VLC) need to speak the same protocol in order to communicate. to make [netsend] not speak FUDI but any arbitrary protocol, use the 'raw' mode (as jack has pointed out) gfmdsar IOhannes ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] [netsend] bug?
I understand this ";" at the end of the message... but I found something that I do call bug. In text-object-help.pd, inside [pd tolist] and [pd fromlist], there's this message box: [this is a message \; this is another 1 ... \;( Inside the file, it is: ... #X msg 81 115 list this is a message \\\; this is another 1 ... \\\; ... When I edit this message box and delete the semicolon with backspace, PureData stops responding. Maybe some functions from the menu appears to work, but it is freeze. El 06/05/16 a las 15:08, IOhannes m zmölnig escribió: On 05/06/2016 02:45 PM, Mario Mey wrote: The connection is well done, but I discovered that the messages arrives with a ";" at the end of the message. this is the format that Pd messages are transmitted in. it is not a bug, but called FUDI https://en.wikipedia.org/wiki/FUDI both applications (e.g. Pd and VLC) need to speak the same protocol in order to communicate. to make [netsend] not speak FUDI but any arbitrary protocol, use the 'raw' mode (as jack has pointed out) gfmdsar IOhannes ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] [netsend] bug?
On Fri, 2016-05-06 at 12:46 -0300, Mario Mey wrote: > 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. [...] I found the cheapest method to concatenate a stream of atoms to lists is appending them with 'add2 $1' to a message box. Then you wait for the message delimiting character ('10' or '13' in this case) to flush the content of of the message box. The resulting list can be passed to [list tosymbol]. However, be a aware that the human-friendly outcome (e.g. 'Now playing: ROTHKO - On the Day We Said Goodbye') will be a symbol, not a list and can't be parsed easily with Pd tools. Roman signature.asc Description: This is a digitally signed message part ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] [netsend] bug?
Didn't know this one :D ++ Jack Le 06/05/2016 20:19, IOhannes m zmölnig a écrit : > On 05/06/2016 08:16 PM, Jack wrote: >> Of course, to get decimal, you can use [makefilename %f] but in this >> case, you got a symbol very different : >> >> Your float : float 0.19 >> The symbol you get : symbol 0.19 > > [makefilename %g] > > gfrdsa > IOhannes > > > > ___ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list > signature.asc Description: OpenPGP digital signature ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] [netsend] bug?
On 05/06/2016 08:16 PM, Jack wrote: > Of course, to get decimal, you can use [makefilename %f] but in this > case, you got a symbol very different : > > Your float : float 0.19 > The symbol you get : symbol 0.19 [makefilename %g] gfrdsa IOhannes signature.asc Description: OpenPGP digital signature ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] [netsend] bug?
Of course, to get decimal, you can use [makefilename %f] but in this case, you got a symbol very different : Your float : float 0.19 The symbol you get : symbol 0.19 With the abstraction [float2symbol] you will get : symbol 0.19 ++ Jack Le 06/05/2016 20:05, Jack a écrit : > Hello Joel, > > [makefilename %d] is OK if you send an integer like 1 or 25487. But if > you send something like 254.56, you only get [symbol 254(. > That's why, i made this abstraction ;) > ++ > > Jack > > > > Le 06/05/2016 19:28, Joel Matthys a écrit : >> Another option is to use [makefilename %d] in place of this >> [float2symbol] abstraction. But I've never seen this clever abstraction. >> Thanks Jack! >> >> Joel >> >> On 05/06/2016 12:20 PM, Jack wrote: >>> Forget an abstraction (float2symbol). >>> ++ >>> >>> Jack >>> >>> >>> >>> Le 06/05/2016 19:15, Jack a écrit : 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 : > 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ó: >> 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 : >>> Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a >>> patch in https://github.com/mxa/AudioVideoPatches, 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 >>> `file:///home/mario/file.mp4%3B' failed >>> [0x7f3888005ac8] main input error: Su entrada no puede abrirse >>> [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL >>> «file:///home/mario/file.mp4%3B». Vea el registro para más detalles. >>> >>> Also, I use a simple Python script (Server code in >>> https://wiki.python.org/moin/TcpCommunication) 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
Re: [PD] [netsend] bug?
On 05/06/2016 02:45 PM, Mario Mey wrote: > The connection is well done, but I discovered that the messages arrives > with a ";" at the end of the message. this is the format that Pd messages are transmitted in. it is not a bug, but called FUDI https://en.wikipedia.org/wiki/FUDI both applications (e.g. Pd and VLC) need to speak the same protocol in order to communicate. to make [netsend] not speak FUDI but any arbitrary protocol, use the 'raw' mode (as jack has pointed out) gfmdsar IOhannes signature.asc Description: OpenPGP digital signature ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] [netsend] bug?
Hello Joel, [makefilename %d] is OK if you send an integer like 1 or 25487. But if you send something like 254.56, you only get [symbol 254(. That's why, i made this abstraction ;) ++ Jack Le 06/05/2016 19:28, Joel Matthys a écrit : > Another option is to use [makefilename %d] in place of this > [float2symbol] abstraction. But I've never seen this clever abstraction. > Thanks Jack! > > Joel > > On 05/06/2016 12:20 PM, Jack wrote: >> Forget an abstraction (float2symbol). >> ++ >> >> Jack >> >> >> >> Le 06/05/2016 19:15, Jack a écrit : >>> 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 : 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ó: > 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 : >> Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a >> patch in https://github.com/mxa/AudioVideoPatches, 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 >> `file:///home/mario/file.mp4%3B' failed >> [0x7f3888005ac8] main input error: Su entrada no puede abrirse >> [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL >> «file:///home/mario/file.mp4%3B». Vea el registro para más detalles. >> >> Also, I use a simple Python script (Server code in >> https://wiki.python.org/moin/TcpCommunication) 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. >> >> ___ >> Pd-list@lists.iem.at mailing list >> UNSUBSCRIBE and account-management -> >> https://lists.pu
Re: [PD] [netsend] bug?
Another option is to use [makefilename %d] in place of this [float2symbol] abstraction. But I've never seen this clever abstraction. Thanks Jack! Joel On 05/06/2016 12:20 PM, Jack wrote: Forget an abstraction (float2symbol). ++ Jack Le 06/05/2016 19:15, Jack a écrit : 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 : 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ó: 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 : Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, 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 `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles. Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) 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. ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] [netsend] bug?
Forget an abstraction (float2symbol). ++ Jack Le 06/05/2016 19:15, Jack a écrit : > 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 : >> 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ó: >>> 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 : Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, 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 `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles. Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) 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. ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list >>> >>> ___ >>> Pd-list@lists.iem.at mailing list >>> UNSUBSCRIBE and account-management -> >>> https://lists.puredata.info/listinfo/pd-list >> >> >> ___ >> Pd-list@lists.iem.at mailing list >> UNSUBSCRIBE and account-management -> >> https://lists.puredata.info/listinfo/pd-list > > > > ___ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list > float2symbol-help.pd Description: application/puredata float2symbol.pd Description: application/puredata ___ Pd-lis
Re: [PD] [netsend] bug?
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 : > 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ó: >> 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 : >>> Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a >>> patch in https://github.com/mxa/AudioVideoPatches, 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 >>> `file:///home/mario/file.mp4%3B' failed >>> [0x7f3888005ac8] main input error: Su entrada no puede abrirse >>> [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL >>> «file:///home/mario/file.mp4%3B». Vea el registro para más detalles. >>> >>> Also, I use a simple Python script (Server code in >>> https://wiki.python.org/moin/TcpCommunication) 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. >>> >>> ___ >>> Pd-list@lists.iem.at mailing list >>> UNSUBSCRIBE and account-management -> >>> https://lists.puredata.info/listinfo/pd-list >> >> ___ >> Pd-list@lists.iem.at mailing list >> UNSUBSCRIBE and account-management -> >> https://lists.puredata.info/listinfo/pd-list > > > ___ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list list2symbol-help.pd Description: application/puredata list2symbol.pd Description: application/puredata ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] [netsend] bug?
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ó: 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 : Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, 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 `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles. Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) 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. ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] [netsend] bug?
Hi, attached is some workaround for controlling VLC, one using [tcpclient], and another one using dbus-send. Both uses tcl for scripting with [hc/sys_gui] patco Le 06/05/2016 à 15:51, Jack a écrit : 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 : Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, 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 `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles. Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) 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. ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list #N canvas 767 95 972 377 10; #X obj 20 267 sys_gui; #X obj 20 288 print; #X obj 20 246 r SYS_GUI; #X obj 16 181 s SYS_GUI; #X text 16 317 patko2015; #X text 24 123 launch VLC with GUI; #X obj 639 118 openpanel; #X obj 639 101 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X text 11 228 tcl interpreter; #X msg 639 139 add \$1; #X obj 247 210 r vlc-server; #X obj 227 277 t b a; #X obj 260 299 s SYS_GUI; #X msg 194 276 set; #X obj 227 208 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X msg 28 140 set pid [exec vlc -I rc &] \, pdsend [list vlc-server $pid], f 31; #X msg 279 278 puts 'test'; #X msg 723 141 play; #X msg 756 162 pause; #N canvas 198 119 565 442 tcpServer 0; #X obj 48 174 tcpclient; #X obj 88 200 tgl 15 0 empty empty connected 18 7 0 8 -24198 -13381 -1 1 1; #X text 119 173 tcpclient opens a tcp socket to send and receive bytes on; #X floatatom 223 270 9 0 0 0 - - -, f 9; #X floatatom 273 244 9 0 0 0 - - -, f 9; #X text 342 243 Size of the send buffer; #X obj 223 194 route sent buf blocked; #X text 293 269 Number of bytes sent; #X obj 323 220 print sender_blocked!; #X obj 68 226 unpack 0 0 0 0; #X floatatom 68 249 3 0 0 0 - - -, f 3; #X floatatom 99 249 3 0 0 0 - - -, f 3; #X floatatom 131 249 3 0 0 0 - - -, f 3; #X floatatom 163 249 3 0 0 0 - - -, f 3; #X text 28 248 from; #X text 99 300 Received messages are output as a list of bytes; #X text 174 329 Attempting to print long messages can hang Pd!; #X obj 137 99 any2string 0 -1; #X msg 155 55 disconnect; #X obj 49 4 inlet; #X obj 49 26 t a b; #X obj 128 19 inlet; #X obj 49 403 outlet; #X obj 135 120 list append 13 10; #X obj 49 331 bytes2any 128 32; #X obj 139 388 spigot; #X obj 137 411 print >>>; #X obj 188 384 tgl 15 0 empty empty print 18 7 0 8 -24198 -13381 -1 1 1; #X obj 131 353 bytes2any 128 0; #X connect 0 0 24 0; #X connect 0 0 28 0; #X connect 0 1 9 0; #X connect 0 2 1 0; #X connect 0 3 6 0; #X connect 6 0 3 0; #X connect 6 1 4 0; #X connect 6 2 8 0; #X connect 9 0 10 0; #X connect 9 1 11 0; #X connect 9 2 12 0; #X connect 9 3 13 0; #X connect 17 0 23 0; #X connect 18 0 0 0; #X connect 19 0 20 0; #X connect 20 0 17 0; #X connect 21 0 0 0; #X connect 23 0 0 0; #X connect 24 0 22 0; #X connect 25 0 26 0; #X connect 27 0 25 1; #X connect 28 0 25 0; #
Re: [PD] [netsend] bug?
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 : > Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a > patch in https://github.com/mxa/AudioVideoPatches, 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 > `file:///home/mario/file.mp4%3B' failed > [0x7f3888005ac8] main input error: Su entrada no puede abrirse > [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL > «file:///home/mario/file.mp4%3B». Vea el registro para más detalles. > > Also, I use a simple Python script (Server code in > https://wiki.python.org/moin/TcpCommunication) 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. > > ___ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
[PD] [netsend] bug?
Hi, there. I'm trying to use PureData 0.46.7 to control VLC. Based on a patch in https://github.com/mxa/AudioVideoPatches, 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 `file:///home/mario/file.mp4%3B' failed [0x7f3888005ac8] main input error: Su entrada no puede abrirse [0x7f3888005ac8] main input error: VLC es incapaz de abrir el MRL «file:///home/mario/file.mp4%3B». Vea el registro para más detalles. Also, I use a simple Python script (Server code in https://wiki.python.org/moin/TcpCommunication) 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. ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list