Hi,
is there any object that allows a more extended manipulation of symbols?
For example, I have symbols with the format 1234-56-78_12-23.aaa, and I
wanted to get only the floats inside, and use them on mathematics. For
now, the only way I see to do that is to use several [splitfilename -],
until all the individual elements are separated. Or is it possible to do
that with sprintf?
Thanks,
João
On 2010-11-01 20:01, João Pais wrote:
Hi,
is there any object that allows a more extended manipulation of symbols? For example, I have symbols with the format 1234-56-78_12-23.aaa, and I wanted to get only the floats inside, and use them on mathematics. For now, the only way I see to do that is to use several [splitfilename -], until all the individual elements are separated. Or is it possible to do that with sprintf?
hmm, sprintf is usually for the other way round. you would need scanf...
anyhow, [symbol2list -] will split your symbol into " 1234, 56, 78_12-23.aaa" so it's a bit more comfortable than [splitfilename].
mfgasdr IOhannes
hmm, sprintf is usually for the other way round. you would need scanf...
anyhow, [symbol2list -] will split your symbol into " 1234, 56, 78_12-23.aaa" so it's a bit more comfortable than
[splitfilename].
yep, I had forgotten about this object. always handy when it comes to
separate a symbol into parts.
Hi,
On Mon, Nov 01, 2010 at 08:01:43PM +0100, João Pais wrote:
is there any object that allows a more extended manipulation of symbols?
For example, I have symbols with the format 1234-56-78_12-23.aaa, and I
wanted to get only the floats inside, and use them on mathematics. For
now, the only way I see to do that is to use several [splitfilename -],
until all the individual elements are separated. Or is it possible to do
that with sprintf?
It probably is possible, but as bigger text manipulations IMO are better dealt with outside of the Pd language, why not learn Lua now and use the pdlua external to write your own powerful text manipulation objectsr? Or Python, but pdlua is much easier to install.
Frank Barknecht Do You RjDj.me? _ ______footils.org__
It probably is possible, but as bigger text manipulations IMO are better
dealt with outside of the Pd language, why not learn Lua now and use the pdlua external to write your own powerful text manipulation objectsr? Or
Python, but pdlua is much easier to install.
hmm, the problem is that I'm mainly on windows, as looking at
https://code.goto10.org/svn/maximus/releases/pdlua-0.5, there are no
binaries available. but yes, learning that would also save me some work on
other projects as well.
are there any windows binaries of lua available somewhere?
João