<div dir="ltr"><div dir="ltr">I think I delimited the issues more cleary, here is a patch that shows the problems.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Fr., 12. Juli 2019 um 19:26 Uhr schrieb Christof Ressi <<a href="mailto:christof.ressi@gmx.at">christof.ressi@gmx.at</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Verdana;font-size:12px"><div>> but that will mean that for every new string, a new oscparse must be created, in contrary to the current practice, where the message has all the addresses in it.
<div> </div>

<div>mrpeach: [/foo/bar 1 2 3( -> [packOSC]</div>

<div>Vanilla: [set foo bar, 1 2 3( -> [oscformat] *** mind the comma! ***</div>

<div> </div>

<div>> the output in Pd is "symbol /output_1"</div>

<div> </div>

<div>are you sure? the output should be "symbol output_1" (without a slash!)</div>

<div> </div>

<div>> and route doesn't filter the content.</div>

<div> </div>

<div>
<div>[oscparse] outputs a list, so you have to send it to [list trim], then you can use [route] in the way you intend it.</div>

<div> </div>

<div>Christof</div>

<div style="margin:10px 5px 5px 10px;padding:10px 0px 10px 10px;border-left:2px solid rgb(195,217,229)">
<div style="margin:0px 0px 10px"><b>Gesendet:</b> Freitag, 12. Juli 2019 um 19:15 Uhr<br>
<b>Von:</b> "João Pais" <<a href="mailto:jmmmpais@gmail.com" target="_blank">jmmmpais@gmail.com</a>><br>
<b>An:</b> "Miller Puckette" <<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>><br>
<b>Cc:</b> "<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>" <<a href="mailto:pd-list@mail.iem.at" target="_blank">pd-list@mail.iem.at</a>><br>
<b>Betreff:</b> Re: [PD] Problems with oscformat (and oscparse?) and slashes</div>

<div>
<div>
<div>that is correct - but that will mean that for every new string, a new oscparse must be created, in contrary to the current practice, where the message has all the addresses in it.</div>

<div>2 other issues, but I can't reproduce them here:</div>

<div>- when I send an address with a number added to it, the external program doesn't accept it. When I send the same message with mrpeach, it works. In Pd (and even through unpackOSC) they look the same.</div>

<div>- when receiving the message "/output_1", oscparse doesn't process it in the same way as mrpeach: the output in Pd is "symbol /output_1", and route doesn't filter the content.</div>

<div> </div>

<div>I didn't check the exact osc code traffic, maybe later I can do that.</div>

<div> </div>

<div>Joao</div>
</div>
 

<div class="gmail_quote">
<div class="gmail_attr">Am Fr., 12. Juli 2019 um 18:18 Uhr schrieb Miller Puckette <<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>>:</div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Joao -<br>
<br>
I might be misunderstanding the problem, but to specify an address like<br>
"/parameter/bla" you can sen oscformat a list, "parameter bla" (the slashes<br>
are delimiters between the elements of the address, each of which is a<br>
symbol without any slashes in it.)  So you can simply send the message "1"<br>
to the object "oscformat parameter bla".<br>
<br>
cheers<br>
Miller<br>
<br>
On Fri, Jul 12, 2019 at 05:48:19PM +0200, Jo??o Pais wrote:<br>
> Hi all,<br>
><br>
> I'm having some issues with oscformat and slashes ( / ). Many programs out<br>
> there use formats such as "/parameter/bla 1", but both oscformat and<br>
> oscparse don't really cope that well with them.<br>
><br>
> For oscformat:<br>
> - it's not possible to send a string starting with a slash, the message<br>
> "oscformat: no method for '/aa' " appears.<br>
> - A hack can be done by sending a message [set /aa, bang( ...<br>
> - ... but this doesn't work if the message to send is /aa 1, as oscparse<br>
> will convert it to /aa/1<br>
> - defining an object as [oscformat /aa] seems to work, but it will mean<br>
> that another oscformat object has to be defined for each single string<br>
> being sent: /aa, /aa/a, /aa/b, ...<br>
><br>
> For oscparse:<br>
> - when it receives a message with slashes in it, it removes the slashes<br>
> automatically. Which is kind of acceptable, if it's going to be connected<br>
> with a normal route. But not that much if the message is going to be worked<br>
> on, and resent.<br>
><br>
> Or is there any other way of doing this? The documentation doesn't present<br>
> anything else. It took some time of screaming at the computer until I<br>
> compared the results with mrpeach's objects.<br>
><br>
> Best,<br>
><br>
> Joao<br>
<br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
 </blockquote>
</div></div></div></div></div></div></div></blockquote></div><br></div>