Hello list,
I was wondering if there is a possibility in PD to parse a message like "symbol /home/thomas/qt/regnbueromskip.mov" and then remove the "symbol" within that string? It's a simple string. I need to prepend a read message to the specific file to read it into pdp_qt from Yves Degoyons playlist object. For some reason it doesn't send a message, but a message with a symbol identifier in front. prepending it doesn't work.
Something like:
[symbol /home/thomas/qt/regnbueromskip.mov] <-- messagebox | [remove the symbol and space] <-- ???? object | [prepend read /home/thomas/qt/regnbueromskip.mov] <-- prepend object
Any examples? Thanks in advance!
.thomas
Hallo, Thomas Sivertsen hat gesagt: // Thomas Sivertsen wrote:
I was wondering if there is a possibility in PD to parse a message like "symbol /home/thomas/qt/regnbueromskip.mov" and then remove the "symbol" within that string?
Something like:
[symbol /home/thomas/qt/regnbueromskip.mov] <-- messagebox
|
[route symbol]
|
[prepend read /home/thomas/qt/regnbueromskip.mov] <-- prepend object
Use the first outlet of the route object. You can also use the second as well, if your don't know for sure, that the filename has a symbol in front. [route] will route everything, that doesn't match, to the second outlet.
Frank Barknecht _ ______footils.org__
Frank Barknecht wrote:
I was wondering if there is a possibility in PD to parse a message like "symbol /home/thomas/qt/regnbueromskip.mov" and then remove the "symbol" within that string?
Something like:
[symbol /home/thomas/qt/regnbueromskip.mov] <-- messagebox
| [route symbol] |
Aha! That is probably the simplest method.
[prepend read /home/thomas/qt/regnbueromskip.mov] <-- prepend object
Use the first outlet of the route object. You can also use the second as well, if your don't know for sure, that the filename has a symbol in front. [route] will route everything, that doesn't match, to the second outlet.
Just like in Max, yes. It's been a while since I made any patches...
Thanks a lot!
.thomas
hola, thomas..
it's more simple than that,
[ playlist ] | | [ read $1 ( | | [pdp_qt]
will do what you want.
and then, how are your tuxes? still dancing?
ciao, sevy
Thomas Sivertsen wrote:
Hello list,
I was wondering if there is a possibility in PD to parse a message like "symbol /home/thomas/qt/regnbueromskip.mov" and then remove the "symbol" within that string? It's a simple string. I need to prepend a read message to the specific file to read it into pdp_qt from Yves Degoyons playlist object. For some reason it doesn't send a message, but a message with a symbol identifier in front. prepending it doesn't work.
Something like:
[symbol /home/thomas/qt/regnbueromskip.mov] <-- messagebox | [remove the symbol and space] <-- ???? object | [prepend read /home/thomas/qt/regnbueromskip.mov] <-- prepend object
Any examples? Thanks in advance!
.thomas
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
Yves Degoyon wrote:
hola, thomas..
Hey Yves!
it's more simple than that,
[ playlist ] | | [ read $1 ( | | [pdp_qt]
will do what you want.
Yes, I know that now. It was just that I expected a prepend to work like the one in Max, which it doesn't.
and then, how are your tuxes? still dancing?
Oh yeah, they're after the pigeons these days. With a huge vacuum-cleaner-digger. ;-)
ciao, sevy
Thanks, and have a good summer!
.thomas