Dear List,
how to prepend an OSC message with a (ideally settable) tag?
[/sheep 4> | | | [magic-object /animal] | |
resulting in: [/animal/sheep 4<
A normal [prepend] does not work as it includes a whitespace. A [makefilename] will not work with OSC messages of varying length and content. The [prefix ...< message of [packOSC] is not usable in my case.
Looking forward to good and inspiring ideas!
P
Check attached patch. Rename it to fit your needs.
Roman
On Mon, 2010-08-16 at 19:39 +0200, Peter Plessas wrote:
Dear List,
how to prepend an OSC message with a (ideally settable) tag?
[/sheep 4> | | | [magic-object /animal] | |
resulting in: [/animal/sheep 4<
A normal [prepend] does not work as it includes a whitespace. A [makefilename] will not work with OSC messages of varying length and content. The [prefix ...< message of [packOSC] is not usable in my case.
Looking forward to good and inspiring ideas!
P
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Magic Roman,
nice, elegant, amazing!
Thank you so much! Exactly what I had in mind.
Have a great day! P.
On 08/16/2010 08:27 PM, Roman Haefeli wrote:
Check attached patch. Rename it to fit your needs.
Roman
On Mon, 2010-08-16 at 19:39 +0200, Peter Plessas wrote:
Dear List,
how to prepend an OSC message with a (ideally settable) tag?
[/sheep 4> | | | [magic-object /animal] | |
resulting in: [/animal/sheep 4<
A normal [prepend] does not work as it includes a whitespace. A [makefilename] will not work with OSC messages of varying length and content. The [prefix ...< message of [packOSC] is not usable in my case.
Looking forward to good and inspiring ideas!
P
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi Peter,
RRRadical's memento includes a OSCprepend.pd just for this purpose. For a strange reason that I don't remember anymore this also became part of the [list]-abs as the only object not starting with "list-".
It basically splits off the first item in a message, sends it through [makefilename $1%s] and then repacks the list while trimming the list-selector.
Frank
On Mon, Aug 16, 2010 at 07:39:53PM +0200, Peter Plessas wrote:
how to prepend an OSC message with a (ideally settable) tag?
[/sheep 4> | | | [magic-object /animal] | |
resulting in: [/animal/sheep 4<
A normal [prepend] does not work as it includes a whitespace. A [makefilename] will not work with OSC messages of varying length and content. The [prefix ...< message of [packOSC] is not usable in my case.
Looking forward to good and inspiring ideas!
P
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Check attached patch. Rename it to fit your needs.
Roman
On Mon, 2010-08-16 at 19:39 +0200, Peter Plessas wrote:
Dear List,
how to prepend an OSC message with a (ideally settable) tag?
[/sheep 4> | | | [magic-object /animal] | |
resulting in: [/animal/sheep 4<
A normal [prepend] does not work as it includes a whitespace. A [makefilename] will not work with OSC messages of varying length and content. The [prefix ...< message of [packOSC] is not usable in my case.
Looking forward to good and inspiring ideas!
P
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list